Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
costaluu committed Sep 14, 2024
1 parent 9d984bc commit 2b3922f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ jobs:

- name: Build for Linux, macOS, and Windows
run: |
GIT_WORKSPACE="${{ github.workspace }}"
OUTPUT_DIR="${{ github.workspace }}/bin" # Save the binaries outside of src
BINARY_NAME="flag"
mkdir -p $OUTPUT_DIR/linux $OUTPUT_DIR/macos $OUTPUT_DIR/windows
cd $OUTPUT_DIR/src # Change to the src directory
cd $GIT_WORKSPACE/src # Change to the src directory
# Build for Linux
GOOS=linux GOARCH=amd64 go build -o $OUTPUT_DIR/linux/$BINARY_NAME
Expand Down

0 comments on commit 2b3922f

Please sign in to comment.