Checkbox Snapcraft8 builds #2
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: Checkbox Snapcraft8 builds | |
on: | |
workflow_dispatch: | |
workflow_call: | |
jobs: | |
snap_runtime_native: | |
strategy: | |
fail-fast: false | |
matrix: | |
releases: [16, 18, 20, 22, 24] | |
arch: [amd64, arm64] | |
include: | |
- arch: amd64 | |
tag: X64 | |
- arch: arm64 | |
tag: ARM64 | |
- releases: 16 | |
snapcraft_version: 4.x | |
- releases: 18 | |
snapcraft_version: 7.x | |
- releases: 20 | |
snapcraft_version: 7.x | |
- releases: 22 | |
snapcraft_version: 8.x | |
- releases: 24 | |
snapcraft_version: 8.x | |
runs-on: | |
group: "Canonical self-hosted runners" | |
labels: | |
- self-hosted | |
- linux | |
- jammy | |
- large | |
- ${{ matrix.tag }} | |
timeout-minutes: 1200 #20h, this will timeout sooner due to inner timeouts | |
env: | |
SERIES: series${{ matrix.releases }} | |
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT7_CREDS }} | |
name: Runtime ${{ matrix.releases }} (${{matrix.arch}}) | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Copy over the common files for series ${{ matrix.releases }} | |
run: | | |
cd checkbox-core-snap/ | |
sudo apt update && sudo apt install -qq -y python3-setuptools-scm | |
./prepare.sh $SERIES | |
- name: Add LP credentials | |
run: | | |
mkdir -p ~/.local/share/snapcraft/ | |
echo '${{ secrets.LP_CREDS }}' > ~/.local/share/snapcraft/launchpad-credentials | |
git config --global user.email "robot@lists.canonical.com" | |
git config --global user.name "Certification bot" | |
- uses: Wandalen/wretry.action@v3.4.0_js_action | |
name: Build the snap | |
timeout-minutes: 600 # 10hours | |
with: | |
action: snapcore/action-build@v1.3.0 | |
attempt_delay: 600000 # 10min | |
attempt_limit: 5 | |
with: | | |
path: checkbox-core-snap/series${{ matrix.releases }} | |
snapcraft-channel: ${{ matrix.snapcraft_version }}/stable | |
- uses: actions/upload-artifact@v4 | |
name: Upload logs on failure | |
if: failure() | |
with: | |
name: snapcraft-log-series${{ matrix.releases }} | |
path: | | |
/home/runner/.cache/snapcraft/log/ | |
/home/runner/.local/state/snapcraft/log/ | |
checkbox-core-snap/series${{ matrix.releases }}/checkbox*.txt | |
- uses: actions/upload-artifact@v4 | |
name: Upload the snap as artifact | |
with: | |
name: checkbox${{ matrix.releases }}_${{ matrix.arch }} | |
path: checkbox-core-snap/series${{ matrix.releases }}/*.snap |