Some checks failed
Build and Test / build-and-test (push) Failing after 36s
The only registered act_runner advertises the `shell` label, not `docker`, so `runs-on: docker` left the job queued forever. The host has the docker CLI (the resume repo builds via `docker run` on this same runner), so keep running the build/test inside a golang container. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
18 lines
592 B
YAML
18 lines
592 B
YAML
name: Build and Test
|
|
on: [push]
|
|
jobs:
|
|
build-and-test:
|
|
runs-on: shell
|
|
steps:
|
|
- name: Checkout
|
|
run: |
|
|
git clone --branch ${{ github.ref_name }} ${{ github.server_url }}/${{ github.repository }}.git .
|
|
- name: Test
|
|
run: docker run --rm -w /src -v $PWD:/src golang:1.26 go test ./...
|
|
- name: Build
|
|
run: docker run --rm -w /src -v $PWD:/src -e CGO_ENABLED=0 golang:1.26 go build -ldflags "-s -w" -o hsa ./cmd/hsa
|
|
- name: Upload binary
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: hsa
|
|
path: hsa
|