Merge pull request #1319 from dfinity/chore/pin-actions-to-sha #522
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: rust-basic-bitcoin-release | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| paths: | |
| - rust/basic_bitcoin/** | |
| - .github/workflows/provision-linux.sh | |
| - .github/workflows/rust-basic-bitcoin-example-release.yml | |
| - .ic-commit | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| rust-basic-bitcoin-linux: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0 | |
| - name: Provision Linux | |
| run: bash .github/workflows/provision-linux.sh | |
| - name: Rust Basic Bitcoin Linux | |
| run: | | |
| pushd rust/basic_bitcoin | |
| bash build.sh | |
| cp target/wasm32-unknown-unknown/release/basic_bitcoin.wasm basic_bitcoin.wasm | |
| gzip -9 basic_bitcoin.wasm | |
| - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| name: "basic_bitcoin.wasm.gz" | |
| path: "rust/basic_bitcoin/basic_bitcoin.wasm.gz" | |
| compression-level: 0 |