Skip to content

Commit

Permalink
build macos x64 with macos-12 runner
Browse files Browse the repository at this point in the history
  • Loading branch information
matthme committed Jul 2, 2024
1 parent 2c7e0f9 commit ff3d0df
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 17 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/holochain-binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [windows-2019, macos-latest, ubuntu-22.04]
platform: [windows-2019, macos-latest, macos-12, ubuntu-22.04]
permissions:
contents: write
runs-on: ${{ matrix.platform }}
Expand Down Expand Up @@ -55,26 +55,31 @@ jobs:
gh release upload "holochain-binaries-${{ inputs.holochain-version }}" "holochain-v${{ inputs.holochain-version }}-x86_64-pc-windows-msvc.exe"
- name: setup binaries (macos only)
- name: setup binaries (macos-latest only)
if: matrix.platform == 'macos-latest'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
rustup target add x86_64-apple-darwin
rustup target add aarch64-apple-darwin
cargo install holochain --version ${{ inputs.holochain-version }} --target x86_64-apple-darwin --locked
HOLOCHAIN_PATH=$(which holochain)
cp $HOLOCHAIN_PATH holochain-v${{ inputs.holochain-version }}-x86_64-apple-darwin
gh release upload "holochain-binaries-${{ inputs.holochain-version }}" "holochain-v${{ inputs.holochain-version }}-x86_64-apple-darwin"
cargo install holochain --version ${{ inputs.holochain-version }} --target aarch64-apple-darwin --locked
HOLOCHAIN_PATH=$(which holochain)
cp $HOLOCHAIN_PATH holochain-v${{ inputs.holochain-version }}-aarch64-apple-darwin
gh release upload "holochain-binaries-${{ inputs.holochain-version }}" "holochain-v${{ inputs.holochain-version }}-aarch64-apple-darwin"
- name: setup binaries (macos-12 only)
if: matrix.platform == 'macos-12'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
rustup target add x86_64-apple-darwin
cargo install holochain --version ${{ inputs.holochain-version }} --target x86_64-apple-darwin --locked
HOLOCHAIN_PATH=$(which holochain)
cp $HOLOCHAIN_PATH holochain-v${{ inputs.holochain-version }}-x86_64-apple-darwin
gh release upload "holochain-binaries-${{ inputs.holochain-version }}" "holochain-v${{ inputs.holochain-version }}-x86_64-apple-darwin"
- name: setup binaries (ubuntu only)
if: matrix.platform == 'ubuntu-22.04'
Expand Down
23 changes: 15 additions & 8 deletions .github/workflows/lair-binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [windows-2019, macos-latest, ubuntu-22.04]
platform: [windows-2019, macos-latest, macos-12, ubuntu-22.04]
permissions:
contents: write
runs-on: ${{ matrix.platform }}
Expand Down Expand Up @@ -48,24 +48,31 @@ jobs:
$LkPath = Get-Command lair-keystore | Select-Object -ExpandProperty Definition
Copy-Item $LkPath -Destination "lair-keystore-v${{ inputs.lair-version }}-x86_64-pc-windows-msvc.exe"
gh release upload "lair-binaries-${{ inputs.lair-version }}" "lair-keystore-v${{ inputs.lair-version }}-x86_64-pc-windows-msvc.exe"
- name: setup binaries (macos only)
- name: setup binaries (macos-latest only)
if: matrix.platform == 'macos-latest'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
rustup target add x86_64-apple-darwin
rustup target add aarch64-apple-darwin
cargo install lair_keystore --version ${{ inputs.lair-version }} --target x86_64-apple-darwin
LAIR_PATH=$(which lair-keystore)
cp $LAIR_PATH lair-keystore-v${{ inputs.lair-version }}-x86_64-apple-darwin
gh release upload "lair-binaries-${{ inputs.lair-version }}" "lair-keystore-v${{ inputs.lair-version }}-x86_64-apple-darwin"
cargo install lair_keystore --version ${{ inputs.lair-version }} --target aarch64-apple-darwin
LAIR_PATH=$(which lair-keystore)
cp $LAIR_PATH lair-keystore-v${{ inputs.lair-version }}-aarch64-apple-darwin
gh release upload "lair-binaries-${{ inputs.lair-version }}" "lair-keystore-v${{ inputs.lair-version }}-aarch64-apple-darwin"
- name: setup binaries (macos-12 only)
if: matrix.platform == 'macos-12'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
rustup target add x86_64-apple-darwin
cargo install lair_keystore --version ${{ inputs.lair-version }} --target x86_64-apple-darwin
LAIR_PATH=$(which lair-keystore)
cp $LAIR_PATH lair-keystore-v${{ inputs.lair-version }}-x86_64-apple-darwin
gh release upload "lair-binaries-${{ inputs.lair-version }}" "lair-keystore-v${{ inputs.lair-version }}-x86_64-apple-darwin"
- name: setup binaries (ubuntu only)
if: matrix.platform == 'ubuntu-22.04'
Expand Down

0 comments on commit ff3d0df

Please sign in to comment.