updated array.ok array_no_blockages.ok for master merge #1
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
name: Build deb packages | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
jobs: | |
builder: | |
name: 'Build .deb package' | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ['debian10', 'debian11', 'ubuntu20.04', 'ubuntu22.04'] | |
runs-on: ubuntu-latest | |
container: | |
image: openroad/${{ matrix.os }}-dev | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Build package | |
run: | | |
mkdir artifacts | |
debuild --preserve-env --preserve-envvar=PATH -B | |
mv ../openroad_* artifacts | |
- name: Rename artifact | |
id: artifact | |
run: | | |
cd artifacts | |
file=$(realpath openroad_*.deb) | |
artifact=$(echo $file | sed 's/\.\([^.]*\)$/-${{ matrix.os }}.\1/') | |
mv $file $artifact | |
echo "file=$(realpath $artifact)" >> $GITHUB_OUTPUT | |
name=$(basename $artifact) | |
name=${name%.deb} | |
echo "name=$name" >> $GITHUB_OUTPUT | |
- name: Upload workflow artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ steps.artifact.outputs.name }} | |
path: ${{ steps.artifact.outputs.file }} |