Skip to content

Combine workflow steps and upload executable #9

Combine workflow steps and upload executable

Combine workflow steps and upload executable #9

Workflow file for this run

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: Cross-compile haxo001 for Raspberry Pi Zero
run: docker build docker/ -f docker/pizero.dockerfile -t pizero:local
run: |

Check failure on line 20 in .github/workflows/docker-image.yml

View workflow run for this annotation

GitHub Actions / Docker Image CI

Invalid workflow file

The workflow is not valid. .github/workflows/docker-image.yml (Line: 20, Col: 7): 'run' is already defined
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