fuck off MSVC with your bs + remove unneeded junk in install artifact #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |