Skip to content

Commit

Permalink
Make static runtime default and build with native ARM runners
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAssassin committed Feb 13, 2025
1 parent 2d9e23f commit ce5291e
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,55 +6,56 @@ jobs:
build-and-test:
strategy:
matrix:
ARCH: [x86_64, i386, aarch64, armhf]
USE_STATIC_RUNTIME: [""]
UPDATE: ["1"]

include:
# test build
# regular builds:
- ARCH: x86_64
DOCKER_ARCH: amd64
BUILD_TYPE: coverage
BUILD_TYPE: appimage
RUNS_ON: ubuntu-24.04
- ARCH: i386
BUILD_TYPE: appimage
RUNS_ON: ubuntu-24.04
- ARCH: aarch64
BUILD_TYPE: appimage
RUNS_ON: ubuntu-24.04-arm
- ARCH: armhf
BUILD_TYPE: appimage
RUNS_ON: ubuntu-24.04-arm

# experimental build
# test build
- ARCH: x86_64
BUILD_TYPE: appimage
USE_STATIC_RUNTIME: -static
BUILD_TYPE: coverage
RUNS_ON: ubuntu-24.04

fail-fast: false

name: ${{ matrix.ARCH }}${{ matrix.USE_STATIC_RUNTIME }}
runs-on: ubuntu-latest
name: ${{ matrix.ARCH }} ${{ matrix.BUILD_TYPE }}
runs-on: ${{ matrix.RUNS_ON }}

env:
ARCH: ${{ matrix.ARCH }}
BUILD_TYPE: ${{ matrix.BUILD_TYPE }}
DEBIAN_FRONTEND: interactive
USE_STATIC_RUNTIME: ${{ matrix.USE_STATIC_RUNTIME }}

steps:
# check out once git command is available
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Set up QEMU integration for Docker
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes

- name: Build and test AppImage
run: bash ci/build-in-docker.sh

- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: AppImage ${{ matrix.ARCH }}${{ matrix.USE_STATIC_RUNTIME}}
path: linuxdeploy-plugin-qt${{ matrix.USE_STATIC_RUNTIME}}-${{ matrix.ARCH }}.AppImage*
name: AppImage ${{ matrix.ARCH }}${{ matrix.BUILD_TYPE }}
path: linuxdeploy-plugin-qt-${{ matrix.ARCH }}.AppImage*

upload:
name: Create release and upload artifacts
needs:
- build-and-test
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
Expand Down

0 comments on commit ce5291e

Please sign in to comment.