diff --git a/.github/workflows/pr_release_validation.yml b/.github/workflows/pr_release_validation.yml index 4f43ee45..61df3468 100644 --- a/.github/workflows/pr_release_validation.yml +++ b/.github/workflows/pr_release_validation.yml @@ -12,6 +12,7 @@ permissions: jobs: test-goreleaser: runs-on: ubuntu-latest + timeout-minutes: 60 steps: - name: Checkout uses: actions/checkout@v4 @@ -55,7 +56,7 @@ jobs: uses: goreleaser/goreleaser-action@v6 with: version: "2.8.2" - args: release --snapshot --clean --skip=publish --timeout 30m --config .goreleaser.test.yaml --parallelism 4 + args: release --snapshot --clean --skip=publish --timeout 45m --config .goreleaser.test.yaml --parallelism 2 env: GORELEASER_CURRENT_TAG: "v0.0.0-test" CERT_PASSWORD: "test" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ebf5e53e..43011a04 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,6 +16,7 @@ env: jobs: goreleaser: runs-on: ubuntu-latest + timeout-minutes: 90 steps: - name: Checkout uses: actions/checkout@v4 @@ -73,7 +74,7 @@ jobs: uses: goreleaser/goreleaser-action@v6 with: version: "2.8.2" - args: release --clean --verbose --timeout 60m --parallelism 4 + args: release --clean --verbose --timeout 60m --parallelism 2 env: GITHUB_TOKEN: ${{secrets.PUBLISHER_TOKEN}} GORELEASER_CURRENT_TAG: ${{steps.tagName.outputs.tag-name}} diff --git a/.goreleaser.test.yaml b/.goreleaser.test.yaml index 502c49ea..13437183 100644 --- a/.goreleaser.test.yaml +++ b/.goreleaser.test.yaml @@ -8,8 +8,7 @@ release: name_template: "SailPoint CLI {{.Version}}" before: - hooks: - - go mod tidy + hooks: [] builds: - id: windows diff --git a/.goreleaser.yaml b/.goreleaser.yaml index fabfcdb0..c2ce8bcb 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -8,8 +8,7 @@ release: name_template: "SailPoint CLI {{.Version}}" before: - hooks: - - go mod tidy + hooks: [] builds: - id: windows @@ -29,12 +28,16 @@ builds: goarch: ['386', arm, amd64, arm64] env: - CGO_ENABLED=0 + ldflags: + - -s -w -X main.version={{ .Version }} - id: macos binary: bin/sail main: ./ goos: [darwin] goarch: [amd64, arm64] + ldflags: + - -s -w -X main.version={{ .Version }} archives: - id: nix