-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (46 loc) · 1.27 KB
/
Copy pathci.yml
File metadata and controls
57 lines (46 loc) · 1.27 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: lint + build
runs-on: windows-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Validate PowerShell and release scripts
shell: pwsh
run: |
./.github/scripts/Test-WorkflowSyntax.ps1
./.github/scripts/Test-NightlyBetaPlan.ps1
./.github/scripts/Test-ResolveReleaseBaseTag.ps1
./.github/scripts/Test-ReleaseVersionSequence.ps1
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
cache-dependency-path: go.sum
- name: Install PowerShell analyzer
shell: pwsh
run: Install-Module PSScriptAnalyzer -Scope CurrentUser -Force
- name: Lint and test
shell: pwsh
run: ./scripts/lint.ps1
- name: go build (default)
run: go build -v ./...
- name: Fetch picotool
shell: pwsh
run: ./scripts/fetch-picotool.ps1
- name: go build (embedded)
run: go build -tags embed_picotool -v ./...