diff --git a/.github/workflows/go_build.yml b/.github/workflows/go_build.yml new file mode 100644 index 0000000..3d3657a --- /dev/null +++ b/.github/workflows/go_build.yml @@ -0,0 +1,17 @@ +name: Go Build +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: '1.21.x' + - name: Install dependencies + run: go install github.com/rakyll/statik@latest && go mod download -x + - name: Build + run: cd webserver && statik -f -src=public && go build -o lwnsimulator cmd/main.go \ No newline at end of file