Skip to content

Commit

Permalink
Refactor build steps in two GitHub workflows
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Christian Roessner committed May 3, 2024
1 parent 25ecf05 commit a20db14
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-features.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a20db14

Please sign in to comment.