Skip to content

Commit 4ab944f

Browse files
committed
prebuild all rusts
1 parent de15e96 commit 4ab944f

File tree

2 files changed

+23
-26
lines changed

2 files changed

+23
-26
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,28 @@ jobs:
4242
args: --target ${{ matrix.TARGET }}
4343

4444
prebuild:
45-
name: Prebuild for linux & stable Rust
45+
name: Prebuild
4646
runs-on: ubuntu-latest
47-
steps:
48-
- uses: actions/checkout@v2
47+
strategy:
48+
matrix:
49+
rust: [stable, nightly, 1.46.0]
50+
steps:
51+
- uses: actions/checkout@v2
4952

50-
- uses: actions-rs/toolchain@v1
51-
with:
52-
profile: minimal
53-
toolchain: stable
54-
override: true
53+
- uses: actions-rs/toolchain@v1
54+
with:
55+
profile: minimal
56+
toolchain: ${{ matrix.rust }}
57+
override: true
5558

56-
- name: Cache
57-
uses: Swatinem/rust-cache@v1
58-
with:
59-
sharedKey: prebuilded
59+
- name: Cache
60+
uses: Swatinem/rust-cache@v1
61+
with:
62+
sharedKey: prebuilded
6063

61-
- name: Self install
62-
run: |
63-
cargo install svd2rust --path .
64+
- name: Self install
65+
run: |
66+
cargo install svd2rust --path .
6467
6568
ci-linux:
6669
runs-on: ubuntu-latest
@@ -93,12 +96,10 @@ jobs:
9396

9497
# Use nightly for architectures which don't support stable
9598
- rust: nightly
96-
experimental: true
9799
vendor: OTHER
98100

99101
# Use nightly for architectures which don't support stable
100102
- rust: nightly
101-
experimental: true
102103
vendor: Espressif
103104

104105
steps:
@@ -115,10 +116,6 @@ jobs:
115116
with:
116117
sharedKey: prebuilded
117118

118-
- name: Self install
119-
run: |
120-
cargo install svd2rust --path .
121-
122119
- name: Run CI script for `${{ matrix.vendor }}` under rust `${{ matrix.rust }}` with options=`${{ matrix.options }}`
123120
env:
124121
VENDOR: ${{ matrix.vendor }}

ci/script.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,12 @@ main() {
231231
test_svd MK82F25615
232232
# test_svd MKE14F16
233233
# test_svd MKE14Z7
234-
test_svd MKE15Z7
235-
# test_svd MKE16F16
236-
# test_svd MKE18F16
237234
;;
238235

239236
Freescale_2)
237+
test_svd MKE15Z7
238+
# test_svd MKE16F16
239+
# test_svd MKE18F16
240240
test_svd MKL28T7_CORE0
241241
# test_svd MKL28T7_CORE1
242242
# test_svd MKL28Z7
@@ -351,6 +351,8 @@ main() {
351351
test_svd MB9AFB4xL
352352
test_svd MB9AFB4xM
353353
test_svd MB9AFB4xN
354+
test_svd S6E1A1
355+
test_svd S6E2CC
354356
;;
355357

356358
Fujitsu_2)
@@ -411,8 +413,6 @@ main() {
411413
test_svd MB9BF61xT
412414
test_svd MB9BFD1xS
413415
test_svd MB9BFD1xT
414-
test_svd S6E1A1
415-
test_svd S6E2CC
416416
;;
417417

418418
Holtek)

0 commit comments

Comments
 (0)