From 73c90f629b9259c725db71843f87fa928b7ac726 Mon Sep 17 00:00:00 2001 From: Javier Cardona Date: Sun, 4 Feb 2024 12:08:02 +0000 Subject: [PATCH] Combine workflow steps and upload executable --- .github/workflows/docker-image.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 1a0a860..6509855 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -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