diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml new file mode 100644 index 0000000..3e3ec22 --- /dev/null +++ b/.forgejo/workflows/build.yml @@ -0,0 +1,31 @@ +name: build bin + +on: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: + contents: read + +jobs: + build: + name: Make sure build does not fail + runs-on: ubuntu-latest + steps: + - uses: https://code.forgejo.org/actions/checkout@v4 + name: checkout + - name: install alsa devel + run: apt update && apt install libasound2-dev -y + - uses: https://code.forgejo.org/actions/setup-go@v5 + name: install go + with: + go-version-file: './go.mod' + - run: go version + name: Go version + - run: make dep + name: install dependencies + - run: make build + name: build app + diff --git a/Makefile b/Makefile index 9a411f3..f650fe2 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ test_coverage: go test ./... -coverprofile=coverage.out dep: - go mod download + go mod vendor vet: go vet