From 854355e0eb1e8b32912f4e10c0b7061e6468398e Mon Sep 17 00:00:00 2001 From: SemProvoost <27961543+SemProvoost@users.noreply.github.com> Date: Tue, 26 Nov 2024 16:45:59 +0100 Subject: [PATCH] only build macos --- .github/workflows/release-test.yaml | 42 ----------------------- goreleaser.yml | 53 ----------------------------- 2 files changed, 95 deletions(-) delete mode 100644 .github/workflows/release-test.yaml diff --git a/.github/workflows/release-test.yaml b/.github/workflows/release-test.yaml deleted file mode 100644 index 97fd6a125c53..000000000000 --- a/.github/workflows/release-test.yaml +++ /dev/null @@ -1,42 +0,0 @@ -name: Release test -on: - push: - branches: - - dont-make-peopleapacheorg-apicalls - -env: - GO_VERSION: '1.22' - -jobs: - release: - name: Release - runs-on: ubuntu-latest - - steps: - - - name: Checkout code - uses: actions/checkout@v4.1.6 - with: - fetch-depth: 0 - - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version: ${{ env.GO_VERSION }} - cache: false # Disable cache to avoid free space issues during `Post Setup Go` step. - - - # Create tmp dir for GoReleaser - - name: "create tmp dir" - run: | - mkdir tmp - - - name: GoReleaser - uses: goreleaser/goreleaser-action@v6 - with: - version: v2.1.0 - args: release -f=goreleaser.yml --clean --timeout 90m - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TMPDIR: "tmp" - diff --git a/goreleaser.yml b/goreleaser.yml index b427899773b0..4a65566045a7 100644 --- a/goreleaser.yml +++ b/goreleaser.yml @@ -2,41 +2,6 @@ version: 2 project_name: trivy builds: - - id: build-linux - main: ./cmd/trivy/ - binary: trivy - ldflags: - - -s -w - - "-extldflags '-static'" - - -X github.com/aquasecurity/trivy/pkg/version/app.ver={{.Version}} - env: - - CGO_ENABLED=0 - goos: - - linux - goarch: - - 386 - - arm - - amd64 - - arm64 - - s390x - - ppc64le - goarm: - - 7 - - id: build-bsd - main: ./cmd/trivy/ - binary: trivy - ldflags: - - -s -w - - "-extldflags '-static'" - - -X github.com/aquasecurity/trivy/pkg/version/app.ver={{.Version}} - env: - - CGO_ENABLED=0 - goos: - - freebsd - goarch: - # modernc.org/sqlite doesn't support freebsd/arm64, etc. - - 386 - - amd64 - id: build-macos main: ./cmd/trivy/ binary: trivy @@ -53,26 +18,8 @@ builds: - arm64 goarm: - 7 - - id: build-windows - main: ./cmd/trivy/ - binary: trivy - ldflags: - - -s -w - - "-extldflags '-static'" - - -X github.com/aquasecurity/trivy/pkg/version/app.ver={{.Version}} - env: - - CGO_ENABLED=0 - goos: - - windows - goarch: - # modernc.org/sqlite doesn't support windows/386 and windows/arm, etc. - - amd64 - goarm: - - 7 release: - extra_files: - - glob: ./bom.json discussion_category_name: Announcements nfpms: