-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create github action compiling haxo001 for RPi Zero
Enable manual triggering of this workflow. Trigger this workflow on pushes the `testing-ci` branch as well. This should be useful to test changes we make to the workflow as we add support for building other targets and/or build steps.
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Docker Image CI | ||
|
||
on: | ||
push: | ||
branches: [ "main", "testing-ci" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
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: | | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
# Cross-compiling for RPi Zero in docker | ||
|
||
- Note: targets other than RPi Zero aren't (yet) supported | ||
|