mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-06 00:25:55 +00:00
adds release workflow with basic build step
This commit is contained in:
parent
25dbbb2950
commit
2b6cd13728
1 changed files with 48 additions and 0 deletions
48
.github/workflows/release.yml
vendored
Normal file
48
.github/workflows/release.yml
vendored
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
name: CD
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["master"]
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
# release:
|
||||
# runs-on: ubuntu-latest
|
||||
# outputs:
|
||||
# version: ${{ steps.semrel.outputs.version }}
|
||||
|
||||
# steps:
|
||||
# - name: get version
|
||||
|
||||
|
||||
build:
|
||||
# needs: release
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
goos:
|
||||
- "darwin"
|
||||
- "linux"
|
||||
goarch:
|
||||
- "amd64"
|
||||
- "arm64"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: "^1.19.1"
|
||||
|
||||
- name: build
|
||||
run: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o ./build/${{ matrix.goos }}-${{ matrix.goarch }}
|
||||
|
||||
# - name: Upload binaries to release
|
||||
# uses: svenstaro/upload-release-action@v2
|
||||
# with:
|
||||
# repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
# file: ./build/${{ matrix.goos }}-${{ matrix.goarch }}
|
||||
# asset_name: ${{ matrix.goos }}-${{ matrix.goarch }}
|
||||
# tag: ${{ github.ref }}
|
||||
|
||||
Loading…
Add table
Reference in a new issue