Skip to content

Build on Windows #39466

Build on Windows

Build on Windows #39466

Workflow file for this run

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