Skip to content

Commit 196e2c6

Browse files
committed
Add rake build task and update related scripts to use it
- Introduced a new rake build task that delegates to build_stub. - Updated GitHub Actions and bin/setup scripts to use rake build instead of rake build_stub. - This simplifies the developer interface and centralizes future build logic.
1 parent de249ad commit 196e2c6

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

.github/workflows/test-on-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ jobs:
2121

2222
- name: Build stub and run tests
2323
run: |
24-
bundle exec rake build_stub
24+
bundle exec rake build
2525
bundle exec rake test

.github/workflows/windows-gem-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
- name: Build stub and run tests
1919
run: |
20-
bundle exec rake build_stub
20+
bundle exec rake build
2121
bundle exec rake test
2222
2323
- name: Build Gem

Rakefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ STUB_NAMES = %w[stub stubw edicon]
1414
STUB_DIR = "share/ocran"
1515
BUILD_DIR = "src"
1616

17+
desc "Builds all necessary artifacts (currently stubs)"
18+
task :build => :build_stub
19+
1720
task :build_stub do
1821
sh "ridk exec make -C #{BUILD_DIR}"
1922
STUB_NAMES.each do |name|

bin/setup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ IFS=$'\n\t'
44
set -vx
55

66
bundle install
7-
bundle exec rake build_stub
7+
bundle exec rake build

bin/setup.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if errorlevel 1 (
1919

2020
echo == Building stub executables ==
2121

22-
call bundle exec rake build_stub
22+
call bundle exec rake build
2323
if errorlevel 1 (
2424
echo Failed to build stubs.
2525
exit /b 1

0 commit comments

Comments
 (0)