Skip to content

Commit

Permalink
Create github action compiling haxo001 for RPi Zero
Browse files Browse the repository at this point in the history
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
jcard0na authored and Javier Cardona committed Feb 4, 2024
1 parent 5a1a983 commit 36b6756
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/docker-image.yml
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
1 change: 0 additions & 1 deletion docker/README.md
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
Expand Down

0 comments on commit 36b6756

Please sign in to comment.