ci(release): use repo token for nightly beta dispatch (2026.6.17.0-F138) #26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 ./... |