Skip to content

Commit

Permalink
chore: set go version in go.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
nange committed May 22, 2024
1 parent 5c6db19 commit bc9c2ab
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 27 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '^1.22'
check-latest: true
go-version-file: 'go.mod'

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
21 changes: 9 additions & 12 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '^1.22'
check-latest: true
go-version-file: 'go.mod'

- name: Cache go module
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
Expand All @@ -36,7 +35,7 @@ jobs:
${{ runner.os }}-go-
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout 10m0s --verbose
Expand All @@ -56,11 +55,10 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '^1.22'
check-latest: true
go-version-file: 'go.mod'

- name: Cache go module
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
Expand All @@ -70,7 +68,7 @@ jobs:
${{ runner.os }}-go-
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout 10m0s --verbose
Expand All @@ -90,11 +88,10 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '^1.22'
check-latest: true
go-version-file: 'go.mod'

- name: Cache go module
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
Expand All @@ -104,7 +101,7 @@ jobs:
${{ runner.os }}-go-
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout 10m0s --verbose
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '^1.22'
check-latest: true
go-version-file: 'go.mod'

- name: Set up Android NDK
uses: nttld/setup-ndk@v1
Expand Down Expand Up @@ -66,7 +65,7 @@ jobs:
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Nightly Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
name: Nightly-${{ steps.vars.outputs.sha_short }}
tag_name: nightly-${{ steps.vars.outputs.sha_short }}
Expand All @@ -85,8 +84,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '^1.22'
check-latest: true
go-version-file: 'go.mod'

- name: Build
run: |
Expand Down Expand Up @@ -115,7 +113,7 @@ jobs:
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Nightly Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
name: Nightly-${{ steps.vars.outputs.sha_short }}
tag_name: nightly-${{ steps.vars.outputs.sha_short }}
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '^1.22'
check-latest: true
go-version-file: 'go.mod'

- name: Set up Android NDK
uses: nttld/setup-ndk@v1
Expand Down Expand Up @@ -61,7 +60,7 @@ jobs:
zip easyss-server-linux-arm64.zip ./easyss-server
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
name: Release ${{ github.ref_name }}
body: TODO
Expand All @@ -74,8 +73,8 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '^1.22'
check-latest: true
go-version-file: 'go.mod'

- name: Build
run: |
make easyss
Expand All @@ -95,7 +94,7 @@ jobs:
zip easyss-darwin-arm64.zip ./easyss
zip easyss-server-darwin-arm64.zip ./easyss-server
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
name: Release ${{ github.ref_name }}
body: TODO
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/nange/easyss/v2

go 1.22
go 1.22.3

require (
github.com/caddyserver/certmagic v0.21.1
Expand Down

0 comments on commit bc9c2ab

Please sign in to comment.