diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index acf7525..c0e1071 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -58,6 +58,31 @@ jobs: name: AppImage ${{ matrix.ARCH }}${{ matrix.USE_STATIC_RUNTIME}} path: linuxdeploy*.AppImage* + freebsd-build-and-test: + runs-on: ubuntu-latest + steps: + - name: Repository checkout + uses: actions/checkout@v6 + with: + submodules: recursive + - uses: cross-platform-actions/action@v0.32.0 + with: + operating_system: 'freebsd' + version: '15.0' + architecture: 'x86_64' + run: | + # Use latest package set + sudo mkdir -p /usr/local/etc/pkg/repos/ + sudo cp /etc/pkg/FreeBSD.conf /usr/local/etc/pkg/repos/FreeBSD.conf + sudo sed -i.bak -e 's|/quarterly|/latest|' /usr/local/etc/pkg/repos/FreeBSD.conf + + # Install deps + sudo -E pkg install -y \ + bash cmake cimg googletest ninja patchelf pkgconf wget + + # Run the build, skipping plugins as these aren't ready yet + bash ci/build.sh --skip-plugins + upload: name: Create release and upload artifacts needs: diff --git a/ci/build.sh b/ci/build.sh index 1f3c039..2eb7dcd 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -69,6 +69,10 @@ bin/linuxdeploy "${linuxdeploy_args[@]}" # bundle AppImage plugin mkdir -p AppDir/plugins +if [ $# -ge 1 ] && [ "$1" = "--skip-plugins" ]; then + exit 0 +fi + # build linuxdeploy-plugin-appimage instead of using prebuilt versions # this prevents a circular dependency # the other repository provides a script for this purpose that builds a bundle we can use diff --git a/src/core/generate-excludelist.sh b/src/core/generate-excludelist.sh index d92cb13..8e03fc1 100644 --- a/src/core/generate-excludelist.sh +++ b/src/core/generate-excludelist.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 Alexander Gottwald (https://github.com/ago1024) # Copyright 2018 TheAssassin (https://github.com/TheAssassin)