From ee6b53600959760f8752eb8ab57ba05aae35e2e9 Mon Sep 17 00:00:00 2001 From: Nikolaj Schlej Date: Mon, 3 Oct 2022 13:36:51 +0200 Subject: [PATCH] Add FreeBSD x86-64 builds to CI/CD pipeline Check if FreeBSD action works Reduce qt5 package list, try building the things using default build script Add the required qt5-buildtools package Enable upload steps --- .github/workflows/main.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 305de7e..2cee11a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -87,6 +87,42 @@ jobs: - name: Build everything run: ninja -C build-meson + build_freebsd: + name: Build on FreeBSD + runs-on: macos-12 + env: + HAS_QT: 1 + + steps: + - uses: actions/checkout@v2 + + - name: Build on FreeBSD inside macOS VM + id: test + uses: vmactions/freebsd-vm@v0 + with: + usesh: true + envs: "HAS_QT" + prepare: | + pkg install -y bash zip cmake qt5-qmake qt5-buildtools qt5-core qt5-gui qt5-widgets + + run: | + bash unixbuild.sh + + - name: Upload to artifacts + uses: actions/upload-artifact@v2 + with: + name: FreeBSD builds + path: dist/*.zip + + - name: Upload to releases + if: github.event_name == 'release' + uses: svenstaro/upload-release-action@e74ff71f7d8a4c4745b560a485cc5fdb9b5b999d + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: dist/*.zip + tag: ${{ github.ref }} + file_glob: true + build_windows: name: Build on Windows runs-on: windows-2019