-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update goreleaser config and add build ci job (#496)
* fix: update goreleaser config and add build ci job to make sure goreleaser works * update job name and remove web build * update golangci-lint and fix cloud dockerfile
- Loading branch information
Showing
5 changed files
with
83 additions
and
31 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -397,3 +397,57 @@ jobs: | |
uses: golangci/golangci-lint-action@v4 | ||
with: | ||
version: v1.54.2 | ||
build: | ||
name: GoReleaser build | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, macos-latest, windows-latest ] | ||
include: | ||
- os: ubuntu-latest | ||
goos: linux | ||
- os: macos-latest | ||
goos: darwin | ||
- os: windows-latest | ||
goos: windows | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Go | ||
uses: actions/[email protected] | ||
with: | ||
go-version-file: go.mod | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.18.1 | ||
- name: Setup SHA variable | ||
shell: bash | ||
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV | ||
- name: Setup Cache | ||
uses: actions/[email protected] | ||
with: | ||
path: dist/${{ matrix.goos }} | ||
key: ${{ matrix.goos }}-${{ env.sha_short }} | ||
enableCrossOsArchive: true | ||
- name: Install Dependencies | ||
if: matrix.goos == 'linux' | ||
shell: bash | ||
run: | | ||
sudo apt update | ||
sudo apt install -y libwebkit2gtk-4.0-dev libgtk-3-dev | ||
- name: GoReleaser (Build) | ||
uses: goreleaser/goreleaser-action@v4 | ||
with: | ||
distribution: goreleaser-pro | ||
version: latest | ||
args: release --clean --split --timeout 90m | ||
env: | ||
CGO_LDFLAGS: "${{ matrix.goos == 'darwin' && '-framework UniformTypeIdentifiers' || '' }}" | ||
GOOS: ${{ matrix.GOOS }} | ||
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITLAB_CLIENT_SECRET: ${{ secrets.GITLAB_CLIENT_SECRET }} | ||
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.20-alpine3.17 AS builder | ||
FROM golang:1.22-alpine3.19 AS builder | ||
|
||
WORKDIR /workspace | ||
|
||
|