-
-
Notifications
You must be signed in to change notification settings - Fork 14
61 lines (57 loc) · 1.63 KB
/
continuous_integration.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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
CARGO_TERM_COLOR: always
RUSTC_WRAPPER: "sccache"
SCCACHE_GHA_ENABLED: "true"
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get install bchunk dolphin-emu liblz4-1 libuv1 libzopfli1 mame-tools wit yarn
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: clippy, llvm-tools-preview
override: true
- name: Configure rust cache
uses: Swatinem/rust-cache@v2
- name: Install llvm-cov
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-llvm-cov
- name: Run clippy
uses: actions-rs/clippy-check@v1
with:
args: --features server
token: ${{secrets.GITHUB_TOKEN}}
# - name: Run audit
# uses: actions-rs/audit-check@v1
# with:
# token: ${{secrets.GITHUB_TOKEN}}
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --features server
- name: Test
uses: actions-rs/cargo@v1
with:
command: llvm-cov
args: --features server --lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}