Skip to content

Commit

Permalink
Fix rake for aarch64-linux-musl.
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Nov 4, 2024
1 parent 3ec1b05 commit 2bcaddf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ jobs:
cargo-cache: true
cargo-vendor: true

- uses: oxidize-rb/actions/cross-gem@v1.1.9
- uses: oxidize-rb/actions/cross-gem@v1.2.8
with:
platform: ${{ matrix.ruby-platform }}
ruby-versions: "3.3,3.2,3.1"

- uses: actions/upload-artifact@v4
with:
name: cross-gem
name: cross-gem-pkg
path: pkg/

release_source:
name: Release source gem
build_source:
name: Build source gem
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -60,23 +60,27 @@ jobs:
- name: Upload Gem
uses: actions/upload-artifact@v4
with:
name: cross-gem
name: source
path: pkg/

publish:
name: Publish cross gems
runs-on: ubuntu-latest
needs:
- build
- release_source
- build_source
steps:
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: cross-gem
name: cross-gem-pkg
path: pkg/
- uses: actions/download-artifact@v4
with:
name: cross-gem-source
path: pkg/

- name: Display structure of built gems
Expand Down
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ CROSS_PLATFORMS = %w[
x86_64-darwin
x86_64-linux
x86_64-linux-musl
aarch64-linux-musl
]

spec = Bundler.load_gemspec("rucaptcha.gemspec")
Expand Down

0 comments on commit 2bcaddf

Please sign in to comment.