Rust #184
Workflow file for this run
This file contains 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: Rust | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
merge_group: | |
types: [checks_requested] | |
env: | |
SHELL: /bin/bash | |
jobs: | |
fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: fmt check | |
run: cargo fmt --all -- --check | |
linux: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: build | |
run: | | |
cd webxr | |
cargo build --features=glwindow,headless | |
cargo build --features=ipc,glwindow,headless | |
cargo build --features=glwindow,headless | |
mac: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: build | |
run: | | |
cd webxr | |
cargo build --features=glwindow,headless | |
cargo build --features=ipc,glwindow,headless | |
cargo build --features=glwindow,headless | |
win: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: build | |
run: | | |
cd webxr | |
cargo build --features=glwindow,headless | |
cargo build --features=ipc,glwindow,headless | |
cargo build --features=glwindow,headless | |
rustup target add aarch64-pc-windows-msvc | |
cargo build --target=aarch64-pc-windows-msvc --features ipc,openxr-api | |
build_result: | |
name: Result | |
runs-on: ubuntu-latest | |
needs: ["mac", "linux", "win", "fmt"] | |
steps: | |
- name: Mark the job as successful | |
run: exit 0 | |
if: success() | |
- name: Mark the job as unsuccessful | |
run: exit 1 | |
if: "!success()" |