Experimental support for the 240x240 1.3in display hat #105
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: Deploy to Packagecloud | |
on: | |
# Allow manual runs of workflow from Actions tab | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- 'debian/changelog' | |
jobs: | |
sbuild: | |
name: sbuild ${{ matrix.distro }}+${{ matrix.arch }} | |
runs-on: 'ubuntu-22.04' | |
strategy: | |
fail-fast: false | |
matrix: | |
distro: [bullseye] | |
arch: [armhf,arm64] | |
environment: PACKAGECLOUD | |
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@v3 | |
with: | |
name: wlanpi-fpms-${{ matrix.distro }}-${{ matrix.arch }} | |
path: ${{ steps.build-debian-package.outputs.deb-package }} | |
- name: Upload armhf package to raspbian/${{ matrix.distro }} | |
if: matrix.arch == 'armhf' | |
uses: danielmundi/upload-packagecloud@main | |
with: | |
package-name: ${{ steps.build-debian-package.outputs.deb-package }} | |
packagecloud-username: wlanpi | |
packagecloud-repo: dev | |
packagecloud-distrib: raspbian/${{ matrix.distro }} | |
packagecloud-token: ${{ secrets.PACKAGECLOUD_TOKEN }} | |
- name: Upload arm64 package to debian/${{ matrix.distro }} | |
if: matrix.arch == 'arm64' | |
uses: danielmundi/upload-packagecloud@main | |
with: | |
package-name: ${{ steps.build-debian-package.outputs.deb-package }} | |
packagecloud-username: wlanpi | |
packagecloud-repo: dev | |
packagecloud-distrib: debian/${{ matrix.distro }} | |
packagecloud-token: ${{ secrets.PACKAGECLOUD_TOKEN }} | |
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 }} |