Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Use Linux (Ubuntu) for FreeBSD #162

Merged
merged 2 commits into from
Mar 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/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
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