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

try to replace vmactions/freebsd-vm action with cross-platform-actions/action #141

Merged
merged 3 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
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
23 changes: 17 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,25 @@ jobs:
CC: gcc
MAKE: gmake
RUN_TESTS: false
uses: vmactions/freebsd-vm@v0 # https://github.com/vmactions/freebsd-vm
# 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
# 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
version: '13.2'
environment_variables: 'PREFIX CC MAKE RUN_TESTS ARTIFACT_DIR'
run: |
./scripts/ci-freebsd-setup.sh
./scripts/ci-build.sh

- name: Build on Linux (${{ env.AMD64_LINUX_GCC }})
Expand Down
3 changes: 3 additions & 0 deletions scripts/ci-freebsd-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

sudo pkg install -y tree zip git autotools gmake lang/gcc