From 9c1e1f22171e981cceea0e9596961c4d938fe149 Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Mon, 16 Jan 2023 17:11:12 +0000 Subject: [PATCH] fixup! Switch to goreleaser. --- .github/workflows/release.yaml | 60 +++++++++++++++++----------------- .goreleaser.yaml | 2 +- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 86f7300..1eb4d09 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -114,25 +114,25 @@ jobs: with: args: ./... - create-dummy-release: - needs: [ prepare, test, code_scans ] - name: Create empty release - runs-on: ubuntu-latest - steps: - - name: Checkout repo - uses: actions/checkout@v3 - - name: Get list of the commits since last release - run: | - echo "$(git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"%h %s")" > .release_notes - - name: Create empty release - uses: ncipollo/release-action@v1 - with: - bodyFile: ./.release_notes - name: version ${{ needs.prepare.outputs.RELEASE_VERSION }} - token: ${{ secrets.GHCR_TOKEN }} - tag: ${{ needs.prepare.outputs.RELEASE_VERSION }} - prerelease: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main' }} - allowUpdates: true + # create-dummy-release: + # needs: [ prepare, test, code_scans ] + # name: Create empty release + # runs-on: ubuntu-latest + # steps: + # - name: Checkout repo + # uses: actions/checkout@v3 + # - name: Get list of the commits since last release + # run: | + # echo "$(git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"%h %s")" > .release_notes + # - name: Create empty release + # uses: ncipollo/release-action@v1 + # with: + # bodyFile: ./.release_notes + # name: version ${{ needs.prepare.outputs.RELEASE_VERSION }} + # token: ${{ secrets.GHCR_TOKEN }} + # tag: ${{ needs.prepare.outputs.RELEASE_VERSION }} + # prerelease: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main' }} + # allowUpdates: true build: needs: [ prepare, test, code_scans ] @@ -197,17 +197,17 @@ jobs: needs: [ prepare, test, code_scans, create-dummy-release ] name: Binary compilation and release runs-on: ubuntu-latest - strategy: - matrix: - # build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64 - goos: [linux, windows, darwin] - goarch: ["386", amd64, arm64] - exclude: - - goarch: "386" - goos: darwin - - goarch: arm64 - goos: windows - continue-on-error: [true] + # strategy: + # matrix: + # # build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64 + # goos: [linux, windows, darwin] + # goarch: ["386", amd64, arm64] + # exclude: + # - goarch: "386" + # goos: darwin + # - goarch: arm64 + # goos: windows + # continue-on-error: [true] steps: - name: Checkout code uses: actions/checkout@v3 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index e827b01..f592cdd 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -3,7 +3,7 @@ builds: ldflags: - -s -w -X main.PKG_VERSION={{.Version}} env: - - CGO_ENABLED=1 + - CGO_ENABLED=0 - GO111MODULE=on # - >- # {{- if eq .Os "darwin" }}