-
Notifications
You must be signed in to change notification settings - Fork 2
82 lines (79 loc) · 2.53 KB
/
ci.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Continuous integration
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
jobs:
tests:
runs-on: ubuntu-latest
continue-on-error: false
strategy:
matrix:
rust:
- 1.65.0
- stable
- beta
- nightly
include:
- rust: stable
coverage: 'send'
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Update apt
run: sudo apt-get update -y -qq
- name: Install alsa
run: sudo apt-get install -y libasound2-dev
- name: Install ${{ matrix.rust }} toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Basic Tests
env:
RUSTFLAGS: '-D warnings'
run: |
rustc --version
cargo --version
cargo build --verbose
cargo test --verbose
- name: All Tests
if: matrix.rust == 'stable'
env:
RUSTFLAGS: '-D warnings'
run: |
sudo apt-get install -y libsdl2-dev
cargo test --verbose -- --ignored
cargo test --no-default-features --verbose
cargo test --no-default-features --verbose -- --ignored
cargo test --features=boxed_frame_cache --verbose
cargo test --features=boxed_frame_cache --verbose -- --ignored
cargo test --no-default-features --features=boxed_frame_cache --verbose
cargo test --no-default-features --features=boxed_frame_cache --verbose -- --ignored
cargo build -p audio --bins --verbose
cargo test -p audio --verbose
- name: Example zxspectrum-common Tests
if: matrix.rust == 'stable'
env:
RUSTFLAGS: '-D warnings'
working-directory: ./examples/zxspectrum-common
run: |
cargo build --verbose
cargo test --verbose
cargo build --no-default-features --verbose
cargo test --no-default-features --verbose
- name: Example sdl2-zxspectrum Tests
if: matrix.rust == 'stable'
env:
RUSTFLAGS: '-D warnings'
working-directory: ./examples/sdl2-zxspectrum
run: |
cargo build --no-default-features --verbose
cargo test --no-default-features --verbose
cargo build --no-default-features --features=compact --verbose
cargo test --no-default-features --features=compact --verbose