We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e42f816 commit 0c2e268Copy full SHA for 0c2e268
1 file changed
.github/workflows/build-gems.yml
@@ -46,11 +46,22 @@ jobs:
46
with:
47
ruby-version: "3.4"
48
49
+ - name: Detect rb-sys version from Cargo.lock
50
+ id: rb-sys
51
+ run: |
52
+ version="$(awk '/name = "rb-sys"/{flag=1; next} flag && /version = / {gsub(/"/, "", $3); print $3; exit}' Cargo.lock)"
53
+ if [ -z "$version" ]; then
54
+ echo "Failed to detect rb-sys version from Cargo.lock" >&2
55
+ exit 1
56
+ fi
57
+ echo "version=$version" >> "$GITHUB_OUTPUT"
58
+
59
- uses: oxidize-rb/actions/cross-gem@v1
60
id: cross-gem
61
62
platform: ${{ matrix.ruby-platform }}
63
ruby-versions: ${{ join(fromJSON(needs.ci-data.outputs.result).stable-ruby-versions, ',') }}
64
+ tag: ${{ steps.rb-sys.outputs.version }}
65
66
- uses: actions/upload-artifact@v7
67
0 commit comments