mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-24 18:51:18 -08:00
1. Use buildjet for the longer Linux CI workflows.
2. Use a self-hosted Windows runner.
3. Make CIFuzz run on merge to main or release branch.
Two runs each of the original workflow files and the updated
workflows in this PR:
GitHub GitHub BuildJet BuildJet
codeql-analysis.yml 4m 30s cached 2m 56s 2m 59s
cross-darwin.yml 3m 10s 3m 19s 1m 33s 1m 30s
cross-freebsd.yml 3m 33s 3m 10s 1m 28s 1m 22s
cross-openbsd.yml 3m 4s 2m 36s 1m 29s 1m 22s
cross-wasm.yml 1m 59s 2m 2s 1m 12s 1m 16s
cross-windows.yml 2m 45s 3m 0s 1m 44s 1m 25s
linux32.yml 4m 27s 4m 0s 1m 55s 2m 8s
linux-race.yml 3m 54s 4m 7s 2m 22s 2m 12s
linux.yml 4m 23s 4m 39s 2m 37s 2m 15s
static-analysis.yml
/vet 1m 41s 2m 22s 52s 56s
/staticcheck(linux, amd64) 2m 47s 2m 38s 1m 7s 1m 10s
/staticcheck(windows, amd64) 2m 5s 2m 4s 1m 6s 1m 8s
/staticcheck(darwin, amd64) 2m 14s 2m 20s 1m 10s 1m 10s
/staticcheck(windows, 386) 2m 36s 1m 58s 1m 23s 1m 8s
vm.yml 1m 30s 1m 32s 2m 31s 2m 23s
windows.yml 6m 23s 6m 19s 3m 40s 3m 53s
A few very short workflows are being left on GitHub-hosted runners, like
licenses and gofmt. These benefit from the quicker dispatch to GitHub
hosted runners.
Signed-off-by: Denton Gentry <[email protected]>
76 lines
2.5 KiB
YAML
76 lines
2.5 KiB
YAML
# For most projects, this workflow file will not need changing; you simply need
|
||
# to commit it to your repository.
|
||
#
|
||
# You may wish to alter this file to override the set of languages analyzed,
|
||
# or to provide custom queries or build logic.
|
||
#
|
||
# ******** NOTE ********
|
||
# We have attempted to detect the languages in your repository. Please check
|
||
# the `language` matrix defined below to confirm you have the correct set of
|
||
# supported CodeQL languages.
|
||
#
|
||
name: "CodeQL"
|
||
|
||
on:
|
||
push:
|
||
branches: [ main, release-branch/* ]
|
||
pull_request:
|
||
# The branches below must be a subset of the branches above
|
||
branches: [ main ]
|
||
schedule:
|
||
- cron: '31 14 * * 5'
|
||
|
||
concurrency:
|
||
group: ${{ github.workflow }}-$${{ github.head_ref || github.run_id }}
|
||
cancel-in-progress: true
|
||
|
||
jobs:
|
||
analyze:
|
||
name: Analyze
|
||
runs-on: buildjet-4vcpu-ubuntu-2204
|
||
permissions:
|
||
actions: read
|
||
contents: read
|
||
security-events: write
|
||
|
||
strategy:
|
||
fail-fast: false
|
||
matrix:
|
||
language: [ 'go' ]
|
||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
|
||
# Learn more:
|
||
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
|
||
|
||
steps:
|
||
- name: Checkout repository
|
||
uses: actions/checkout@v3
|
||
|
||
# Initializes the CodeQL tools for scanning.
|
||
- name: Initialize CodeQL
|
||
uses: github/codeql-action/init@v1
|
||
with:
|
||
languages: ${{ matrix.language }}
|
||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||
# By default, queries listed here will override any specified in a config file.
|
||
# Prefix the list here with "+" to use these queries and those in the config file.
|
||
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||
# If this step fails, then you should remove it and run the build manually (see below)
|
||
- name: Autobuild
|
||
uses: github/codeql-action/autobuild@v1
|
||
|
||
# ℹ️ Command-line programs to run using the OS shell.
|
||
# 📚 https://git.io/JvXDl
|
||
|
||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
||
# and modify them (or add more) to build your code if your project
|
||
# uses a compiled language
|
||
|
||
#- run: |
|
||
# make bootstrap
|
||
# make release
|
||
|
||
- name: Perform CodeQL Analysis
|
||
uses: github/codeql-action/analyze@v1
|