Repository navigation
chore: fix missing help text, move vars to const (#86) #31
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| tags: [v*] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - uses: extractions/setup-just@v3 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| check-latest: true | |
| cache: true | |
| - run: go mod download | |
| - uses: dawidd6/action-get-tag@v1 | |
| id: tag | |
| - run: just test | |
| - name: linux_amd64 | |
| env: | |
| TAG: ${{steps.tag.outputs.tag}} | |
| GOOS: linux | |
| GOARCH: amd64 | |
| run: just build | |
| - name: linux_arm64 | |
| env: | |
| TAG: ${{steps.tag.outputs.tag}} | |
| GOOS: linux | |
| GOARCH: arm64 | |
| run: just build | |
| - name: darwin_amd64 | |
| env: | |
| TAG: ${{steps.tag.outputs.tag}} | |
| GOOS: darwin | |
| GOARCH: amd64 | |
| run: just build | |
| - name: darwin_arm64 | |
| env: | |
| TAG: ${{steps.tag.outputs.tag}} | |
| GOOS: darwin | |
| GOARCH: arm64 | |
| run: just build | |
| - name: windows_amd64 | |
| env: | |
| TAG: ${{steps.tag.outputs.tag}} | |
| GOOS: windows | |
| GOARCH: amd64 | |
| EXT: .exe | |
| run: just build | |
| - name: windows_arm64 | |
| env: | |
| TAG: ${{steps.tag.outputs.tag}} | |
| GOOS: windows | |
| GOARCH: arm64 | |
| EXT: .exe | |
| run: just build | |
| - name: android | |
| env: | |
| TAG: ${{steps.tag.outputs.tag}} | |
| GOOS: android | |
| GOARCH: arm64 | |
| run: just build | |
| - name: Release | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| artifacts: "builds/*" | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| generateReleaseNotes: true | |
| allowUpdates: true |