@@ -56,26 +56,19 @@ jobs:
56
56
strategy :
57
57
fail-fast : false
58
58
matrix :
59
- target : [x86_64-pc-windows-msvc, i686-pc-windows-msvc, i586-pc-windows-msvc, x86_64-unknown-linux-gnu, x86_64-apple-darwin ]
59
+ target : [x86_64-pc-windows-msvc, i686-pc-windows-msvc, i586-pc-windows-msvc, x86_64-unknown-linux-gnu]
60
60
# `default` means we use the default target config for the target,
61
61
# `native` means we run with `-Ctarget-cpu=native`, and anything else is
62
62
# an arg to `-Ctarget-feature`
63
63
target_feature : [default, native, +sse3, +ssse3, +sse4.1, +sse4.2, +avx, +avx2]
64
64
65
65
exclude :
66
- # The macos runners seem to only reliably support up to `avx`.
67
- - { target: x86_64-apple-darwin, target_feature: +avx2 }
68
- # These features are statically known to be present for all 64 bit
69
- # macs, and thus are covered by the `default` test
70
- - { target: x86_64-apple-darwin, target_feature: +sse3 }
71
- - { target: x86_64-apple-darwin, target_feature: +ssse3 }
72
66
# -Ctarget-cpu=native sounds like bad-news if target != host
73
67
- { target: i686-pc-windows-msvc, target_feature: native }
74
68
- { target: i586-pc-windows-msvc, target_feature: native }
75
69
76
70
include :
77
71
# Populate the `matrix.os` field
78
- - { target: x86_64-apple-darwin, os: macos-latest }
79
72
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest }
80
73
- { target: x86_64-pc-windows-msvc, os: windows-latest }
81
74
- { target: i686-pc-windows-msvc, os: windows-latest }
@@ -133,6 +126,35 @@ jobs:
133
126
run : cargo doc --verbose --target=${{ matrix.target }}
134
127
env :
135
128
RUSTDOCFLAGS : -Dwarnings
129
+
130
+ macos-tests :
131
+ name : ${{ matrix.target }}
132
+ runs-on : macos-latest
133
+ strategy :
134
+ fail-fast : false
135
+ matrix :
136
+ target :
137
+ - aarch64-apple-darwin
138
+ - x86_64-apple-darwin
139
+ steps :
140
+ - uses : actions/checkout@v2
141
+ - name : Setup Rust
142
+ run : rustup target add ${{ matrix.target }}
143
+
144
+ - name : Configure RUSTFLAGS
145
+ shell : bash
146
+ run : echo "RUSTFLAGS=-Dwarnings" >> $GITHUB_ENV
147
+
148
+ - name : Test (debug)
149
+ run : cargo test --verbose --target=${{ matrix.target }}
150
+
151
+ - name : Test (release)
152
+ run : cargo test --verbose --target=${{ matrix.target }} --release
153
+
154
+ - name : Generate docs
155
+ run : cargo doc --verbose --target=${{ matrix.target }}
156
+ env :
157
+ RUSTDOCFLAGS : -Dwarnings
136
158
137
159
wasm-tests :
138
160
name : " wasm (firefox, ${{ matrix.name }})"
0 commit comments