fix CI #67
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: CI | |
| on: | |
| push: | |
| branches: [ risc0 ] | |
| pull_request: | |
| branches: [ risc0, "risc0-*" ] | |
| workflow_call: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: macOS | |
| arch: ARM64 | |
| triple: aarch64-apple-darwin | |
| - os: Linux | |
| arch: X64 | |
| triple: x86_64-unknown-linux-gnu | |
| runs-on: [ self-hosted, release, "${{ matrix.os }}", "${{ matrix.arch }}" ] | |
| steps: | |
| - name: Install Rust | |
| uses: risc0/actions-rs-toolchain@v1 | |
| with: | |
| toolchain: stable | |
| - uses: lukka/[email protected] | |
| - name: Check out risc0/rust | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: 'recursive' | |
| path: rust | |
| fetch-depth: 0 | |
| - name: Check out risc0/risc0 | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: risc0/risc0 | |
| ref: erik/rzup-for-1.85 | |
| path: risc0 | |
| - name: Build and archive | |
| run: | | |
| GITHUB_ACTIONS=false cargo run --bin rzup -- build rust --path $GITHUB_WORKSPACE/rust | |
| tar \ | |
| --exclude lib/rustlib/src \ | |
| --exclude lib/rustlib/rustc-src \ | |
| -hczvf \ | |
| ./rust-toolchain-${{ matrix.triple }}.tar.gz \ | |
| -C ./build/${{ matrix.triple }}/stage2/ \ | |
| . | |
| working-directory: rust | |
| - name: "Upload workflow artifact" | |
| uses: "actions/upload-artifact@v4" | |
| with: | |
| name: "rust-toolchain-${{ matrix.triple }}.tar.gz" | |
| path: "rust/rust-toolchain-${{ matrix.triple }}.tar.gz" |