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 75f2d3b commit 1a6b68e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ jobs:

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

- uses: actions/checkout@v4
- name: Build the haxo001 executable
- name: Cross-compile haxo001 for Raspberry Pi Zero
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: target/arm-unknown-linux-gnueabihf/release/haxo001

0 comments on commit 1a6b68e

Please sign in to comment.