Skip to content

Commit

Permalink
Combine workflow steps and upload executable
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Cardona committed Feb 4, 2024
1 parent 36b6756 commit 73c90f6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Build the Docker image
- name: Cross-compile haxo001 for Raspberry Pi Zero
run: docker build docker/ -f docker/pizero.dockerfile -t pizero:local

- uses: actions/checkout@v4
- name: Build the haxo001 executable
run: |
docker run --rm --mount "type=bind,source=$(pwd),target=/haxo" \
--mount "type=bind,source=$HOME/.cargo,target=/cargo" pizero:local \
cargo build --target arm-unknown-linux-gnueabihf --release --features midi
- uses: actions/upload-artifact@v4
with:
name: haxo001-rpiz
path: /haxo/haxo-rs/target/arm-unknown-linux-gnueabihf/release/haxo001

0 comments on commit 73c90f6

Please sign in to comment.