Skip to content

Commit

Permalink
refactor(ci): move freebsd-builds to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l committed Dec 14, 2023
1 parent 721c880 commit 4caa051
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .cirrus.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,30 @@ jobs:
# https://github.com/rust-lang/cargo/issues/8603.
run: sudo /usr/sbin/purge

# This is ci/actions-templates/freebsd-builds-template.yaml
# Do not edit this file in .github/workflows
build-freebsd:
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v4
- name: Run a full build
uses: vmactions/freebsd-vm@v1
with:
release: 13.2
usesh: true
copyback: false
prepare: |
pkg install -y git gmake bash sudo
run: |
echo "========="
echo "create non-root user and log into it"
pw group add -n tester
pw user add -n tester -g tester -s `which bash`
pw user mod tester -d `pwd`
chown -R tester .
sudo -u tester bash ci/cirrus-templates/script.bash
# This is ci/actions-templates/centos-fmt-clippy.yaml
# Do not edit this file in .github/workflows
check:
Expand Down
25 changes: 25 additions & 0 deletions ci/actions-templates/freebsd-builds-template.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
jobs: # skip-all

# This is ci/actions-templates/freebsd-builds-template.yaml
# Do not edit this file in .github/workflows
build-freebsd:
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v4
- name: Run a full build
uses: vmactions/freebsd-vm@v1
with:
release: 13.2
usesh: true
copyback: false
prepare: |
pkg install -y git gmake bash sudo
run: |
echo "========="
echo "create non-root user and log into it"
pw group add -n tester
pw user add -n tester -g tester -s `which bash`
pw user mod tester -d `pwd`
chown -R tester .
sudo -u tester bash ci/cirrus-templates/script.bash
1 change: 1 addition & 0 deletions ci/actions-templates/gen-workflows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ gen_job linux-builds stable

# The following targets only have a single job
gen_job macos-builds all
gen_job freebsd-builds all
gen_job centos-fmt-clippy all
gen_job all-features all
gen_job test-docs all

0 comments on commit 4caa051

Please sign in to comment.