From a20db14188486f8b0518f168b5a67b7d8f50b1fe Mon Sep 17 00:00:00 2001 From: Christian Roessner Date: Fri, 3 May 2024 15:42:35 +0200 Subject: [PATCH] Refactor build steps in two GitHub workflows The provided commit modifies the build-stable and build-features workflows. It reorganizes the build step to change the working directory to "server" before defining GOOS and GOARCH environment variables. The goal was to make the process more streamlined and retrievable. Signed-off-by: Christian Roessner --- .github/workflows/build-features.yaml | 6 +++--- .github/workflows/build-stable.yaml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-features.yaml b/.github/workflows/build-features.yaml index 0dfb627c..fc018051 100644 --- a/.github/workflows/build-features.yaml +++ b/.github/workflows/build-features.yaml @@ -20,9 +20,9 @@ jobs: go-version: 1.22.x - name: Build project run: | - GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} \ - cd server && \ - go build -mod=vendor -tags="sonic avx" -ldflags="-s" -o nauthilus-${{ matrix.goos }}-${{ matrix.goarch }}-dev . + cd server && \ + GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} \ + go build -mod=vendor -ldflags="-s" -o nauthilus-${{ matrix.goos }}-${{ matrix.goarch }}-dev . - name: Upload artifacts uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/build-stable.yaml b/.github/workflows/build-stable.yaml index 1fe7524e..994ad730 100644 --- a/.github/workflows/build-stable.yaml +++ b/.github/workflows/build-stable.yaml @@ -20,9 +20,9 @@ jobs: go-version: 1.22.x - name: Build project run: | - GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} \ - cd server && \ - go build -mod=vendor -tags="sonic avx" -ldflags="-s" -o nauthilus-${{ matrix.goos }}-${{ matrix.goarch }} . + cd server && \ + GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} \ + go build -mod=vendor -ldflags="-s" -o nauthilus-${{ matrix.goos }}-${{ matrix.goarch }} . - name: Upload artifacts uses: actions/upload-artifact@v4 with: