Skip to content

Commit b346c5b

Browse files
authored
Update build_and_test.yml
Simplify the examples build to not use any fancy sub-actions.
1 parent a69777c commit b346c5b

File tree

1 file changed

+9
-27
lines changed

1 file changed

+9
-27
lines changed

.github/workflows/build_and_test.yml

Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -16,33 +16,15 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v3
19-
- uses: actions-rs/toolchain@v1
20-
with:
21-
toolchain: stable
22-
target: thumbv6m-none-eabi
23-
override: true
24-
profile: minimal
25-
- name: Build
19+
- name: Build crate
2620
run: cargo build --verbose
27-
- uses: actions-rs/cargo@v1
28-
with:
29-
command: build
30-
args: --examples
31-
toolchain: stable
32-
target: thumbv6m-none-eabi
33-
override: true
34-
profile: minimal
35-
- run: echo "Debug examples built:" && ls target/thumbv6m-none-eabi/debug/examples/ |grep -v '-' |grep -v '\.d'
36-
- run: rm target/thumbv6m-none-eabi/debug/examples/ -rf
37-
- uses: actions-rs/cargo@v1
38-
with:
39-
command: build
40-
args: --release --examples
41-
toolchain: stable
42-
target: thumbv6m-none-eabi
43-
override: true
44-
profile: minimal
45-
- run: echo "Release examples built:" && ls target/thumbv6m-none-eabi/release/examples/ |grep -v '-' |grep -v '\.d'
46-
- run: rm target/thumbv6m-none-eabi/release/examples/ -rf
21+
- name: Build debug examples
22+
run: cargo build --verbose --examples
23+
#- run: echo "Debug examples built:" && ls target/thumbv6m-none-eabi/debug/examples/ |grep -v '-' |grep -v '\.d'
24+
#- run: rm target/thumbv6m-none-eabi/debug/examples/ -rf
25+
- name: Build release examples
26+
run: cargo build --verbose --release --examples
27+
#- run: echo "Release examples built:" && ls target/thumbv6m-none-eabi/release/examples/ |grep -v '-' |grep -v '\.d'
28+
#- run: rm target/thumbv6m-none-eabi/release/examples/ -rf
4729
- name: Run tests
4830
run: cargo test --verbose

0 commit comments

Comments
 (0)