forked from Salamek/qiosk
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (42 loc) · 1.42 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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-24.04
strategy:
matrix:
arch: [arm64, armhf]
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo dpkg --add-architecture ${{ matrix.arch }}
sudo apt update -qy
sudo apt install -y build-essential cmake crossbuild-essential-${{ matrix.arch }} \
qt6-webengine-dev:${{ matrix.arch }} \
qt6-websockets-dev:${{ matrix.arch }} \
qt6-base-dev:${{ matrix.arch }} \
qt6-base-dev-tools \
qt6-declarative-dev:${{ matrix.arch }} \
qt6-tools-dev:${{ matrix.arch }} \
qt6-tools-dev-tools \
qt6-l10n-tools
- name: Build
run: |
cmake -DCMAKE_BUILD_TYPE=Release -S . -B .
cmake --build .
- 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 }}