-
Notifications
You must be signed in to change notification settings - Fork 27
96 lines (92 loc) · 3.87 KB
/
cross.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: cross
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "17 3 * * *"
env:
CARGO_TERM_COLOR: always
jobs:
cross-test-i686:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [stable, beta, nightly]
env:
RUSTFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v4
- name: Install cross
uses: houseabsolute/actions-rust-cross@v0
with:
command: build
toolchain: ${{ matrix.toolchain }}
target: i686-unknown-linux-gnu
args: "--no-default-features --verbose"
- name: test with cross
run: |
for features in "" "--features std" "--features public_imp" "--features std,public_imp"; do
for rustflags in "-D warnings" "-D warnings -C target-feature=+avx2" "-D warnings -C target-feature=+sse4.2"; do
cargo clean; RUSTFLAGS=$rustflags /home/runner/work/_temp/cross +${{ matrix.toolchain }} test --no-default-features --verbose --target i686-unknown-linux-gnu $features
done
done
- name: nightly-only test with cross
run: |
for rustflags in "-D warnings" "-D warnings -C target-feature=+avx2" "-D warnings -C target-feature=+sse4.2"; do
cargo clean; RUSTFLAGS=$rustflags /home/runner/work/_temp/cross +${{ matrix.toolchain }} test --no-default-features --verbose --target i686-unknown-linux-gnu --all-features
done
if: ${{ matrix.toolchain == 'nightly' }}
cross-test-aarch64:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [stable, beta, nightly]
steps:
- uses: actions/checkout@v4
- name: Cross test
uses: houseabsolute/actions-rust-cross@v0
with:
command: build
toolchain: ${{ matrix.toolchain }}
target: aarch64-unknown-linux-gnu
args: "--no-default-features --verbose"
- name: test with cross
run: |
for features in "" "--features std" "--features public_imp" "--features std,public_imp"; do
cargo clean; /home/runner/work/_temp/cross +${{ matrix.toolchain }} test --no-default-features --verbose --target i686-unknown-linux-gnu $features
done
- name: nightly-only test with cross
run: |
cargo clean; /home/runner/work/_temp/cross +${{ matrix.toolchain }} test --no-default-features --verbose --target i686-unknown-linux-gnu --all-features
if: ${{ matrix.toolchain == 'nightly' }}
cross-test-armv7:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [stable, beta, nightly]
steps:
- uses: actions/checkout@v4
- name: Cross test
uses: houseabsolute/actions-rust-cross@v0
with:
command: build
toolchain: ${{ matrix.toolchain }}
target: armv7-unknown-linux-gnueabihf
args: "--no-default-features --verbose"
- name: test with cross
run: |
for rustflags in "-D warnings" "-D warnings -Ctarget-feature=+neon"; do
for features in "" "--features std" "--features public_imp" "--features std,public_imp"; do
cargo clean; /home/runner/work/_temp/cross +${{ matrix.toolchain }} test --no-default-features --verbose --target armv7-unknown-linux-gnueabihf $features
done
done
- name: test with cross with armv7_neon enabled
run: |
for rustflags in "-D warnings" "-D warnings -Ctarget-feature=+neon"; do
for features in "--features armv7_neon" "--features armv7_neon,std" "--features armv7_neon,public_imp" "--features armv7_neon,std,public_imp" "--all-features"; do
cargo clean; /home/runner/work/_temp/cross +${{ matrix.toolchain }} test --no-default-features --verbose --target armv7-unknown-linux-gnueabihf $features
done
done
if: ${{ matrix.toolchain == 'nightly' }}