-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (35 loc) · 1.01 KB
/
rust.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
name: Rust
on:
push:
branches: [ master, feature/all_targets_ci ]
pull_request:
branches: [ master, feature/*, fix/* ]
env:
CARGO_TERM_COLOR: always
jobs:
build-and-test-all-targets:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable, nightly
rustflags: ""
cache-directories: "/home/runner/.cargo/bin
C:\\Users\\runneradmin\\.cargo\\bin"
- name: install cargo make
run: cargo install cargo-make
- name: Run tests
run: cargo make test
# for some reason the sdl instalation making this fail (some error about not finding glibc) so this should before the sdl
- name: rpi os
run: cargo make rpios
- name: Build sdl
run: cargo make sdl
- name: Build libretro
run: cargo make libretro_desktop
- name: rpi baremetal
run: cargo make -e RPI=4 rpibm