Skip to content

Edited README.md per Eder #2

Edited README.md per Eder

Edited README.md per Eder #2

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 }}