-
Notifications
You must be signed in to change notification settings - Fork 66
64 lines (61 loc) · 1.59 KB
/
main.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
58
59
60
61
62
63
64
name: Test merlin
on:
push:
pull_request:
types: [opened, repoened, synchronize]
jobs:
native-test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
rust_toolchain: [nightly, stable]
os: [ubuntu-latest]
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Install Rust ${{ matrix.rust_toolchain }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust_toolchain }}
profile: minimal
default: true
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
cross-linux-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust_target:
- powerpc-unknown-linux-gnu
- powerpc64-unknown-linux-gnu
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Install Rust nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
target: ${{ matrix.rust_target }}
default: true
- name: Build
uses: actions-rs/cargo@v1
with:
# see https://github.com/rust-embedded/cross
use-cross: true
command: build
args: --target ${{ matrix.rust_target }}
- name: Test
uses: actions-rs/cargo@v1
with:
use-cross: true
command: test
args: --target ${{ matrix.rust_target }} -- --test-threads=1