-
Notifications
You must be signed in to change notification settings - Fork 1.6k
41 lines (32 loc) · 1.01 KB
/
compile-mac.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Cross-Compile skaffold on MacOS
# Triggers the workflow on push or pull request events
on: [push, pull_request]
permissions: read-all
concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}-${{github.workflow}}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
build:
name: Cross-Compile skaffold on MacOS
runs-on: macos-15-large
strategy:
matrix:
platforms: [linux-amd64, darwin-amd64, windows-amd64.exe, linux-arm64, darwin-arm64]
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.23.4
id: go
- name: Setup Docker
uses: docker/setup-docker-action@v4
env:
LIMA_START_ARGS: --mount-writable
- name: Make and install Skaffold binary from current PR
run: |
make ./out/VERSION
make ./out/skaffold-${{ matrix.platforms }}