Skip to content

Commit

Permalink
[CI] Use Linux (Ubuntu) for FreeBSD (#162)
Browse files Browse the repository at this point in the history
* Use Linux (Ubuntu) for FreeBSD

* Use runner context
  • Loading branch information
iamazeem authored Mar 18, 2024
1 parent 5f870c9 commit f9a46ec
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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/[email protected]
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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f9a46ec

Please sign in to comment.