abyss/.github/workflows/build.yaml
jabuxas 80497fb2a8
Some checks are pending
build abyss / build (amd64, linux) (push) Waiting to run
build abyss / build (arm64, linux) (push) Waiting to run
build abyss / build (ppc64le, linux) (push) Waiting to run
build abyss / build (riscv64, linux) (push) Waiting to run
build: add on-commit github action
2024-09-03 22:26:00 -03:00

38 lines
820 B
YAML

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 }}