Skip to content

Commit

Permalink
[Chore] Update bottle workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
serokell-bot committed Oct 15, 2024
1 parent 70c2cbf commit 4e7bea5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-bottles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ { id: macos-12, name: "monterey" } ]
os: [ { id: macos-13, name: "ventura" } ]
# we don't bottle meta-formulas that contain only services
formula: [tezos-smart-rollup-wasm-debugger, tezos-smart-rollup-node, tezos-dac-client, tezos-dac-node, tezos-dal-node, tezos-signer, tezos-codec, tezos-client, tezos-admin-client, tezos-node, tezos-accuser-PsParisC, tezos-baker-PsParisC, tezos-accuser-PtParisB, tezos-baker-PtParisB, tezos-accuser-Proxford, tezos-baker-Proxford]
steps:
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
if: steps.check-built.outcome == 'failure'
uses: actions/upload-artifact@v4
with:
name: homebrew-bottles-${{ matrix.os }}
name: ${{ matrix.formula }}-${{ github.run_id }}
path: '*.bottle.*'

- name: Attach the bottle to the release
Expand All @@ -64,7 +64,7 @@ jobs:
run: gh release upload "${{ env.tag }}" *.bottle.*

sync-hashes:
runs-on: macos-12
runs-on: macos-13
needs: build-bottles
steps:
- name: Checkout
Expand All @@ -86,12 +86,12 @@ jobs:

# It's possible we have had to rerun the building workflow, skipping some jobs and
# erasing the previously built bottles, so we use the release to download them all
- name: Download Monterey bottles from the release
- name: Download Ventura bottles from the release
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: gh release download "${{ github.ref_name }}" -p "*.monterey.bottle.tar.gz" -D "./Monterey"
run: gh release download "${{ github.ref_name }}" -p "*.ventura.bottle.tar.gz" -D "./Ventura"

- name: Add bottle hashes to formulae
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: ./scripts/sync-bottle-hashes.sh "${{ github.ref_name }}" "Monterey"
run: ./scripts/sync-bottle-hashes.sh "${{ github.ref_name }}" "Ventura"

0 comments on commit 4e7bea5

Please sign in to comment.