Skip to content

Commit

Permalink
Actions (#42)
Browse files Browse the repository at this point in the history
* Adding workflow for building

* Adding  golang build

* Not running the produced bin, just checking for existence
  • Loading branch information
hotnops authored Sep 1, 2024
1 parent 404cd82 commit 52bc10c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,26 @@ jobs:
- name: Run TypeScript compiler with noEmit
run: npx tsc --noEmit --strict
working-directory: ./ui/apeman-ui

go-build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20" # Replace with the Go version you want to use

- name: Download Go modules
run: go mod download
working-directory: ./cmd

- name: Build Go binary
run: go build -ldflags '-s -w' -o main ./api/main.go
working-directory: ./cmd

- name: Check if Go binary exists
run: test -f ./main
working-directory: ./cmd

0 comments on commit 52bc10c

Please sign in to comment.