Skip to content

Commit

Permalink
update go version
Browse files Browse the repository at this point in the history
  • Loading branch information
tlanfer committed Jul 10, 2024
1 parent 2c2b40e commit 3821d7a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,21 @@ jobs:
pre-release:
runs-on: windows-latest
steps:

- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.18.x
go-version: 1.22.x

- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: actions/setup-node@v4
with:
node-version: 18
- run: cd companion/internal/adapter/inbound/ui/www && npm ci
- run: cd companion/internal/adapter/inbound/ui/www && npm run build

- uses: actions/cache@v2
with:
path: |
Expand All @@ -31,13 +35,6 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build
run: cd companion && go build -ldflags -H=windowsgui -o ../companion.exe ./cmd
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: |
companion.exe
run: cd companion && go build -ldflags -H=windowsgui -o ../companion.exe ./cmd
2 changes: 1 addition & 1 deletion .github/workflows/tagged-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.18.x
go-version: 1.22.x

- name: Checkout code
uses: actions/checkout@v2
Expand Down

0 comments on commit 3821d7a

Please sign in to comment.