-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Use Linux (Ubuntu) for FreeBSD (#162)
* Use Linux (Ubuntu) for FreeBSD * Use runner context
- Loading branch information
Showing
1 changed file
with
5 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|