diff --git a/.github/workflows/binary.yml b/.github/workflows/binary.yml index 9c5384482..1c58f64ad 100644 --- a/.github/workflows/binary.yml +++ b/.github/workflows/binary.yml @@ -9,13 +9,13 @@ jobs: publish: runs-on: ubuntu-latest steps: - - name: "Setup go" - uses: actions/setup-go@v4 - - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 + + - name: "Setup go" + uses: actions/setup-go@v4 - name: "Build binary" run: | diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml index eebf68d3c..d27dc8020 100644 --- a/.github/workflows/dockerimage.yml +++ b/.github/workflows/dockerimage.yml @@ -12,29 +12,29 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: docker/setup-qemu-action@v2.1.0 - - uses: docker/setup-buildx-action@v2.5.0 + - uses: docker/setup-qemu-action@v3 + - uses: docker/setup-buildx-action@v3 - name: Log in to the ghcr - uses: docker/login-action@v2.1.0 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Log in to the docker - uses: docker/login-action@v2.1.0 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Docker meta id: meta - uses: docker/metadata-action@v4.4.0 + uses: docker/metadata-action@v5 with: images: | ghcr.io/${{ github.repository }} @@ -45,7 +45,7 @@ jobs: - name: Docker meta for debug version if: ${{ github.ref == 'refs/heads/master' }} id: debug-meta - uses: docker/metadata-action@v4.4.0 + uses: docker/metadata-action@v5 with: images: | ghcr.io/${{ github.repository }} @@ -55,7 +55,7 @@ jobs: - name: Build and push image if: ${{ steps.meta.outputs.tags != '' }} - uses: docker/build-push-action@v4.0.0 + uses: docker/build-push-action@v5 with: context: "." platforms: linux/amd64,linux/arm64 @@ -64,7 +64,7 @@ jobs: - name: "[debug version] Build and push image" if: ${{ github.ref == 'refs/heads/master' }} - uses: docker/build-push-action@v4.0.0 + uses: docker/build-push-action@v5 with: context: "." platforms: linux/amd64,linux/arm64 diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 71ace565b..16256ee48 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -13,10 +13,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version-file: 'go.mod' diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 19f4a0966..f9e079053 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -19,14 +19,14 @@ jobs: echo "VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_ENV - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version-file: 'go.mod' - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v5 with: version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1483148f1..d4a656f7d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,8 +12,8 @@ jobs: unittests: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 with: go-version-file: 'go.mod' - name: unit tests diff --git a/.golangci.yml b/.golangci.yml index e2d5553fe..11b8555e0 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -6,7 +6,7 @@ run: - tools - 3rdmocks modules-download-mode: readonly - go: 1.18 + go: 1.20 linters-settings: maligned: diff --git a/.goreleaser.yml b/.goreleaser.yml index 850d21cfa..1884d64ef 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -57,12 +57,14 @@ builds: - amd64 archives: - - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 + - id: core + name_template: >- + {{- .ProjectName }}_{{- .Version }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end -}} checksum: name_template: 'checksums.txt' diff --git a/README.md b/README.md index 8a0692643..be0922d21 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Eru can use multiple engines to run anything for the long or short term. This project is Eru Core. The Core use for resource allocation and manage resource's lifetime. -Suggest use go 1.18 and above. +Suggest use go 1.20 and above. ### Testing