Skip to content

Rewrite how the emulator works, and all UIs #147

Rewrite how the emulator works, and all UIs

Rewrite how the emulator works, and all UIs #147

Workflow file for this run

name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
jobs:
linux:
runs-on: ubuntu-20.04
steps:
- name: Download apt packages
run: |
sudo apt-get update -y && sudo apt-get install -y libasound2-dev libudev-dev
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: llvm-tools-preview
- name: Use sccache-cache
uses: mozilla-actions/[email protected]
- uses: actions/checkout@v4
# breaks for now since Cargo.lock is in a new version (4)
# - uses: actions-rs/audit-check@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: cargo build --verbose
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
# runs cargo with defaults flags, using the default `lcov` output
- uses: Swatinem/fucov@v1
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
# afterwards, upload the report to codecov
- uses: codecov/codecov-action@v1
with:
directory: coverage
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --all --all-targets
- name: Run tests
run: cargo test --workspace --exclude plastic_ui --exclude plastic_ui_tui --lib