Files
teleport/.github/workflows/build-macos.yaml
T
Reed Loden 278e74d260 ci: Use large macOS runner for build-macos workflow (#20713)
Use larger macOS runner with GitHub Actions to speed up builds.

Comment-only change to `client.go` to cause macOS build to be run.
2023-01-25 19:39:22 +00:00

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