Skip to content

Commit 355c948

Browse files
committed
add cross-compile on mac test
1 parent 902fd12 commit 355c948

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/compile-mac.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Cross-Compile skaffold on MacOS
2+
3+
# Triggers the workflow on push or pull request events
4+
on: [push, pull_request]
5+
6+
permissions: read-all
7+
8+
concurrency:
9+
group: build-${{ github.event.pull_request.number || github.ref }}-${{github.workflow}}
10+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
11+
12+
jobs:
13+
14+
build:
15+
name: Cross-Compile skaffold on MacOS
16+
runs-on: macos-15-large
17+
strategy:
18+
matrix:
19+
platforms: [linux-amd64, darwin-amd64, windows-amd64.exe, linux-arm64, darwin-arm64]
20+
steps:
21+
22+
- name: Check out code into the Go module directory
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
27+
- name: Setup Docker
28+
uses: docker/setup-docker-action@v4
29+
env:
30+
LIMA_START_ARGS: --mount-writable
31+
32+
- name: Make and install Skaffold binary from current PR
33+
run: |
34+
make ./out/VERSION
35+
make ./out/skaffold-${{ matrix.platforms }}"

0 commit comments

Comments
 (0)