Build and Release Go Binaries #5
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 and Release Go Binaries | |
| on: | |
| release: | |
| types: [created] | |
| jobs: | |
| build: | |
| name: Build and Release Go Binaries | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| os: [linux] | |
| goarch: [amd64] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: 1.23 | |
| - name: Build Go Binary | |
| run: | | |
| mkdir -p dist | |
| GOOS=${{ matrix.os }} GOARCH=${{ matrix.goarch }} go build -o dist/json-dup-keys-${{ matrix.os }}-${{ matrix.goarch }} | |
| - name: Upload artifacts to release | |
| uses: actions/upload-artifact@v2 | |
| with: | |
| name: json-dup-keys-${{ matrix.os }}-${{ matrix.goarch }} |