Skip to content

Commit

Permalink
run freebsd checks on ubuntu runner (#856)
Browse files Browse the repository at this point in the history
* run freebsd checks on ubuntu runner
  • Loading branch information
opcm authored Oct 13, 2024
1 parent fea7e15 commit 9afa833
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/freebsd_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,18 @@ permissions:
jobs:
build:

runs-on: macos-12
runs-on: ubuntu-24.04

steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
uses: step-security/harden-runner@446798f8213ac2e75931c1b0769676d927801858 # v2.10.0
with:
egress-policy: audit
egress-policy: block
allowed-endpoints: >
*.freebsd.pool.ntp.org:443
github.com:443
objects.githubusercontent.com:443
pkg.FreeBSD.org:*
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
Expand All @@ -30,8 +35,12 @@ jobs:
memory: 2048
shell: sh
operating_system: freebsd
version: '13.2'
version: '14.1'
run: |
sudo mkdir -p /usr/local/etc/pkg/repos
sudo sh -c 'echo "FreeBSD: { url: \"https://pkg.FreeBSD.org/\${ABI}/quarterly\", mirror_type: \"srv\", enabled: yes }" > /usr/local/etc/pkg/repos/FreeBSD.conf'
sudo pkg update -f
sudo pkg upgrade -y
sudo pkg install -y curl gmake cmake
pwd
ls -lah
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/freebsd_scan_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,18 @@ permissions:
jobs:
build:

runs-on: macos-12
runs-on: ubuntu-24.04

steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
uses: step-security/harden-runner@446798f8213ac2e75931c1b0769676d927801858 # v2.10.0
with:
egress-policy: audit
egress-policy: block
allowed-endpoints: >
*.freebsd.pool.ntp.org:443
github.com:443
objects.githubusercontent.com:443
pkg.FreeBSD.org:*
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
Expand All @@ -30,8 +35,12 @@ jobs:
memory: 2048
shell: sh
operating_system: freebsd
version: '13.2'
version: '14.1'
run: |
sudo mkdir -p /usr/local/etc/pkg/repos
sudo sh -c 'echo "FreeBSD: { url: \"https://pkg.FreeBSD.org/\${ABI}/quarterly\", mirror_type: \"srv\", enabled: yes }" > /usr/local/etc/pkg/repos/FreeBSD.conf'
sudo pkg update -f
sudo pkg upgrade -y
sudo pkg install -y curl gmake cmake devel/llvm llvm
pwd
ls -lah
Expand Down

0 comments on commit 9afa833

Please sign in to comment.