forked from slint-ui/slint
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (62 loc) · 2.61 KB
/
torizon_demos.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Copyright © SixtyFPS GmbH <[email protected]>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
name: Rust Demos built for Torizon
on:
workflow_dispatch:
inputs:
push:
type: boolean
description: "Push the built images"
workflow_call:
inputs:
push:
type: boolean
description: "Push the built images"
jobs:
build_containers:
runs-on: ubuntu-22.04
strategy:
matrix:
include:
- target: armhf
image_arch: linux/arm/v7
rust_toolchain_arch: armv7-unknown-linux-gnueabihf
base_image_suffix: ""
- target: arm64
image_arch: linux/arm64
rust_toolchain_arch: aarch64-unknown-linux-gnu
base_image_suffix: ""
- target: armhf
image_arch: linux/arm/v7
rust_toolchain_arch: armv7-unknown-linux-gnueabihf
base_image_suffix: "-vivante"
- target: arm64
image_arch: linux/arm64
rust_toolchain_arch: aarch64-unknown-linux-gnu
base_image_suffix: "-vivante"
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.CR_PAT }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/Dockerfile.torizon-demos
push: ${{ github.event.inputs.push || inputs.push }}
tags: ghcr.io/slint-ui/slint/torizon-demos-${{matrix.target}}${{matrix.base_image_suffix}}:latest
platforms: ${{matrix.image_arch}}
build-args: |
TOOLCHAIN_ARCH=${{matrix.target}}
IMAGE_ARCH=${{matrix.image_arch}}
RUST_TOOLCHAIN_ARCH=${{matrix.rust_toolchain_arch}}
BASE_NAME=wayland-base${{matrix.base_image_suffix}}
WEATHER_API_KEY=${{secrets.WEATHER_API_KEY}}