Skip to content

Commit 995dd3c

Browse files
committed
Use target to build firmware on CI
1 parent 87f7b6d commit 995dd3c

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/lich-docker-images.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,19 @@ jobs:
2222
- arch: amd64
2323
runner: ubuntu-latest
2424
image: alpine
25+
target: x86_64-unknown-linux-musl
2526
- arch: amd64
2627
runner: ubuntu-latest
2728
image: linux
29+
target: x86_64-unknown-linux-gnu
2830
- arch: arm64
2931
runner: ubuntu-24.04-arm
3032
image: alpine
33+
target: aarch64-unknown-linux-musl
3134
- arch: arm64
3235
runner: ubuntu-24.04-arm
3336
image: linux
37+
target: aarch64-unknown-linux-gnu
3438

3539
runs-on: ${{ matrix.runner }}
3640

@@ -45,17 +49,18 @@ jobs:
4549
uses: dtolnay/rust-toolchain@master
4650
with:
4751
toolchain: stable
52+
target: ${{ matrix.target }}
4853

4954
- name: Compile firmware
5055
working-directory: ${{ github.workspace }}/light-firmware
5156
run: |
52-
cargo build
57+
cargo build --target ${{ matrix.target }}
5358
5459
- name: Create docker input
5560
run: |
5661
mkdir -p input/${{ matrix.image }}
5762
cp config/lich-docker-ci-${{ matrix.image }}.toml input/${{ matrix.image }}/lich.toml
58-
mv light-firmware/target/debug/light-firmware input/${{ matrix.image }}
63+
mv light-firmware/target/${{ matrix.target }}/debug/light-firmware input/${{ matrix.image }}
5964
6065
- name: Disable tools not executable on ci
6166
run: |

0 commit comments

Comments
 (0)