12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- name: CI
- on:
- push:
- branches: ["master"]
- pull_request:
- branches: ["master"]
- env:
- CARGO_TERM_COLOR: always
- jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- - name: Install nasm and qemu-utils
- run: sudo apt-get install nasm qemu-utils
- - name: Cache LLVM
- id: cache-llvm
- uses: actions/cache@v3
- with:
- path: llvm
- key: llvm-14.0
- - name: Install LLVM
- uses: KyleMayes/install-llvm-action@v1
- with:
- version: "14.0"
- directory: llvm
- cached: ${{ steps.cache-llvm.output.cache-hit }}
- - name: Cache cargo crates
- id: cache-cargo
- uses: actions/cache@v3
- with:
- path: |
- ~/.cargo/.crates.toml
- ~/.cargo/.crates2.json
- ~/.cargo/bin/
- ~/.cargo/registry/index/
- ~/.cargo/registry/cache/
- ~/.cargo/git/db/
- key: cargo-crates
- - name: Configure sccache
- uses: visvirial/sccache-action@v1
- - name: Build
- run: cargo xtask dist --release img
- fmt:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- - name: Check format
- run: cargo fmt --all --check
|