Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEST ci(github-actions): use macos runners #7002

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .buildkite/scripts/common.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -euo pipefail

Expand Down
2 changes: 1 addition & 1 deletion .buildkite/scripts/common2.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -euo pipefail

Expand Down
3 changes: 2 additions & 1 deletion .buildkite/scripts/retry.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
#!/usr/bin/env bash

set -euo pipefail

retry() {
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
name: macos

on:
workflow_dispatch:
schedule:
- cron: "0 20 * * 6"
# Being: for testing purposes
push:
branches:
- feature/test-macos-gh-action
# End: for testing purposes

permissions:
contents: read

jobs:
package:
strategy:
matrix:
# NOTE: macos-13 is intel and macos-latest is arm
os: [ macos-13, macos-latest ]
fail-fast: false
runs-on: ${{ matrix.os }}
env:
PLATFORMS: "darwin/amd64 darwin/arm64"
PACKAGES: "tar.gz,docker"
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version-file: .go-version

- name: Install Docker CLI
run: brew install docker

# NOTE: see https://github.com/actions/runner/issues/1456
- name: Install Colima
run: |
brew install qemu
brew install colima
colima version

- name: Start Colima
run: colima start

- name: Run Integration Package
run: .buildkite/scripts/steps/integration-package.sh
Loading