mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
72 lines
2.1 KiB
YAML
72 lines
2.1 KiB
YAML
# Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
|
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
|
|
|
|
name: Embedded Build
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build_containers:
|
|
runs-on: ubuntu-20.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@v2
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
- 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@v2
|
|
with:
|
|
context: .
|
|
file: ./docker/Dockerfile.${{ matrix.target }}
|
|
push: true
|
|
tags: ghcr.io/slint-ui/slint/${{matrix.target}}:latest
|
|
|
|
build:
|
|
needs: [build_containers]
|
|
runs-on: ubuntu-20.04
|
|
strategy:
|
|
matrix:
|
|
target:
|
|
- armv7-unknown-linux-gnueabihf
|
|
- aarch64-unknown-linux-gnu
|
|
- riscv64gc-unknown-linux-gnu
|
|
- x86_64-unknown-linux-gnu
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install latest stable
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
override: true
|
|
target: ${{ matrix.target }}
|
|
- name: Build
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
use-cross: true
|
|
command: build
|
|
args: --release --target=${{ matrix.target }} --workspace --exclude slint-node --exclude i-slint-backend-mcu --exclude printerdemo_mcu
|
|
- name: "Upload printerdemo artifact"
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: printerdemo-${{ matrix.target }}
|
|
path: |
|
|
target/${{ matrix.target }}/release/printerdemo
|
|
target/${{ matrix.target }}/release/todo
|
|
target/${{ matrix.target }}/release/gallery
|
|
target/${{ matrix.target }}/release/viewer
|