forked from rust-lang/backtrace-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
202 lines (194 loc) · 6.95 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
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
thing: [stable, beta, nightly, macos, windows-msvc64, windows-msvc32, windows-gnu64, windows-gnu32]
include:
- thing: stable
os: ubuntu-latest
rust: stable
- thing: beta
os: ubuntu-latest
rust: beta
- thing: nightly
os: ubuntu-latest
rust: nightly
- thing: macos
os: macos-latest
rust: stable
# Note that these are on nightly due to rust-lang/rust#63700 not being
# on stable yet
- thing: windows-msvc64
os: windows-latest
rust: nightly-x86_64-msvc
- thing: windows-msvc32
os: windows-latest
rust: nightly-i686-msvc
- thing: windows-gnu64
os: windows-latest
rust: nightly-x86_64-gnu
- thing: windows-gnu32
os: windows-latest
rust: nightly-i686-gnu
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Install Rust (rustup)
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
shell: bash
# full fidelity of backtraces on 32-bit msvc requires frame pointers, so
# enable that for our tests
- name: Force frame pointers
run: echo "##[set-env name=RUSTFLAGS]-Cforce-frame-pointers"
shell: bash
if: matrix.thing == 'windows-msvc32'
- run: cargo build --manifest-path crates/backtrace-sys/Cargo.toml
- run: cargo build
- run: cargo test
- run: cargo test --features "gimli-symbolize"
- run: cargo test --no-default-features
- run: cargo test --no-default-features --features "std"
- run: cargo test --no-default-features --features "libunwind std"
- run: cargo test --no-default-features --features "libunwind dladdr std"
- run: cargo test --no-default-features --features "libunwind libbacktrace std"
- run: cargo test --no-default-features --features "libunwind libbacktrace dbghelp std"
- run: cargo test --no-default-features --features "libunwind coresymbolication dbghelp std"
- run: cargo test --no-default-features --features "libunwind coresymbolication dbghelp std libbacktrace"
- run: cargo test --no-default-features --features "unix-backtrace std"
- run: cargo test --no-default-features --features "unix-backtrace dladdr std"
- run: cargo test --no-default-features --features "unix-backtrace libbacktrace std"
- run: cargo test --no-default-features --features "unix-backtrace coresymbolication std"
- run: cargo test --no-default-features --features "serialize-serde std"
- run: cargo test --no-default-features --features "serialize-rustc std"
- run: cargo test --no-default-features --features "serialize-rustc serialize-serde std"
- run: cargo test --no-default-features --features "cpp_demangle std"
- run: cargo test --no-default-features --features "dbghelp std"
- run: cargo test --no-default-features --features "dbghelp std verify-winapi"
- run: cargo test --manifest-path crates/cpp_smoke_test/Cargo.toml
- run: cargo test --manifest-path crates/macos_frames_test/Cargo.toml
- run: cargo test --features libbacktrace --manifest-path crates/without_debuginfo/Cargo.toml
- run: cargo test --features "libbacktrace coresymbolication" --manifest-path crates/without_debuginfo/Cargo.toml
- run: cargo test --features "libbacktrace gimli-symbolize" --manifest-path crates/without_debuginfo/Cargo.toml
windows_arm64:
name: Windows AArch64
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Install Rust
run: rustup update stable --no-self-update && rustup default stable
shell: bash
- run: rustup target add aarch64-pc-windows-msvc
- run: cargo test --no-run --target aarch64-pc-windows-msvc
- run: cargo test --no-run --target aarch64-pc-windows-msvc --features verify-winapi
ios:
name: iOS
runs-on: macos-latest
strategy:
matrix:
target:
- aarch64-apple-ios
- armv7-apple-ios
- armv7s-apple-ios
- i386-apple-ios
- x86_64-apple-ios
include:
- target: aarch64-apple-ios
sdk: iphoneos
- target: armv7-apple-ios
sdk: iphoneos
- target: armv7s-apple-ios
sdk: iphoneos
- target: i386-apple-ios
sdk: iphonesimulator
- target: x86_64-apple-ios
sdk: iphonesimulator
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Install Rust (
run: |
curl https://sh.rustup.rs | sh -s -- -y
echo "##[add-path]$HOME/.cargo/bin"
- run: rustup target add ${{ matrix.target }}
- run: |
export SDK_PATH=`xcrun --show-sdk-path --sdk ${{ matrix.sdk }}`
export RUSTFLAGS="-C link-arg=-isysroot -C link-arg=$SDK_PATH"
cargo test --no-run --target ${{ matrix.target }}
name: Build tests
docker:
name: Docker
runs-on: ubuntu-latest
strategy:
matrix:
target:
- aarch64-unknown-linux-gnu
- arm-unknown-linux-gnueabihf
- armv7-unknown-linux-gnueabihf
- i586-unknown-linux-gnu
- i686-unknown-linux-gnu
- powerpc64-unknown-linux-gnu
- x86_64-pc-windows-gnu
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
- arm-linux-androideabi
- armv7-linux-androideabi
- aarch64-linux-android
- i686-linux-android
- x86_64-linux-android
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Install Rust
run: rustup update stable && rustup default stable
- run: rustup target add ${{ matrix.target }}
- run: cargo generate-lockfile
- run: ./ci/run-docker.sh ${{ matrix.target }}
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Install Rust
run: rustup update stable && rustup default stable && rustup component add rustfmt
- run: cargo fmt --all -- --check
build:
name: Build Targets
runs-on: ubuntu-latest
strategy:
matrix:
target: [wasm32-unknown-unknown, wasm32-wasi, x86_64-fuchsia, x86_64-fortanix-unknown-sgx]
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Install Rust
run: rustup update nightly && rustup default nightly
- run: rustup target add ${{ matrix.target }}
- run: cargo build --target ${{ matrix.target }}
msrv:
name: MSRV
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Install Rust
run: rustup update 1.32.0 && rustup default 1.32.0
- run: cargo build