-
Notifications
You must be signed in to change notification settings - Fork 88
168 lines (152 loc) · 3.86 KB
/
test-push.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
name: Test (push)
on:
push:
branches:
- "!v*"
- "**"
env:
CARGO_TERM_COLOR: always
jobs:
tests:
name: Full Test Suite (All tiers)
runs-on: ubuntu-latest
needs:
- tests_t1
- tests_t2
steps:
- name: Finish full test suite
run: exit 0
tests_t1:
name: Tier 1 Tests
runs-on: ubuntu-latest
needs:
- test_64bit
- test_32bit
steps:
- name: Finish Tier 1 Tests
run: exit 0
tests_t2:
name: Tier 2 Tests
runs-on: ubuntu-latest
needs:
- test_tier2
steps:
- name: Finish Tier 2 Tests
run: exit 0
test_64bit:
name: Test (Tier 1) (64-bit) ${{ matrix.rust }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
rust: x86_64-unknown-linux-gnu
- os: macos-latest
rust: x86_64-apple-darwin
- os: windows-latest
rust: x86_64-pc-windows-msvc
- os: [self-hosted, ARM64]
rust: aarch64-unknown-linux-gnu
- os: macos-14
rust: aarch64-apple-darwin
steps:
- name: Checkout source code
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Install GNU tar
run: |
brew install gnu-tar
echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH
if: runner.os == 'macOS'
- name: Setup environment
run: |
chmod x ci/setvars.sh
ci/setvars.sh
- name: Restore cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
./target
key: ${{ matrix.rust }}-cargocache-${{ hashFiles('Cargo.lock') }}
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.rust }}
- name: Run Tests
run: make test
env:
RUST_BACKTRACE: 1
TARGET: ${{ matrix.rust }}
test_32bit:
name: Test (Tier 1) (32-bit) ${{ matrix.rust }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
rust: i686-unknown-linux-gnu
steps:
- name: Checkout source code
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Setup environment
run: |
chmod x ci/setvars.sh
ci/setvars.sh
- name: Restore cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
./target
key: ${{ matrix.rust }}-cargocache-${{ hashFiles('Cargo.lock') }}
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.rust }}
- name: Run Tests
run: make test
env:
RUST_BACKTRACE: 1
TARGET: ${{ matrix.rust }}
test_tier2:
name: Test (Tier 2) ${{ matrix.rust }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
rust: x86_64-unknown-linux-musl
- os: windows-latest
rust: i686-pc-windows-msvc
steps:
- name: Checkout source code
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Setup environment
run: |
chmod x ci/setvars.sh
ci/setvars.sh
- name: Restore cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
./target
key: ${{ matrix.rust }}-cargocache-${{ hashFiles('Cargo.lock') }}
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.rust }}
- name: Run Tests
run: make test
env:
RUST_BACKTRACE: 1
TARGET: ${{ matrix.rust }}