Skip to content

chore: update to dfx 0.32.0 (#1342) #80

chore: update to dfx 0.32.0 (#1342)

chore: update to dfx 0.32.0 (#1342) #80

name: rust-candid-type-generation
on:
push:
branches:
- master
pull_request:
paths:
- rust/candid_type_generation/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/rust-candid-type-generation-example.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rust-candid-type-generation-example-darwin:
runs-on: macos-15
steps:
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0
- name: Provision Darwin
run: bash .github/workflows/provision-darwin.sh
- name: Candid Type Generation Darwin
run: |
pushd rust/candid_type_generation
rm -rf candid/nns_governance.did src/declarations/nns_governance.rs
./scripts/fetch_candid.sh
cargo build
[ -s "candid/nns_governance.did" ] || exit 1
[ -s "src/declarations/nns_governance.rs" ] || exit 1
popd
rust-candid-type-generation-example-linux:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0
- name: Provision Linux
run: bash .github/workflows/provision-linux.sh
- name: Candid Type Generation Linux
run: |
pushd rust/candid_type_generation
rm -rf candid/nns_governance.did src/declarations/nns_governance.rs
./scripts/fetch_candid.sh
cargo build
[ -s "candid/nns_governance.did" ] || exit 1
[ -s "src/declarations/nns_governance.rs" ] || exit 1
popd