Skip to content

Front: Fix error when compiling without debugger feature #258

Front: Fix error when compiling without debugger feature

Front: Fix error when compiling without debugger feature #258

Workflow file for this run

name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: sccache
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Download system deps
run: sudo apt-get update -y && sudo apt-get install -y libasound2-dev
- uses: actions/checkout@v2
# - uses: actions-rs/audit-check@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
target: x86_64-unknown-linux-gnu
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.3
with:
version: "v0.5.4"
- name: Build
run: cargo build --verbose
- name: Extract bios
run: sh ./.github/extract_bios.sh
env:
BIOS_PASSPHRASE: ${{ secrets.BIOS_PASSPHRASE }}
- name: Download tests
run: sh ./.github/download_tests.sh
- name: Run tests
run: cargo test --verbose