-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (48 loc) · 1.22 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Main
on:
- push
- pull_request
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
rust: [stable, beta, nightly]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@master
- name: Install rust
run: |
rustup update ${{ matrix.rust }} --no-self-update
rustup default ${{ matrix.rust }}
- run: cargo test --verbose
integration-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: testing
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Qemu
run: |
sudo apt update
sudo apt install qemu-system
- name: Install Rust
run: |
rustup update nightly --no-self-update
rustup default nightly
rustup target add x86_64-unknown-none
rustup component add rust-src
rustup component add llvm-tools-preview
- run: cargo test --verbose
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install rust
run: |
rustup update stable --no-self-update
rustup default stable
- run: cargo fmt -- --check