featurebase/.github/workflows/release.yml
2022-10-28 12:01:27 -04:00

70 lines
1.8 KiB
YAML

name: Release
on: workflow_dispatch
jobs:
version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: cd $GITHUB_WORKSPACE
- run: pwd
- run: echo $(sh .github/workflows/version.sh)
- run: echo "::set-output version=$(sh .github/workflows/version.sh)"
build-featurebase:
runs-on: ubuntu-latest
needs:
- version
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 featurebase
run: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o ./build/featurebase-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/featurebase
- uses: actions/upload-artifact@v3
with:
name: featurebase-${{ matrix.goos }}-${{ matrix.goarch }}
path: ./build/featurebase-${{ matrix.goos }}-${{ matrix.goarch }}
# build-ingest:
# 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: navigate to ingest
# run: cd idk
# - name: build ingest
# run: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o ./build/ingest-${{ matrix.goos }}-${{ matrix.goarch }} /cmd/ingester
# - uses: actions/upload-artifact@v3
# with:
# name: ingest-${{ matrix.goos }}-${{ matrix.goarch }}
# path: ./build/ingest-${{ matrix.goos }}-${{ matrix.goarch }}