@@ -116,10 +116,20 @@ jobs:
116116 ref : ${{ needs.validate.outputs.source_sha }}
117117
118118 - name : Install Rust toolchain
119- uses : dtolnay/rust-toolchain@stable
119+ run : |
120+ rustup update stable
121+ rustup default stable
120122
121123 - name : Cache Rust build outputs
122- uses : Swatinem/rust-cache@v2
124+ uses : actions/cache@v4
125+ with :
126+ path : |
127+ ~/.cargo/bin/
128+ ~/.cargo/registry/index/
129+ ~/.cargo/registry/cache/
130+ ~/.cargo/git/db/
131+ target/
132+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
123133
124134 - name : Install zstd on Linux
125135 if : runner.os == 'Linux'
@@ -197,12 +207,16 @@ jobs:
197207 git push origin "refs/tags/$TAG"
198208
199209 - name : Create GitHub release
200- uses : softprops/action-gh-release@v2
201- with :
202- tag_name : ${{ needs.validate.outputs.tag }}
203- generate_release_notes : true
204- files : |
205- bindings/go/libpaimon_c.linux.amd64.so.zst
206- bindings/go/libpaimon_c.linux.arm64.so.zst
207- bindings/go/libpaimon_c.darwin.amd64.dylib.zst
208- bindings/go/libpaimon_c.darwin.arm64.dylib.zst
210+ env :
211+ TAG : ${{ needs.validate.outputs.tag }}
212+ VERSION : ${{ needs.validate.outputs.version }}
213+ GH_TOKEN : ${{ github.token }}
214+ working-directory : bindings/go
215+ run : |
216+ gh release create "$TAG" \
217+ --title "Release Go binding $VERSION" \
218+ --generate-notes \
219+ libpaimon_c.linux.amd64.so.zst \
220+ libpaimon_c.linux.arm64.so.zst \
221+ libpaimon_c.darwin.amd64.dylib.zst \
222+ libpaimon_c.darwin.arm64.dylib.zst
0 commit comments