feat: adapt to Fuchsia 2026-09-03 #1191
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 CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| rust_toolchain: nightly-2026-09-01 | |
| jobs: | |
| workspace: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ env.rust_toolchain }} | |
| components: rust-src, rustfmt, clippy | |
| - name: Check format | |
| run: cargo fmt --all -- --check | |
| - name: Build | |
| run: cargo build --all-features | |
| - name: Clippy | |
| run: cargo clippy --all-features | |
| - name: Pull prebuilt images | |
| if: github.event_name == 'workflow_dispatch' | |
| run: make zircon-init | |
| - name: Build docs | |
| if: github.event_name == 'workflow_dispatch' | |
| run: cargo doc --no-deps --all-features --workspace | |
| test-libos: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| mode: [linux] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ env.rust_toolchain }} | |
| components: rust-src, llvm-tools-preview, clippy | |
| - name: Build | |
| run: cargo build --package zcore --features "${{ matrix.mode }} libos" | |
| - name: Clippy | |
| run: cargo clippy --package zcore --features "${{ matrix.mode }} libos" | |
| test-bare-metal: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| arch: [x86_64, riscv64, aarch64] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| submodules: 'recursive' | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ env.rust_toolchain }} | |
| components: rust-src, llvm-tools-preview, clippy | |
| - name: Install cargo-binutils | |
| run: cargo install cargo-binutils --locked | |
| - name: Install qemu-utils | |
| run: | | |
| sudo rm -f /etc/apt/sources.list.d/azure-cli.list /etc/apt/sources.list.d/microsoft-prod.list | |
| sudo apt-get update | |
| sudo apt-get install -y qemu-utils | |
| - name: Pull prebuilt images | |
| run: make zircon-init | |
| - name: Build ${{ matrix.arch }} bare-metal zircon | |
| run: cd zCore && make build ARCH=${{ matrix.arch }} ZBI=core-tests | |
| - name: Clippy ${{ matrix.arch }} bare-metal zircon | |
| run: cd zCore && make clippy ARCH=${{ matrix.arch }} ZBI=core-tests | |
| - name: Xtask Build bare-metal linux | |
| run: cargo bin -m virt-${{ matrix.arch }} | |
| build-user: | |
| # The unpatched runtime prebuilts do not contain a Fuchsia C/C++ SDK sysroot. | |
| if: ${{ false }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install prebuilt images | |
| run: make zircon-init | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ env.rust_toolchain }} | |
| targets: x86_64-unknown-fuchsia | |
| - name: Build Zircon user programs | |
| run: cd zircon-user && make build MODE=release |