-
Notifications
You must be signed in to change notification settings - Fork 19
68 lines (55 loc) · 1.64 KB
/
rimage.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
name: Rimage
on:
push:
branches:
- main
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-2019]
name: Test `cargo check/test` on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v3
- name: Install dependencies (linux)
if: matrix.os == 'ubuntu-latest'
run: |
DEBIAN_FRONTEND=noninteractive sudo apt-get update
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y ninja-build nasm meson
- name: Install dependencies (macOS)
if: matrix.os == 'macos-latest'
run: |
brew install ninja nasm meson
- name: Install dependencies (windows)
if: matrix.os == 'windows-2019'
run: |
choco install -y ninja
pip install meson
- name: Install nasm (windows)
if: matrix.os == 'windows-2019'
uses: ilammy/setup-nasm@v1
- run: |
rustup set auto-self-update disable
rustup toolchain install stable --profile minimal
- name: Rust Cache
uses: Swatinem/[email protected]
- name: Check/Test (Windows)
if: matrix.os == 'windows-2019'
shell: cmd
run: |
call "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
cargo check --verbose
cargo test --verbose
- name: Test (Linux, macOS)
if: ${{ matrix.os != 'windows-2019' }}
run: |
cargo check --verbose
cargo test --verbose