Skip to content

Commit

Permalink
try to replace vmactions/freebsd-vm action with cross-platform-action…
Browse files Browse the repository at this point in the history
…s/action (#141)

* replace vmactions/freebsd-vm action with cross-platform-actions/action
  • Loading branch information
liquidaty authored Nov 2, 2023
1 parent 781ddd5 commit 134ba17
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
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

0 comments on commit 134ba17

Please sign in to comment.