mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-02 14:59:53 +08:00
Use larger macOS runner with GitHub Actions to speed up builds. Comment-only change to `client.go` to cause macOS build to be run.
54 lines
1.1 KiB
YAML
54 lines
1.1 KiB
YAML
name: Build on Mac OS
|
|
run-name: Build on Mac OS
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
paths:
|
|
- '**.go'
|
|
- 'go.mod'
|
|
- 'go.sum'
|
|
- '**.rs'
|
|
- 'Cargo.toml'
|
|
- 'Cargo.lock'
|
|
- 'build.assets/Makefile'
|
|
- 'build.assets/Dockerfile*'
|
|
merge_group:
|
|
paths:
|
|
- '**.go'
|
|
- 'go.mod'
|
|
- 'go.sum'
|
|
- '**.rs'
|
|
- 'Cargo.toml'
|
|
- 'Cargo.lock'
|
|
- 'build.assets/Makefile'
|
|
- 'build.assets/Dockerfile*'
|
|
|
|
jobs:
|
|
build:
|
|
name: Build on Mac OS
|
|
if: ${{ !startsWith(github.head_ref, 'dependabot/') }}
|
|
runs-on: macos-12-xl
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
steps:
|
|
- name: Checkout Teleport
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Get Go version
|
|
id: go-version
|
|
shell: bash
|
|
run: echo "go-version=$(make --no-print-directory print-go-version | tr -d '\n')" >> $GITHUB_OUTPUT
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: ${{ steps.go-version.outputs.go-version }}
|
|
|
|
- name: Build
|
|
run: make binaries
|