fix: P0 audit fixes — bulk audit, dashboard since, provider stats #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: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - goos: linux | |
| goarch: amd64 | |
| - goos: linux | |
| goarch: arm64 | |
| - goos: darwin | |
| goarch: amd64 | |
| - goos: darwin | |
| goarch: arm64 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.26" | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: Build frontend | |
| run: | | |
| cd web/app | |
| npm ci | |
| npm run build | |
| - name: Install cross-compilation dependencies | |
| if: matrix.goos == 'linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y gcc libsqlite3-dev | |
| if [ "${{ matrix.goarch }}" = "arm64" ]; then | |
| sudo apt-get install -y gcc-aarch64-linux-gnu | |
| fi | |
| - name: Build binary | |
| env: | |
| GOOS: ${{ matrix.goos }} | |
| GOARCH: ${{ matrix.goarch }} | |
| CGO_ENABLED: ${{ matrix.goos == 'linux' && '1' || '0' }} | |
| CC: ${{ matrix.goarch == 'arm64' && matrix.goos == 'linux' && 'aarch64-linux-gnu-gcc' || '' }} | |
| run: | | |
| go build -ldflags="-s -w" -o peerclawd-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/peerclawd | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: peerclawd-${{ matrix.goos }}-${{ matrix.goarch }} | |
| path: peerclawd-${{ matrix.goos }}-${{ matrix.goarch }} | |
| release: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| merge-multiple: true | |
| - name: Create checksums | |
| run: sha256sum peerclawd-* > checksums.txt | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| peerclawd-* | |
| checksums.txt | |
| generate_release_notes: true |