Skip to content

add CI

add CI #1

Workflow file for this run

name: CI
on:
push:
branches: [ "master", "v1" ]
pull_request:
branches: [ "master", "v1" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [linux, darwin]
arch: [arm64, amd64]
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23'
cache: 'true'
- name: Test
run: go test -v ./...
- name: Build
env:
CGO_ENABLED: 0
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
run: go build -ldflags "-s -w" -o heph_${{ matrix.os }}_${{ matrix.arch }}