-
Notifications
You must be signed in to change notification settings - Fork 27
56 lines (53 loc) · 1.66 KB
/
ci.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
name: Continuous Integration
on: [push, pull_request, workflow_dispatch]
jobs:
build-1-60-0:
name: "All tests: rustc 1.66.0"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust 1.66.0
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.66.0
rustflags: ""
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install cross-compilation toolchains
run: |
sudo apt update
sudo apt install -y gcc-multilib
# For target: armv7-unknown-linux-gnueabihf
sudo apt install -y gcc-arm-linux-gnueabihf
# For target: aarch64-unknown-linux-gnu
sudo apt install -y gcc-aarch64-linux-gnu
- name: Execute all tests
run: ./ci.sh
build-stable:
name: "All tests: rustc stable"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install latest Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
rustflags: ""
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install cross-compilation toolchains
run: |
sudo apt update
sudo apt install -y gcc-multilib
# For target: armv7-unknown-linux-gnueabihf
sudo apt install -y gcc-arm-linux-gnueabihf
# For target: aarch64-unknown-linux-gnu
sudo apt install -y gcc-aarch64-linux-gnu
- name: Execute all tests
run: |
rm Cargo.lock
./ci.sh