ci: add version to reuseable workflow #2
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
--- | ||
on: | ||
workflow_call: | ||
inputs: | ||
arch: | ||
required: true | ||
type: string | ||
jobs: | ||
needs: check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build docker image | ||
run: docker build -t lmi-img:latest -f docker/Dockerfile_${{ inputs.arch }} . | ||
- name: Get binary from docker container | ||
run: | | ||
docker create --name lmi lmi-img:latest | ||
docker cp lmi:/root/.cargo/bin/lilypond-midi-input lilypond-midi-input_${{ inputs.arch }} | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: lmi-${{ inputs.arch }} | ||
path: | | ||
lilypond-midi-input_${{ inputs.arch }} | ||
changelog |