Commit 4c71f27

Karn Wong <karn@karnwong.me>
2024-10-03 13:15:15
goreleaser: remove cross-compilation tag: v0.3.1
1 parent 6c473ba
.github/workflows/release.yaml
@@ -21,32 +21,11 @@ jobs:
         uses: actions/setup-go@v5
         with:
           go-version: stable
-      - name: Install cross-compiler for linux/arm64
-        run: sudo apt install gcc-aarch64-linux-gnu
       - name: Release
         uses: goreleaser/goreleaser-action@v6
         with:
           distribution: goreleaser
           version: "~> v2"
-          args: release --clean --config .goreleaser-linux.yaml
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-  release-darwin-binary:
-    runs-on: macos-latest
-    steps:
-      - name: Checkout
-        uses: actions/checkout@v4
-        with:
-          fetch-depth: 0
-      - name: Set up Go
-        uses: actions/setup-go@v5
-        with:
-          go-version: stable
-      - name: Release
-        uses: goreleaser/goreleaser-action@v6
-        with:
-          distribution: goreleaser
-          version: "~> v2"
-          args: release --clean --config .goreleaser-darwin.yaml
+          args: release --clean --config .goreleaser.yaml
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
.goreleaser-linux.yaml
@@ -1,26 +0,0 @@
----
-version: 2
-
-builds:
-  - env:
-      - CGO_ENABLED=1
-    goos:
-      - linux
-      - windows
-    goarch:
-      - amd64
-      - arm64
-    ldflags:
-      - -w -s
-      - -X github.com/kahnwong/swissknife/cmd.version={{.Version}}
-    overrides:
-      - goos: linux
-        goarch: amd64
-        env:
-          - CC=gcc
-      - goos: linux
-        goarch: arm64
-        env:
-          - CC=aarch64-linux-gnu-gcc
-checksum:
-  disable: true
.goreleaser-darwin.yaml → .goreleaser.yaml
@@ -2,10 +2,10 @@
 version: 2
 
 builds:
-  - env:
-      - CGO_ENABLED=1
-    goos:
+  - goos:
+      - linux
       - darwin
+      - windows
     goarch:
       - amd64
       - arm64