Skip to content

fuck off MSVC with your bs + remove unneeded junk in install artifact #6

fuck off MSVC with your bs + remove unneeded junk in install artifact

fuck off MSVC with your bs + remove unneeded junk in install artifact #6

Workflow file for this run

name: Flatpak build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
flatpak:
runs-on: ubuntu-latest
container:
image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.10
options: --privileged
strategy:
matrix:
arch: [x86_64, aarch64]
# Don't fail the whole workflow if one architecture fails
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Set output
id: read_version
run: echo "version=$(cat version.txt)" >> $GITHUB_OUTPUT
- name: Install deps
if: ${{ matrix.arch != 'x86_64' }}
run: |
# Use the static binaries because it's unable to use a package manager
curl https://download.docker.com/linux/static/stable/x86_64/docker-26.0.0.tgz --output ./docker.tgz
tar xzvf docker.tgz
mv docker/* /usr/bin
- name: Set up QEMU
if: ${{ matrix.arch != 'x86_64' }}
id: qemu
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: UnCSO2-${{ steps.read_version.outputs.version }}-linux-${{ matrix.arch }}.flatpak
manifest-path: tf.harmony.UnCSO2.yml
cache-key: flatpak-builder-${{ matrix.arch }}-${{ github.sha }}
arch: ${{ matrix.arch }}