feat(permission0): implement re-delegation for namespaces (#127) #10
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: Build Torus runtime | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - "github-ci-test" | |
| - "build-runtime*" | |
| - "testnet" | |
| tags: | |
| - "runtime/*" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubicloud-standard-16 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Rust cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Install Rust toolchain | |
| run: | | |
| rustup set profile minimal | |
| rustup show | |
| - name: Install Protoc | |
| uses: arduino/setup-protoc@v1 | |
| with: | |
| version: 3.20.1 | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build runtime | |
| run: | | |
| echo "Building ${{ startsWith(github.ref, 'refs/tags/runtime/testnet') && 'with testnet feature flag' || 'without testnet feature flag' }}" | |
| cargo build --release --timings --package torus-runtime ${{ startsWith(github.ref, 'refs/tags/runtime/testnet') && '--features testnet' || '' }} | |
| export SHA256SUM=$(sha256sum target/release/wbuild/torus-runtime/torus_runtime.compact.compressed.wasm | cut -d ' ' -f1) | |
| echo Hash of compact and compressed WASM: $SHA256SUM | |
| mkdir out | |
| mv target/release/wbuild/torus-runtime/torus_runtime.compact.compressed.wasm out/ | |
| touch out/$SHA256SUM | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: torus_runtime.compact.compressed | |
| path: out/ | |
| if-no-files-found: error | |
| overwrite: true | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: torus-runtime-timings | |
| path: target/cargo-timings/cargo-timing.html | |
| overwrite: true |