Fix kokoro v3 #43
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | | |
chmod +rw . | |
docker run --rm \ | |
--mount type=bind,source=${PWD},target=/skaffold \ | |
-w /skaffold golang:1.23.4 /bin/bash -c " \ | |
echo ${PWD}; \ | |
echo 123 > f.txt " | |
# git config --global --add safe.directory /skaffold; \ | |
# make ./out/VERSION; \ | |
# make ./out/skaffold-${{ matrix.platforms }}" |