Skip to content

Release Qiosk

Release Qiosk #6

Workflow file for this run

name: Release Qiosk
on:
workflow_dispatch:
inputs:
version:
description: 'Version number (e.g. 1.12.0)'
required: true
type: string
jobs:
build-arm:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [arm64, armhf]
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo dpkg --add-architecture ${{ matrix.arch }}
# Remove existing lists
sudo rm -rf /var/lib/apt/lists/*
sudo rm -f /etc/apt/sources.list.d/*.list
# Create new sources list
sudo tee /etc/apt/sources.list << EOF
deb [arch=${{ matrix.arch }}] http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse
deb [arch=${{ matrix.arch }}] http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse
deb [arch=${{ matrix.arch }}] http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted universe multiverse
deb [arch=${{ matrix.arch }}] http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse
EOF
sudo apt update -qy
sudo apt upgrade -qy
sudo apt install build-essential cmake crossbuild-essential-${{ matrix.arch }} qt6-webengine-dev:${{ matrix.arch }} qt6-websockets-dev:${{ matrix.arch }} -qy
- name: Build
run: |
export CONFIG_SITE=/etc/dpkg-cross/cross-config.${{ matrix.arch }}
cmake -DCMAKE_BUILD_TYPE=Release -S . -B .
make
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Upload to S3
run: |
aws s3 cp ./qiosk s3://${{ secrets.S3_BUCKET }}/apps/qiosk-${{ inputs.version }}-${{ matrix.arch }}