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 Verity Managed *General Purpose MPC-TLS* Verifier WASM | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: {} | |
| jobs: | |
| build-and-release: | |
| name: Build and publish WASM | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Rust (stable) with wasm32-wasip1 target | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: wasm32-wasip1 | |
| - name: Install build dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y binaryen | |
| cargo install --locked wasi2ic candid-extractor | |
| - name: Install DFX | |
| uses: dfinity/setup-dfx@main | |
| with: | |
| dfx-version: 0.27.0 | |
| - name: Verify dfx | |
| run: dfx --version | |
| - name: Build verifier canister via dfx | |
| working-directory: ic/managed/verifier | |
| run: dfx build | |
| - name: Compute checksum | |
| run: | | |
| cd target/wasm32-wasip1/release | |
| sha256sum verity_ic_verifier_ic.wasm | tee verity_ic_verifier_ic.wasm.sha256 | |
| - name: Create GitHub Release and upload assets | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| target/wasm32-wasip1/release/verity_ic_verifier_ic.wasm | |
| target/wasm32-wasip1/release/verity_ic_verifier_ic.wasm.sha256 | |
| draft: false | |
| prerelease: false | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |