-
Notifications
You must be signed in to change notification settings - Fork 1.8k
45 lines (38 loc) · 1.06 KB
/
build-windows.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Build on Windows
run-name: Build on Windows
on:
merge_group:
# We only build tsh and tctl on Windows so only consider Go code
# (tsh and tctl don't run any Rust)
paths:
- '.github/workflows/build-windows.yaml'
- '**.go'
- 'go.mod'
- 'go.sum'
- 'build.assets/Makefile'
- 'build.assets/Dockerfile*'
- 'Makefile'
jobs:
build:
name: Build on Windows
if: ${{ !startsWith(github.head_ref, 'dependabot/') }}
runs-on: windows-2022-16core
permissions:
contents: read
steps:
- name: Checkout Teleport
uses: actions/checkout@v4
- name: Get Go version
id: go-version
shell: bash
run: echo "go-version=$(make -s print-go-version | tr -d '\n')" >> $GITHUB_OUTPUT
- name: Setup Go
uses: actions/setup-go@v5
with:
cache: false
go-version: ${{ steps.go-version.outputs.go-version }}
- name: Build
shell: bash
run: |
export OS="windows"
make build/tsh build/tctl build/tbot