From dd3c22d309ad8b4a7ead4bef5ff4806d25fd5665 Mon Sep 17 00:00:00 2001 From: Raphael Vigee Date: Mon, 30 Dec 2024 00:05:40 +0100 Subject: [PATCH] add CI --- .github/workflows/heph.yml | 33 +++++++++++++++++++++++++++++++++ .idea/jsonSchemas.xml | 25 +++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 .github/workflows/heph.yml create mode 100644 .idea/jsonSchemas.xml diff --git a/.github/workflows/heph.yml b/.github/workflows/heph.yml new file mode 100644 index 00000000..d84f873c --- /dev/null +++ b/.github/workflows/heph.yml @@ -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 }} diff --git a/.idea/jsonSchemas.xml b/.idea/jsonSchemas.xml new file mode 100644 index 00000000..57914ce4 --- /dev/null +++ b/.idea/jsonSchemas.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + \ No newline at end of file