-
-
Notifications
You must be signed in to change notification settings - Fork 51
57 lines (48 loc) · 1.59 KB
/
ci-builds.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
name: ci
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- { toolchain: nightly }
steps:
- uses: actions/checkout@v2
- name: Install Apt Dependencies
run: sudo apt-get update && sudo apt-get install binutils-arm-none-eabi libelf-dev
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust.toolchain }}
default: true
- name: Install Rust Source
run: rustup component add rust-src
- name: Build The Examples
uses: actions-rs/cargo@v1
with:
toolchain: ${{ matrix.rust.toolchain }}
command: build
args: --examples
- name: Check compilation succeeds when not on the GBA (check to prevent complaints about missing things)
uses: actions-rs/cargo@v1
with:
toolchain: ${{ matrix.rust.toolchain }}
command: check
args: --no-default-features
- name: Install mgba-test-runner
uses: actions-rs/cargo@v1
with:
toolchain: ${{ matrix.rust.toolchain }}
command: install
# newer revisions don't build on aarch64, at least, because of a c_char mishap
args: --git https://github.com/agbrs/agb --rev a7f9fdf01118a7a77d4dcf72f2b74a1961458b36 mgba-test-runner
- name: Run unit tests
uses: actions-rs/cargo@v1
env:
CARGO_TARGET_THUMBV4T_NONE_EABI_RUNNER: mgba-test-runner
with:
toolchain: ${{ matrix.rust.toolchain }}
command: test