Skip to content

Commit

Permalink
Version 3.2.4 to release aarch64-linux-musl and update CI config.
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Nov 4, 2024
1 parent 6842c36 commit 8fac7aa
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
BUNDLE_GEMFILE: Gemfile
USE_OFFICIAL_GEM_SOURCE: 1
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: oxidize-rb/actions/setup-ruby-and-rust@main
with:
ruby-version: '3.3'
ruby-version: "3.3"
bundler-cache: true
cargo-cache: true
cargo-vendor: true
Expand Down
42 changes: 22 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: 'Release RubyGem'
name: "Release RubyGem"
on:
push:
tags:
- 'v*'
- "v*"
branches:
- 'release-gem'
- "release-gem"
jobs:
build:
name: Release cross gems
Expand All @@ -18,34 +18,35 @@ jobs:
- x86_64-linux
- aarch64-linux
- x86_64-linux-musl
- aarch64-linux-musl
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: oxidize-rb/actions/[email protected]
with:
ruby-version: '3.3'
ruby-version: "3.3"
bundler-cache: false
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'
ruby-versions: "3.3,3.2,3.1"

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: cross-gem
name: bundle-artifact-${{ matrix.ruby-platform }}
path: pkg/

release_source:
name: Release source gem
build_source:
name: Build source gem
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: oxidize-rb/actions/setup-ruby-and-rust@main
with:
ruby-version: '3.3'
ruby-version: "3.3"
bundler-cache: false
cargo-cache: true
cargo-vendor: true
Expand All @@ -57,33 +58,34 @@ jobs:
mv *.gem pkg/
- name: Upload Gem
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: cross-gem
name: bundle-artifact-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'
ruby-version: "3.3"
bundler-cache: true
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: cross-gem
pattern: bundle-artifact-*
merge-multiple: true
path: pkg/

- name: Display structure of built gems
run: ls -R pkg/

- name: Publish to RubyGem
env:
RUBYGEM_TOKEN: '${{secrets.RUBYGEM_TOKEN}}'
RUBYGEM_TOKEN: "${{secrets.RUBYGEM_TOKEN}}"
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
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
2 changes: 1 addition & 1 deletion lib/rucaptcha/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module RuCaptcha
VERSION = "3.2.3"
VERSION = "3.2.4"
end

0 comments on commit 8fac7aa

Please sign in to comment.