Skip to content
Open
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
24 changes: 17 additions & 7 deletions .github/workflows/pr-go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
#os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-14]
runs-on: ${{ matrix.os }}
steps:
- name: Harden Runner
Expand All @@ -29,16 +28,27 @@ jobs:
- name: Prepare OS
id: podman_install
run: |
sudo apt update -qqy
sudo apt install -qqy podman
systemctl --user start podman
echo "DOCKER_HOST=unix:///run/user/$UID/podman/podman.sock" >> "$GITHUB_ENV"
case "${{ runner.os }}" in
"macOS")
brew install podman
podman machine init
podman machine start
echo "DOCKER_HOST=unix://$(podman machine inspect --format '{{.ConnectionInfo.PodmanSocket.Path}}')" >> "$GITHUB_ENV"
;;
"Linux")
sudo apt update -qqy
sudo apt install -qqy podman
systemctl --user start podman
echo "DOCKER_HOST=unix:///run/user/$UID/podman/podman.sock" >> "$GITHUB_ENV"
;;
\*) exit 1
esac

- name: Prepare Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: '1.21.5'
check_latest: false
check-latest: false

- name: Checkout codebase
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand Down