From 9e456c1feb7da3a710459170332c0f26c3d8fd31 Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Thu, 12 Dec 2024 22:32:13 +0100 Subject: [PATCH] feat(ci-cd): Add debug release --- .github/workflows/build-debug.yaml | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/build-debug.yaml diff --git a/.github/workflows/build-debug.yaml b/.github/workflows/build-debug.yaml new file mode 100644 index 0000000..9c7bad6 --- /dev/null +++ b/.github/workflows/build-debug.yaml @@ -0,0 +1,38 @@ +name: Build debug + +permissions: + contents: write + +on: + push: + +jobs: + build-server: + runs-on: ubuntu-latest + strategy: + matrix: + arch: ["amd64", "arm"] + os: ["darwin", "linux"] + + 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: Build arch + run: env GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -o seam-carving-${{ matrix.os }}-${{ matrix.arch }} -ldflags="-s -w" . + + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: seam-carving-${{ matrix.os }}-${{ matrix.arch }} + path: seam-carving-${{ matrix.os }}-${{ matrix.arch }} + + +