Merge pull request #378 from Shopify/allocate-map-in-constructor #73
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Package and release on Github | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-debs: | |
strategy: | |
matrix: | |
runner: [ubuntu-latest, shopify-ubuntu-arm64] | |
runs-on: ${{ matrix.runner }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.16 | |
- name: Building Ghostferry | |
run: .github/workflows/build-deb.sh | |
- name: Upload debs | |
uses: actions/upload-artifact@v4 | |
with: | |
name: debs-${{ github.sha }}-${{ matrix.runner }} | |
path: build/ghostferry* | |
release: | |
runs-on: ubuntu-latest | |
needs: build-debs | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Fetch uploaded artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
pattern: debs-${{ github.sha }}-* | |
merge-multiple: true | |
- name: shasum | |
shell: bash | |
run: | | |
sha256sum *.deb > ghostferry-$GITHUB_SHA.sha256sum | |
echo "sha256sum:" | |
cat ghostferry-$GITHUB_SHA.sha256sum | |
- name: Releasing Ghostferry to Github | |
run: gh release create --target ${GITHUB_REF#refs/heads/} -p release-${GITHUB_SHA::7} ghostferry* | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |