diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..2704f7f --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,33 @@ +# This smells like Ansible, but I'm not sure I'm doing this correctly, so this won't be enabled for a while. + +name: Go + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.20.5 + + - name: Build linux amd64 + run: env GOOS=linux GOARCH=amd64 go build -o build/lotw-trust_linux -ldflags '-s -w' + + - name: Build windows amd64 + run: env GOOS=windows GOARCH=amd64 go build -o build/lotw-trust.exe -ldflags '-s -w' + + - name: Build osx amd64 + run: env GOOS=darwin GOARCH=amd64 go build -o build/lotw-trust_osx -ldflags '-s -w' + + - name: Build raspberry + run: env GOOS=linux GOARCH=arm64 go build -o build/lotw-trust_rpi64 -ldflags '-s -w' diff --git a/version.txt b/version.txt index 58682af..9bbaee4 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.0.11 \ No newline at end of file +0.0.12 \ No newline at end of file