name: build abyss on: push: branches: - main pull_request: branches: - main jobs: build: runs-on: ubuntu-latest strategy: matrix: goos: [linux] goarch: [amd64, arm64, riscv64, ppc64le] steps: - name: checkout code uses: actions/checkout@v4 - name: set up go uses: actions/setup-go@v5 with: go-version: 1.22.x - name: build for ${{ matrix.goarch }} run: | export CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -a -ldflags '-extldflags "-static"' -o abyss-${{ matrix.goarch }} - name: upload binaries uses: actions/upload-artifact@v4 with: name: abyss-${{ matrix.goarch }} path: abyss-${{ matrix.goarch }}