Skip to content

Bump step-security/harden-runner from 2.8.1 to 2.10.1 #565

Bump step-security/harden-runner from 2.8.1 to 2.10.1

Bump step-security/harden-runner from 2.8.1 to 2.10.1 #565

Workflow file for this run

name: FreeBSD build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
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:
submodules: recursive
- name: build in FreeBSD VM
id: build
uses: cross-platform-actions/action@cdc9ee69ef84a5f2e59c9058335d9c57bcb4ac86 # v0.25.0
with:
memory: 2048
shell: sh
operating_system: freebsd
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
whoami
env
freebsd-version
cmake -B build -DCMAKE_INSTALL_PREFIX=.
cd build && gmake install