Skip to content

Commit

Permalink
Add a macOS CI test for --enable-static
Browse files Browse the repository at this point in the history
  • Loading branch information
stanhu committed Jul 10, 2024
1 parent 206839d commit 43f7be7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ jobs:
matrix:
os: [macos]
ruby: [ '3.2', '3.3' ]
compile_opt: [""]
include:
- os: "macos"
ruby: "3.3"
compile_opt: "ENABLE_STATIC=1"

steps:
- name: icu4c
Expand All @@ -23,5 +28,5 @@ jobs:

- name: Install dependencies
run: bundle install
- name: Run tests ${{ matrix.rubyopt }}
run: bundle exec rake RUBYOPT="${{ matrix.rubyopt }}"
- name: "Run tests with compile_opt: ${{ matrix.compile_opt }}, rubyopt: ${{ matrix.rubyopt }}"
run: ${{ matrix.compile_opt }} bundle exec rake RUBYOPT="${{ matrix.rubyopt }}"
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ require "rake/extensiontask"

Rake::ExtensionTask.new 'charlock_holmes' do |ext|
ext.lib_dir = File.join 'lib', 'charlock_holmes'
ext.config_options << '--enable-static' if ENV['ENABLE_STATIC']
end

Rake::Task[:test].prerequisites << :compile
Rake::Task[:test].prerequisites << :compile

0 comments on commit 43f7be7

Please sign in to comment.