Build and Archive Debian Package #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 and Archive Debian Package | |
on: | |
# Allow manual runs of workflow from Actions tab | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- 'debian/changelog' | |
jobs: | |
sbuild: | |
name: sbuild ${{ matrix.distro }}+${{ matrix.arch }} | |
runs-on: 'ubuntu-22.04' | |
strategy: | |
fail-fast: false | |
matrix: | |
distro: [bullseye,bookworm] | |
arch: [arm64] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: sbuild for ${{ matrix.distro }} ${{ matrix.arch }} | |
uses: wlan-pi/sbuild-debian-package@main | |
id: build-debian-package | |
with: | |
distro: ${{ matrix.distro }} | |
arch: ${{ matrix.arch }} | |
- name: Archive artifacts and upload to GitHub | |
uses: actions/upload-artifact@v4 | |
with: | |
name: wlanpi-common-${{ matrix.distro }}-${{ matrix.arch }} | |
path: ${{ steps.build-debian-package.outputs.deb-package }} | |
slack-workflow-status: | |
if: always() | |
name: Post Workflow Status to Slack | |
needs: | |
- sbuild | |
runs-on: 'ubuntu-22.04' | |
steps: | |
- name: Slack Workflow Notification | |
uses: Gamesight/slack-workflow-status@master | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} |