mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
Bumps the github-actions group with 2 updates: [actions/upload-artifact](https://github.com/actions/upload-artifact) and [actions/download-artifact](https://github.com/actions/download-artifact). Updates `actions/upload-artifact` from 4 to 5 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v4...v5) Updates `actions/download-artifact` from 5 to 6 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/download-artifact dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
85 lines
3.3 KiB
YAML
85 lines
3.3 KiB
YAML
# Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
|
|
|
|
name: Embedded Build
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
- cron: "0 1 * * *"
|
|
|
|
jobs:
|
|
build_containers:
|
|
runs-on: ubuntu-22.04
|
|
strategy:
|
|
matrix:
|
|
target:
|
|
- armv7-unknown-linux-gnueabihf
|
|
- aarch64-unknown-linux-gnu
|
|
- riscv64gc-unknown-linux-gnu
|
|
- x86_64-unknown-linux-gnu
|
|
env:
|
|
SLINT_NO_QT: 1
|
|
SLINT_STYLE: fluent
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
- name: Login to GitHub Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.CR_PAT }}
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: ./docker/Dockerfile.${{ matrix.target }}
|
|
push: true
|
|
tags: ghcr.io/slint-ui/slint/${{matrix.target}}:latest
|
|
- name: Build and push C++ image
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: ./docker/Dockerfile.cpp-image
|
|
push: true
|
|
tags: ghcr.io/slint-ui/slint/${{matrix.target}}-cpp:latest
|
|
build-args: |
|
|
arch=${{matrix.target}}
|
|
|
|
build_demos:
|
|
needs: [build_containers]
|
|
runs-on: ubuntu-22.04
|
|
strategy:
|
|
matrix:
|
|
target:
|
|
- armv7-unknown-linux-gnueabihf
|
|
- aarch64-unknown-linux-gnu
|
|
- x86_64-unknown-linux-gnu
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: ./.github/actions/setup-rust
|
|
with:
|
|
target: ${{ matrix.target }}
|
|
- name: Enable Skia build
|
|
if: matrix.target != 'riscv64gc-unknown-linux-gnu'
|
|
run: |
|
|
echo "EXTRA_ARGS=--features slint/renderer-skia" >> $GITHUB_ENV
|
|
- uses: baptiste0928/cargo-install@v3
|
|
with:
|
|
crate: cross
|
|
- name: Build
|
|
run: cross build --release --target=${{ matrix.target }} ${{ env.EXTRA_ARGS }} --features slint/backend-linuxkms-noseat,slint/renderer-skia -p energy-monitor -p printerdemo -p todo -p slint-viewer -p gallery -p home-automation
|
|
- name: "Upload demo artifacts"
|
|
uses: actions/upload-artifact@v5
|
|
with:
|
|
name: slint-embedded-demos-${{ matrix.target }}
|
|
path: |
|
|
target/${{ matrix.target }}/release/printerdemo
|
|
target/${{ matrix.target }}/release/todo
|
|
target/${{ matrix.target }}/release/gallery
|
|
target/${{ matrix.target }}/release/viewer
|
|
target/${{ matrix.target }}/release/energy-monitor
|
|
target/${{ matrix.target }}/release/home-automation
|