From e0de7648d80c1007c8d69316a65f4e2eab48eab2 Mon Sep 17 00:00:00 2001 From: Paul Mucur Date: Fri, 12 Apr 2024 13:22:10 +0100 Subject: [PATCH] Explicitly use GNU make for FreeBSD build By default, "make" on FreeBSD is not compatible with the GNU make expected by the example libraries that test:examples will attempt to compile. GNU make _is_ available for FreeBSD but isn't installed by default so we explicitly download it and set the MAKE environment variable so MiniPortile will use it. --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 970f4b0..d848791 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,6 +96,8 @@ jobs: matrix: task: ["test:unit", "test:examples"] runs-on: ubuntu-latest + env: + MAKE: gmake steps: - uses: actions/checkout@v4 - uses: actions/cache@v4 @@ -104,9 +106,10 @@ jobs: key: examples-${{ hashFiles('examples/Rakefile') }} - uses: vmactions/freebsd-vm@v1 with: + envs: MAKE usesh: true copyback: false - prepare: pkg install -y ruby devel/ruby-gems pkgconf git cmake textproc/libyaml security/gnupg + prepare: pkg install -y ruby devel/ruby-gems pkgconf git cmake devel/gmake textproc/libyaml security/gnupg run: | git config --global --add safe.directory /home/runner/work/mini_portile/mini_portile gem install bundler