From f9a46ec8a806380b74cb221d50487b41bf510dee Mon Sep 17 00:00:00 2001 From: Azeem Sajid Date: Mon, 18 Mar 2024 07:31:11 +0500 Subject: [PATCH] [CI] Use Linux (Ubuntu) for FreeBSD (#162) * Use Linux (Ubuntu) for FreeBSD * Use runner context --- .github/workflows/ci.yml | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 405cfed5..c44c5751 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,25 +62,15 @@ jobs: # --- Build --- - - name: Build on macOS-12 (${{ env.AMD64_FREEBSD_GCC }}) - if: matrix.os == 'macos-12' + - name: Build on Linux (${{ env.AMD64_FREEBSD_GCC }}) + if: runner.os == 'Linux' + uses: cross-platform-actions/action@v0.23.0 env: PREFIX: ${{ env.AMD64_FREEBSD_GCC }} CC: gcc MAKE: gmake RUN_TESTS: false -# uses: vmactions/freebsd-vm@v0 # https://github.com/vmactions/freebsd-vm - uses: cross-platform-actions/action@v0.23.0 with: -# mem: 2048 -# release: 12.3 -# envs: 'PREFIX CC MAKE RUN_TESTS ARTIFACT_DIR' -# usesh: true -# prepare: pkg install -y tree zip git autotools gmake lang/gcc -# run: | -# ./scripts/ci-build.sh - -### valid inputs are ['run', 'operating_system', 'architecture', 'version', 'shell', 'environment_variables', 'memory', 'cpu_count', 'hypervisor', 'image_url', 'sync_files'] memory: 2048 shell: sh operating_system: freebsd @@ -251,7 +241,7 @@ jobs: if-no-files-found: error - name: Upload (zsv-${{ env.TAG }}-${{ env.AMD64_FREEBSD_GCC }}.zip) - if: matrix.os == 'macos-12' + if: runner.os == 'Linux' uses: actions/upload-artifact@v4 env: ARTIFACT_NAME: zsv-${{ env.TAG }}-${{ env.AMD64_FREEBSD_GCC }}.zip @@ -306,7 +296,7 @@ jobs: if-no-files-found: error - name: Upload (zsv-${{ env.TAG }}-${{ env.AMD64_FREEBSD_GCC }}.tar.gz) - if: matrix.os == 'macos-12' + if: runner.os == 'Linux' uses: actions/upload-artifact@v4 env: ARTIFACT_NAME: zsv-${{ env.TAG }}-${{ env.AMD64_FREEBSD_GCC }}.tar.gz