Skip to content

Commit

Permalink
add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelvigee committed Dec 29, 2024
1 parent ecc244d commit dd3c22d
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/heph.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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 }}
25 changes: 25 additions & 0 deletions .idea/jsonSchemas.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dd3c22d

Please sign in to comment.