Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/release-cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ jobs:
name: Release Artifacts on macOS
needs:
- create-release
runs-on: macos-15
strategy:
matrix:
os: [macos-15-intel, macos-15]
runs-on: ${{ matrix.os }}
timeout-minutes: 45
steps:
- name: Install Rust Toolchain
Expand All @@ -153,8 +156,8 @@ jobs:
with:
upload_url: ${{ env.UPLOAD_URL }}
asset_path: ./cli/target/release/dbdev.tar.gz
asset_name: dbdev-${{ github.ref_name }}-macos-arm64.tar.gz
asset_content_type: application/${{ matrix.box.content-type }}
asset_name: dbdev-${{ github.ref_name }}-macos-${{ runner.arch == 'X64' && 'amd64' || 'arm64' }}.tar.gz
asset_content_type: application/gzip

build-windows:
name: Release Artifacts on Windows
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/release-homebrew-tap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,19 @@ jobs:
tag: ${{ inputs.tag }}
fileName: "dbdev-${{ inputs.tag }}-macos-arm64.tar.gz"

- name: Download macOS AMD64 package
uses: robinraju/release-downloader@daf26c55d821e836577a15f77d86ddc078948b05 # v1
with:
repository: "supabase/dbdev"
tag: ${{ inputs.tag }}
fileName: "dbdev-${{ inputs.tag }}-macos-amd64.tar.gz"

- name: Generate Manifest File
run: |
linux_amd64_hash=`shasum -a 256 dbdev-${{ inputs.tag }}-linux-amd64.tar.gz | cut -d" " -f1`
linux_arm64_hash=`shasum -a 256 dbdev-${{ inputs.tag }}-linux-arm64.tar.gz | cut -d" " -f1`
macos_arm64_hash=`shasum -a 256 dbdev-${{ inputs.tag }}-macos-arm64.tar.gz | cut -d" " -f1`
macos_amd64_hash=`shasum -a 256 dbdev-${{ inputs.tag }}-macos-amd64.tar.gz | cut -d" " -f1`

version="${{ steps.vars.outputs.version }}"

Expand All @@ -88,8 +96,8 @@ jobs:
echo ' end' >> dbdev.rb
echo ' end' >> dbdev.rb
echo ' if Hardware::CPU.intel?' >> dbdev.rb
echo " url \"https://github.com/supabase/dbdev/releases/download/v${version}/dbdev-v${version}-macos-arm64.tar.gz\"" >> dbdev.rb
echo " sha256 \"${macos_arm64_hash}\"" >> dbdev.rb
echo " url \"https://github.com/supabase/dbdev/releases/download/v${version}/dbdev-v${version}-macos-amd64.tar.gz\"" >> dbdev.rb
echo " sha256 \"${macos_amd64_hash}\"" >> dbdev.rb
echo '' >> dbdev.rb
echo ' def install' >> dbdev.rb
echo ' bin.install "dbdev"' >> dbdev.rb
Expand Down
Loading