chore: update packages version #39
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| build-binary: | |
| runs-on: ubuntu-latest | |
| container: clux/muslrust:stable | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Build linux binary | |
| run: | | |
| mkdir -p out | |
| rustup update --no-self-update stable-x86_64-unknown-linux-musl | |
| export RUSTFLAGS="-C target-feature=+crt-static -C link-arg=-s" | |
| for PACK in anda_bot | |
| do | |
| cargo build --release --locked -p $PACK --target x86_64-unknown-linux-musl | |
| cp "target/x86_64-unknown-linux-musl/release/$PACK" "out/" | |
| SHA256="$(sha256sum < "out/$PACK" | sed 's/ .*$//g')" | |
| echo $SHA256 > "out/$PACK.$SHA256.txt" | |
| done | |
| ls -lah out | |
| - name: Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: out/* |