-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.2 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
defaults:
run:
shell: bash
env:
GONOPROXY: github.com/getsynq/*
GONOSUMDB: github.com/getsynq/*
GOPRIVATE: github.com/getsynq/*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21
go-version-file: 'go.mod'
- name: Configure git
run: git config --global --add url."[email protected]:".insteadOf "https://github.com/"
- name: Build
run: |
go generate
GOOS=darwin CGO_ENABLED=0 GOARCH=arm64 go build -o synq-sqlmesh-arm64-darwin main.go
GOOS=darwin CGO_ENABLED=0 GOARCH=amd64 go build -o synq-sqlmesh-amd64-darwin main.go
GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -o synq-sqlmesh-amd64-linux main.go
GOOS=linux CGO_ENABLED=0 GOARCH=arm64 go build -o synq-sqlmesh-arm64-linux main.go
- name: Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: |
synq-sqlmesh-arm64-darwin
synq-sqlmesh-amd64-darwin
synq-sqlmesh-amd64-linux
synq-sqlmesh-arm64-linux
name: release synq-dbt
"on":
push:
tags:
- v*.*.*