Skip to content

Add per-repo page and simplify dashboard to repo list #6

Add per-repo page and simplify dashboard to repo list

Add per-repo page and simplify dashboard to repo list #6

Workflow file for this run

name: Build
on:
push:
tags:
- 'v*'
pull_request:
branches: [main, master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run tests
run: go test -v -race -coverprofile=coverage.out ./...
- name: Upload coverage
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage.out
build:
needs: test
runs-on: ubuntu-latest
strategy:
matrix:
include:
- goos: linux
goarch: amd64
- goos: linux
goarch: arm64
- goos: darwin
goarch: amd64
- goos: darwin
goarch: arm64
- goos: windows
goarch: amd64
ext: .exe
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build
env:
CGO_ENABLED: 0
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: |
go build -ldflags="-s -w" -o actix-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.ext }} ./cmd/actix
- uses: actions/upload-artifact@v4
with:
name: actix-${{ matrix.goos }}-${{ matrix.goarch }}
path: actix-${{ matrix.goos }}-${{ matrix.goarch }}*
release:
needs: build
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true
- uses: softprops/action-gh-release@v2
with:
files: artifacts/*