update GitHub Actions to use latest versions of setup-go, checkout, a… #25
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: Go | |
| on: [push] | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: 1.24 | |
| id: go | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@v6 | |
| - name: Build - Windows x86 | |
| run: go build -ldflags="-s -w" -o dist/windows_x86/http-server.exe -v . | |
| env: | |
| GOOS: windows | |
| GOARCH: 386 | |
| - name: Build - Windows x64 | |
| run: go build -ldflags="-s -w" -o dist/windows_x64/http-server.exe -v . | |
| env: | |
| GOOS: windows | |
| GOARCH: amd64 | |
| - name: Build - macOS x64 (Intel) | |
| run: go build -ldflags="-s -w" -o dist/macos_x64/http-server -v . | |
| env: | |
| GOOS: darwin | |
| GOARCH: amd64 | |
| - name: Build - macOS ARM64 (Apple Silicon) | |
| run: go build -ldflags="-s -w" -o dist/macos_arm64/http-server -v . | |
| env: | |
| GOOS: darwin | |
| GOARCH: arm64 | |
| - name: Archive production artifacts | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: dist | |
| path: dist |