Skip to content

Commit e7aecfa

Browse files
committed
CI: Speedup by building v0.5 and v1 concurrently
1 parent 4771095 commit e7aecfa

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ jobs:
6161

6262

6363
# Compilation
64-
build:
65-
name: build
64+
buildv0_5:
65+
name: build v0.5
6666
runs-on: ubuntu-22.04
6767
steps:
6868
- name: Checkout
@@ -78,7 +78,27 @@ jobs:
7878
run: cargo install flip-link
7979

8080
- name: cargo build
81-
run: find . -type f -name Cargo.toml -execdir cargo build --release --manifest-path {} +
81+
run: find rtic_v0.5 -type f -name Cargo.toml -execdir cargo build --release --manifest-path {} +
82+
83+
# Compilation
84+
buildv1:
85+
name: build v1
86+
runs-on: ubuntu-22.04
87+
steps:
88+
- name: Checkout
89+
uses: actions/checkout@v3
90+
91+
- name: Cache Dependencies
92+
uses: Swatinem/rust-cache@v2
93+
94+
- name: Install all Rust targets
95+
run: rustup target install thumbv6m-none-eabi thumbv7m-none-eabi thumbv7em-none-eabihf
96+
97+
- name: Install flip-link
98+
run: cargo install flip-link
99+
100+
- name: cargo build
101+
run: find rtic_v1 -type f -name Cargo.toml -execdir cargo build --release --manifest-path {} +
82102

83103
check-dependabot-config:
84104
name: Ensure that `dependabot.yml` is up to date
@@ -102,7 +122,8 @@ jobs:
102122
- style
103123
- check
104124
- clippy
105-
- build
125+
- buildv0_5
126+
- buildv1
106127
- check-dependabot-config
107128
runs-on: ubuntu-22.04
108129
steps:

0 commit comments

Comments
 (0)