From 38666a2d7060b7f06580bde3c72042cf01de9e42 Mon Sep 17 00:00:00 2001 From: Kasey Rodgers Date: Fri, 4 Nov 2022 10:21:45 -0700 Subject: [PATCH] new approach that tars at upload step --- .github/workflows/release.yml | 138 +++++++++++++++++----------------- 1 file changed, 67 insertions(+), 71 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c8e81653f..dc90f5af5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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