-
-
Notifications
You must be signed in to change notification settings - Fork 39
32 lines (30 loc) · 863 Bytes
/
linux.yml
File metadata and controls
32 lines (30 loc) · 863 Bytes
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
name: Linux
on: [push, pull_request]
jobs:
build:
name: Linux
runs-on: ubuntu-latest
strategy:
matrix:
rust: [1.61.0, stable, nightly]
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
components: clippy
target: aarch64-unknown-linux-gnu
- name: Add more targets
run: rustup target add i686-unknown-linux-gnu
- name: Setup TOML
run: cp Linux.toml Cargo.toml
- name: Check Linux (x86_64 GNU)
run: cargo check
- name: Check Linux (i686 GNU)
run: cargo check --target i686-unknown-linux-gnu
- name: Check Linux (aarch64 GNU)
run: cargo check --target aarch64-unknown-linux-gnu
- name: Run tests
run: cargo test