Build architecture-specific packages #32
Workflow file for this run
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 package | |
on: | |
push: | |
branches: ['*'] | |
pull_request: | |
branches: ['*'] | |
workflow_dispatch: | |
jobs: | |
test-and-build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
arches: | |
- amd64 | |
- i386 | |
- arm64 | |
- armhf | |
steps: | |
- uses: actions/checkout@v3 | |
- name: ShellCheck | |
uses: ludeeus/action-shellcheck@2.0.0 | |
env: | |
SHELLCHECK_OPTS: -e SC1091 | |
- name: Build Debian ${{ matrix.arches }} package | |
uses: jtdor/build-deb-action@v1 | |
with: | |
buildpackage-opts: --no-sign --check-command=lintian | |
extra-build-deps: lintian | |
host-arch: ${{ matrix.arches }} | |
upload: | |
runs-on: ubuntu-latest | |
needs: test-and-build | |
steps: | |
- name: Upload debian package as artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: deb | |
path: debian/artifacts |