@@ -95,23 +95,42 @@ jobs:
95
95
- run : cargo test ${{ matrix.no_run }} --workspace --target ${{ matrix.target }} --release
96
96
- run : cargo test ${{ matrix.no_run }} --workspace --target ${{ matrix.target }} --features parallel
97
97
98
- # This is separate from the matrix above because there is no prebuilt rust-std component for the target .
98
+ # This is separate from the matrix above because there is no prebuilt rust-std component for these targets .
99
99
check-tvos :
100
- name : Test aarch64-apple-tvos
101
- runs-on : macos-latest
100
+ name : Test build-std
101
+ runs-on : ${{ matrix.os }}
102
+ strategy :
103
+ matrix :
104
+ build : [aarch64-tvos, aarch64-tvos-sim, x86_64-tvos]
105
+ include :
106
+ - build : aarch64-tvos
107
+ os : macos-latest
108
+ rust : nightly
109
+ target : aarch64-apple-tvos
110
+ no_run : --no-run
111
+ - build : aarch64-tvos-sim
112
+ os : macos-latest
113
+ rust : nightly
114
+ target : aarch64-apple-tvos-sim
115
+ no_run : --no-run
116
+ - build : x86_64-tvos
117
+ os : macos-latest
118
+ rust : nightly
119
+ target : x86_64-apple-tvos
120
+ no_run : --no-run
102
121
steps :
103
122
- uses : actions/checkout@v4
104
123
- name : Install Rust (rustup)
105
124
run : |
106
125
set -euxo pipefail
107
- rustup toolchain install nightly --no-self-update --profile minimal
108
- rustup component add rust-src --toolchain nightly
109
- rustup default nightly
126
+ rustup toolchain install ${{ matrix.rust }} --no-self-update --profile minimal
127
+ rustup component add rust-src --toolchain ${{ matrix.rust }}
128
+ rustup default ${{ matrix.rust }}
110
129
shell : bash
111
130
- uses : Swatinem/rust-cache@v2
112
- - run : cargo test -Z build-std=std --no-run --workspace --target aarch64-apple-tvos
113
- - run : cargo test -Z build-std=std --no-run --workspace --target aarch64-apple-tvos --release
114
- - run : cargo test -Z build-std=std --no-run --workspace --target aarch64-apple-tvos --features parallel
131
+ - run : cargo test -Z build-std=std ${{ matrix.no_run }} --workspace --target ${{ matrix.target }}
132
+ - run : cargo test -Z build-std=std ${{ matrix.no_run }} --workspace --target ${{ matrix.target }} --release
133
+ - run : cargo test -Z build-std=std ${{ matrix.no_run }} --workspace --target ${{ matrix.target }} --features parallel
115
134
116
135
cuda :
117
136
name : Test CUDA support
0 commit comments