2020-12-21 10:58:36 +00:00
|
|
|
name: Rust
|
|
|
|
on: [push]
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.cargo/registry
|
|
|
|
~/.cargo/git
|
|
|
|
target
|
|
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
2021-12-17 19:22:09 +00:00
|
|
|
profile: minimal
|
2021-06-27 12:57:53 +00:00
|
|
|
- run: sudo apt-get -qqy update
|
2020-12-21 10:58:36 +00:00
|
|
|
- run: sudo apt-get -qqy install qemu-system-x86
|
|
|
|
- run: rustup component add rust-src
|
|
|
|
- run: rustup component add llvm-tools-preview
|
|
|
|
- run: cargo install bootimage
|
2021-08-07 09:29:45 +00:00
|
|
|
- run: make test
|