Skip to content

Commit

Permalink
mvoe to go 1.23.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mosajjal committed Dec 30, 2024
1 parent 39f8322 commit 4a5aa6b
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 42 deletions.
48 changes: 23 additions & 25 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,33 @@ name: Go

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:

- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Set up Go 3.x
uses: actions/setup-go@v5
with:
go-version: '^1.23'

- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Set up Go 3.x
uses: actions/setup-go@v5
with:
go-version: "^1.23.4"

- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
29 changes: 14 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Publish binaries on Release
on:
on:
release:
types: [created]

Expand All @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel: linux/386, linux/amd64, windows/386, windows/amd64, darwin/386, darwin/amd64
# build and publish in parallel: linux/386, linux/amd64, windows/386, windows/amd64, darwin/386, darwin/amd64
goos: [linux, windows, darwin, freebsd, openbsd]
goarch: ["386", amd64, arm64, arm]
exclude:
Expand All @@ -18,16 +18,15 @@ jobs:
- goarch: "arm"
goos: darwin
steps:
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@master
env:
CGO_ENABLED: 0 # support alpine
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: "./cmd/sniproxy"
goversion: 1.23.0
ldflags: "-s -w -X main.version=${{ github.event.release.tag_name }} -X main.commit=${{ github.sha }}"
build_flags: -v

- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@master
env:
CGO_ENABLED: 0 # support alpine
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: "./cmd/sniproxy"
goversion: 1.23.4
ldflags: "-s -w -X main.version=${{ github.event.release.tag_name }} -X main.commit=${{ github.sha }}"
build_flags: -v
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.23.0-alpine3.20
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.23.4-alpine3.21

ARG TARGETPLATFORM
ARG BUILDPLATFORM
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/mosajjal/sniproxy/v2

go 1.23.2
go 1.23.4

require (
github.com/deathowl/go-metrics-prometheus v0.0.0-20221009205350-f2a1482ba35b
Expand Down

0 comments on commit 4a5aa6b

Please sign in to comment.