-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.33 KB
/
test-arches-miri.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
permissions:
contents: read
# runs on push to the main branch, and PRs
on:
push:
branches: [main]
pull_request:
name: "test arches miri"
jobs:
# 1.
required:
name: "ubuntu / ${{ matrix.toolchain }}"
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [stable]
# toolchain: [stable, beta]
steps:
- name: "checkout"
uses: actions/checkout@v4
with:
submodules: true
- name: "Install ${{ matrix.toolchain }}"
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- name: "Install libraries via APT"
run: |
sudo apt update
# for alsa-sys, gilrs, fltk:
sudo apt install -y libasound2-dev libudev-dev libxft-dev
# for sdl2:
sudo apt install -y libsdl2-dev libsdl2-gfx-dev libsdl2-image-dev \
libsdl2-mixer-dev libsdl2-ttf-dev
- name: "cargo generate-lockfile"
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
- name: "install rust-script"
run: cargo install rust-script;
# https://twitter.com/jonhoo/status/1571290371124260865
- name: "./utils/check.rs --arches"
run: ./utils/check.rs --arches
- name: "./utils/check.rs --miri"
run: ./utils/check.rs --miri