mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-03-18 10:44:10 +00:00
Rather than having our own script, just use the github action to install go when needed. Signed-off-by: stevenhorsman <steven@uk.ibm.com>
56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- edited
|
|
- reopened
|
|
- synchronize
|
|
|
|
permissions: {}
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
name: Darwin tests
|
|
jobs:
|
|
test:
|
|
name: test
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Install Protoc
|
|
run: |
|
|
f=$(mktemp)
|
|
curl -sSLo "$f" https://github.com/protocolbuffers/protobuf/releases/download/v28.2/protoc-28.2-osx-aarch_64.zip
|
|
mkdir -p "$HOME/.local"
|
|
unzip -d "$HOME/.local" "$f"
|
|
echo "$HOME/.local/bin" >> "${GITHUB_PATH}"
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Install yq
|
|
run: |
|
|
./ci/install_yq.sh
|
|
env:
|
|
INSTALL_IN_GOPATH: false
|
|
|
|
- name: Read properties from versions.yaml
|
|
run: |
|
|
go_version="$(yq '.languages.golang.version' versions.yaml)"
|
|
[ -n "$go_version" ]
|
|
echo "GO_VERSION=${go_version}" >> "$GITHUB_ENV"
|
|
|
|
- name: Setup Golang version ${{ env.GO_VERSION }}
|
|
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
|
|
- name: Install Rust
|
|
run: ./tests/install_rust.sh
|
|
|
|
- name: Build utils
|
|
run: ./ci/darwin-test.sh
|