Skip to content

Commit

Permalink
workflow: sync workflow to 1.66.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dogbutcat committed Mar 18, 2024
1 parent 778af68 commit 710401a
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
strategy:
fail-fast: false
matrix:
job_name: ['linux', 'linux_386', 'mac_amd64', 'mac_arm64', 'windows', 'other_os', 'go1.19', 'go1.20']
job_name: ['linux', 'linux_386', 'mac_amd64', 'mac_arm64', 'windows', 'other_os', 'go1.20', 'go1.21']

include:
- job_name: linux
os: ubuntu-latest
go: '1.21'
go: '>=1.22.0-rc.1'
gotags: cmount
build_flags: '-include "^linux/"'
check: false
Expand All @@ -33,14 +33,14 @@ jobs:

- job_name: linux_386
os: ubuntu-latest
go: '1.21'
go: '>=1.22.0-rc.1'
goarch: 386
gotags: cmount
quicktest: false

- job_name: mac_amd64
os: macos-11
go: '1.21'
go: '>=1.22.0-rc.1'
gotags: 'cmount'
build_flags: '-include "^darwin/amd64" -cgo'
quicktest: false
Expand All @@ -49,14 +49,14 @@ jobs:

- job_name: mac_arm64
os: macos-11
go: '1.21'
go: '>=1.22.0-rc.1'
gotags: 'cmount'
build_flags: '-include "^darwin/arm64" -cgo -macos-arch arm64 -cgo-cflags=-I/usr/local/include -cgo-ldflags=-L/usr/local/lib'
deploy: true

- job_name: windows
os: windows-latest
go: '1.21'
go: '>=1.22.0-rc.1'
gotags: cmount
cgo: '0'
build_flags: '-include "^windows/"'
Expand All @@ -66,20 +66,20 @@ jobs:

- job_name: other_os
os: ubuntu-latest
go: '1.21'
go: '>=1.22.0-rc.1'
build_flags: '-exclude "^(windows/|darwin/|linux/)"'
compile_all: true
deploy: true

- job_name: go1.19
- job_name: go1.20
os: ubuntu-latest
go: '1.19'
go: '1.20'
quicktest: true
racequicktest: true

- job_name: go1.20
- job_name: go1.21
os: ubuntu-latest
go: '1.20'
go: '1.21'
quicktest: true
racequicktest: true

Expand All @@ -94,7 +94,7 @@ jobs:
fetch-depth: 0

- name: Install Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
check-latest: true
Expand Down Expand Up @@ -158,7 +158,7 @@ jobs:
env
- name: Go module cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand Down Expand Up @@ -210,26 +210,26 @@ jobs:

# steps:
# - name: Checkout
# uses: actions/checkout@v3
# uses: actions/checkout@v4

# - name: Code quality test
# uses: golangci/golangci-lint-action@v3
# with:
# # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
# version: latest

# # Run govulncheck on the latest go version, the one we build binaries with
# - name: Install Go
# uses: actions/setup-go@v4
# with:
# go-version: '1.20'
# check-latest: true
# Run govulncheck on the latest go version, the one we build binaries with
# - name: Install Go
# uses: actions/setup-go@v5
# with:
# go-version: '>=1.22.0-rc.1'
# check-latest: true

# - name: Install govulncheck
# run: go install golang.org/x/vuln/cmd/govulncheck@latest
# - name: Install govulncheck
# run: go install golang.org/x/vuln/cmd/govulncheck@latest

# - name: Scan for vulnerabilities
# run: govulncheck ./...
# - name: Scan for vulnerabilities
# run: govulncheck ./...

android:
if: ${{ github.repository == 'dogbutcat/gclone' || github.event.inputs.manual }}
Expand All @@ -245,12 +245,12 @@ jobs:

# Upgrade together with NDK version
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '>=1.22.0-rc.1'

- name: Go module cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand Down

0 comments on commit 710401a

Please sign in to comment.