Skip to content

Commit

Permalink
add cross-compile on mac test
Browse files Browse the repository at this point in the history
  • Loading branch information
alphanota committed Jan 14, 2025
1 parent 902fd12 commit 355c948
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/compile-mac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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: 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 }}"

0 comments on commit 355c948

Please sign in to comment.