-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (28 loc) · 755 Bytes
/
Copy pathbuild.yml
File metadata and controls
33 lines (28 loc) · 755 Bytes
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
name: Build
on: [push]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
name: Build and test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Build
run: cargo build
- name: Test
run: cargo test
- name: Generate Coverage Report
run: |
sudo apt update && sudo apt-get install -y libsdl2-dev libsdl2-2.0-0
cargo install cargo-tarpaulin
cd nescore
cargo tarpaulin --out Xml --all-features
if: matrix.os == 'ubuntu-latest'
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
if: matrix.os == 'ubuntu-latest'