Update go.mod and go.sum to upgrade dependencies to their latest …
#32
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: | |
| branches: [ "master" ] | |
| tags-ignore: | |
| - '**' | |
| pull_request: | |
| branches: [ "master" ] | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ ubuntu-latest, windows-latest, macos-latest ] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: '1.24' | |
| - name: Go get | |
| run: go get dhtc | |
| - name: Build Linux | |
| if: runner.os == 'Linux' | |
| run: go build -v -o dhtc-linux cmd/dhtc/main.go | |
| - name: Build macOS | |
| if: runner.os == 'macOS' | |
| run: go build -v -o dhtc-macos cmd/dhtc/main.go | |
| - name: Build Windows | |
| if: runner.os == 'Windows' | |
| run: go build -v -o dhtc-windows.exe cmd/dhtc/main.go |