new approach that tars at upload step

This commit is contained in:
Kasey Rodgers 2022-11-04 10:21:45 -07:00
parent 73707c4e91
commit 38666a2d70

View file

@ -87,94 +87,90 @@ jobs:
- name: build featurebase
run: |
go build -o ./build/${{ matrix.goos }}-${{ matrix.goarch }}/featurebase-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./cmd/featurebase
go build -o ./build/${{ matrix.goos }}-${{ matrix.goarch }}/roaring-migrate-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./cmd/roaring-migrate
go build -o ./build/${{ matrix.goos }}-${{ matrix.goarch }}/consumer-csv-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./idk/cmd/molecula-consumer-csv
go build -o ./build/${{ matrix.goos }}-${{ matrix.goarch }}/consumer-kafka-static-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./idk/cmd/molecula-consumer-kafka-static
go build -o ./build/${{ matrix.goos }}-${{ matrix.goarch }}/consumer-sql-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./idk/cmd/molecula-consumer-sql
go build -o ./build/${{ matrix.goos }}-${{ matrix.goarch }}/consumer-github-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./idk/cmd/molecula-consumer-github
go build -o ./build/${{ matrix.goos }}-${{ matrix.goarch }}/consumer-kinesis-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./idk/cmd/molecula-consumer-kinesis
- uses: actions/upload-artifact@v3
with:
name: featurebase-${{ matrix.goos }}-${{ matrix.goarch }}
path: ./build/${{ matrix.goos }}-${{ matrix.goarch }}/featurebase-${{ matrix.goos }}-${{ matrix.goarch }}
path: ./build/${{ matrix.goos }}-${{ matrix.goarch }}/featurebase-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz
- uses: actions/upload-artifact@v3
with:
name: roaring-migrate-${{ matrix.goos }}-${{ matrix.goarch }}
path: ./build/${{ matrix.goos }}-${{ matrix.goarch }}/roaring-migrate-${{ matrix.goos }}-${{ matrix.goarch }}
# build-ingest:
# runs-on: ubuntu-latest
# needs: [meta]
build-ingest:
runs-on: ubuntu-latest
needs: [meta]
# strategy:
# matrix:
# goos:
# - "darwin"
# - "linux"
# goarch:
# - "amd64"
# - "arm64"
strategy:
matrix:
goos:
- "darwin"
- "linux"
goarch:
- "amd64"
- "arm64"
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
# env:
# GOOS: ${{ matrix.goos }}
# GOARCH: ${{ matrix.goarch }}
steps:
- uses: actions/checkout@v3
# steps:
# - uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "^1.19.1"
# - uses: actions/setup-go@v3
# with:
# go-version: "^1.19.1"
- name: build ingester
run: go build -o ./build/${{ matrix.goos }}-${{ matrix.goarch }}/ingester-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./idk/cmd/ingester
# - name: build ingester
# run: go build -o ./build/${{ matrix.goos }}-${{ matrix.goarch }}/ingester-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./idk/cmd/ingester
- name: build consumer-csv
run: go build -o ./build/${{ matrix.goos }}-${{ matrix.goarch }}/consumer-csv-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./idk/cmd/molecula-consumer-csv
# - name: build consumer-csv
# run: go build -o ./build/${{ matrix.goos }}-${{ matrix.goarch }}/consumer-csv-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./idk/cmd/molecula-consumer-csv
- name: build consumer-kafka-static
run: go build -o ./build/${{ matrix.goos }}-${{ matrix.goarch }}/consumer-kafka-static-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./idk/cmd/molecula-consumer-kafka-static
# - name: build consumer-kafka-static
# run: go build -o ./build/${{ matrix.goos }}-${{ matrix.goarch }}/consumer-kafka-static-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./idk/cmd/molecula-consumer-kafka-static
- name: build consumer-sql
run: go build -o ./build/${{ matrix.goos }}-${{ matrix.goarch }}/consumer-sql-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./idk/cmd/molecula-consumer-sql
# - name: build consumer-sql
# run: go build -o ./build/${{ matrix.goos }}-${{ matrix.goarch }}/consumer-sql-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./idk/cmd/molecula-consumer-sql
- name: build consumer-github
run: go build -o ./build/${{ matrix.goos }}-${{ matrix.goarch }}/consumer-github-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./idk/cmd/molecula-consumer-github
# - name: build consumer-github
# run: go build -o ./build/${{ matrix.goos }}-${{ matrix.goarch }}/consumer-github-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./idk/cmd/molecula-consumer-github
- name: build consumer-kinesis
run: go build -o ./build/${{ matrix.goos }}-${{ matrix.goarch }}/consumer-kinesis-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./idk/cmd/molecula-consumer-kinesis
# - name: build consumer-kinesis
# run: go build -o ./build/${{ matrix.goos }}-${{ matrix.goarch }}/consumer-kinesis-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./idk/cmd/molecula-consumer-kinesis
- uses: actions/upload-artifact@v3
with:
name: ingester-${{ matrix.goos }}-${{ matrix.goarch }}
path: ./build/${{ matrix.goos }}-${{ matrix.goarch }}/ingester-${{ matrix.goos }}-${{ matrix.goarch }}
# - uses: actions/upload-artifact@v3
# with:
# name: ingester-${{ matrix.goos }}-${{ matrix.goarch }}
# path: ./build/${{ matrix.goos }}-${{ matrix.goarch }}/ingester-${{ matrix.goos }}-${{ matrix.goarch }}
- uses: actions/upload-artifact@v3
with:
name: consumers-${{ matrix.goos }}-${{ matrix.goarch }}
path: ./build/${{ matrix.goos }}-${{ matrix.goarch }}/consumer*
# - uses: actions/upload-artifact@v3
# with:
# name: consumers-${{ matrix.goos }}-${{ matrix.goarch }}
# path: ./build/${{ matrix.goos }}-${{ matrix.goarch }}/consumer*
bundle:
runs-on: ubuntu-latest
needs:
- meta
- build-featurebase
- build-lattice
- build-ingest
# bundle:
# runs-on: ubuntu-latest
# needs:
# - meta
# - build-featurebase
# - build-lattice
# - build-ingest
strategy:
matrix:
goos:
- "darwin"
- "linux"
goarch:
- "amd64"
- "arm64"
# strategy:
# matrix:
# goos:
# - "darwin"
# - "linux"
# goarch:
# - "amd64"
# - "arm64"
steps:
- uses: actions/download-artifact@v3
- name: What's Happening Here
run: pwd
run: ls -R
with:
name:
path: ./build/${{ matrix.goos }}-${{ matrix.goarch }}/*
- name: Display structure of downloaded files
run: ls -R
# steps:
# - uses: actions/download-artifact@v3
# with:
# name:
# path: ./build/${{ matrix.goos }}-${{ matrix.goarch }}/*
# - name: Display structure of downloaded files
# run: ls -R