Skip to content

Commit

Permalink
Combine workflow steps and upload executable
Browse files Browse the repository at this point in the history
This uploads to github the executable file built in continuous
integration as an action artifact.
  • Loading branch information
Javier Cardona committed Feb 4, 2024
1 parent 36b6756 commit 18a09b2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build docker/ -f docker/pizero.dockerfile -t pizero:local

- uses: actions/checkout@v4
- name: Build the haxo001 executable
run: |
- name: Cross-compile haxo001 for Raspberry Pi Zero
- run: docker build docker/ -f docker/pizero.dockerfile -t pizero:local
- 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 18a09b2

Please sign in to comment.