Skip to content

fix: synthesize app launch for unknown applications #25 #8

fix: synthesize app launch for unknown applications #25

fix: synthesize app launch for unknown applications #25 #8

Workflow file for this run

name: Rust
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
concurrency:
group: rust-ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
SCCACHE_CACHE_SIZE: 10G
jobs:
check:
runs-on: macos-14
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache Cargo registry, git index, target and sccache
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
~/.cache/sccache
~/.cargo/bin
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('rust-toolchain.toml', 'rust-toolchain') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Add cargo bin to PATH
run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
- name: Install stable & nightly toolchains (+ nightly rustfmt)
run: |
rustup toolchain install stable
rustup toolchain install nightly
rustup default stable
rustup component add rustfmt --toolchain nightly
rustup show
- name: Install sccache
env:
RUSTC_WRAPPER: "" # ensure cargo doesn't try to call sccache yet
run: |
cargo install sccache || true
command -v sccache
sccache --version
sccache --start-server || true
- name: Formatting (nightly)
run: cargo +nightly fmt --all --check --verbose
- name: Check (host)
env:
RUSTC_WRAPPER: sccache
run: cargo check --verbose --locked
- name: sccache stats
if: always()
run: sccache --show-stats || true
build:
needs: check
runs-on: macos-14
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache Cargo registry, git index, target and sccache
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
~/.cache/sccache
~/.cargo/bin
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('rust-toolchain.toml', 'rust-toolchain') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Add cargo bin to PATH
run: echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
- name: Install latest stable toolchain
run: |
rustup toolchain install stable
rustup default stable
rustup show
- name: Install sccache
env:
RUSTC_WRAPPER: ""
run: |
cargo install sccache || true
command -v sccache
sccache --version
sccache --start-server || true
- name: Build
env:
RUSTC_WRAPPER: sccache
run: cargo build --verbose --locked
- name: Run tests
env:
RUSTC_WRAPPER: sccache
run: cargo test --verbose --locked
- name: sccache stats
if: always()
run: sccache --show-stats || true