Add winpowrprof package #893
This file contains 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: Debug build | |
on: | |
push: | |
branches: | |
- dev | |
paths-ignore: | |
- '**.md' | |
- '.github/**' | |
- '!.github/workflows/debug.yml' | |
pull_request: | |
branches: | |
- dev | |
jobs: | |
build: | |
name: Linux Debug build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ^1.21 | |
- name: Add cache to Go proxy | |
run: | | |
version=`git rev-parse HEAD` | |
mkdir build | |
pushd build | |
go mod init build | |
go get -v github.com/sagernet/sing@$version | |
popd | |
continue-on-error: true | |
- name: Build | |
run: | | |
make test | |
build_go118: | |
name: Linux Debug build (Go 1.18) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ~1.18 | |
continue-on-error: true | |
- name: Build | |
run: | | |
make test | |
build_go119: | |
name: Linux Debug build (Go 1.19) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ~1.19 | |
continue-on-error: true | |
- name: Build | |
run: | | |
make test | |
build_go120: | |
name: Linux Debug build (Go 1.20) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ~1.20 | |
continue-on-error: true | |
- name: Build | |
run: | | |
make test | |
build__windows: | |
name: Windows Debug build | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ^1.21 | |
continue-on-error: true | |
- name: Build | |
run: | | |
make test | |
build_darwin: | |
name: macOS Debug build | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ^1.21 | |
continue-on-error: true | |
- name: Build | |
run: | | |
make test |