Skip to content

Prefer color-scheme from org.freedesktop.portal.Desktop #153

Prefer color-scheme from org.freedesktop.portal.Desktop

Prefer color-scheme from org.freedesktop.portal.Desktop #153

Workflow file for this run

name: Containers
on: [push, pull_request]
jobs:
containers:
strategy:
matrix:
gtk-version: [gtk3, gtk4]
linux-distro: [debian, fedora, opensuse, ubuntu]
name: ${{ matrix.linux-distro }} ${{ matrix.gtk-version }}
runs-on: ubuntu-latest
env:
GTK_VERSION: ${{ matrix.gtk-version }}
LINUX_DISTRO: ${{ matrix.linux-distro }}
IMAGE_NAME: "linuxdeploy-plugin-${{ matrix.gtk-version }}:${{ matrix.linux-distro }}"
CONTAINER_NAME: "${{ matrix.linux-distro }}-${{ matrix.gtk-version }}"
ARTIFACT_DIR: "${{ github.workspace }}/AppImage"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build container
run: |
buildah bud --tag "${IMAGE_NAME}" --file "containers/${GTK_VERSION}/Dockerfile.${LINUX_DISTRO}" .
- name: Extract AppImage from container
run: |
mkdir --verbose --parents "${ARTIFACT_DIR}"
podman run --name "${CONTAINER_NAME}" --interactive --detach --rm --entrypoint /bin/bash "${IMAGE_NAME}"
podman cp "${CONTAINER_NAME}:/AppImage/Widget_Factory-x86_64.AppImage" "${ARTIFACT_DIR}"
podman stop "${CONTAINER_NAME}" --time 0
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.linux-distro }} with ${{ matrix.gtk-version }}
path: ${{ env.ARTIFACT_DIR }}/
retention-days: 30