Skip to content

Commit e4d28c5

Browse files
authored
fix macos workflow (#94)
1 parent 7e58ee6 commit e4d28c5

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/build.yml

+16-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Build Binaries
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
debug:
7+
description: enable tmate debug
8+
default: false
9+
type: boolean
510
push:
611
paths:
712
- "src/**"
@@ -27,7 +32,11 @@ jobs:
2732
id: mac
2833
os: macos-latest
2934
executable: 'geode'
30-
prebuild: 'export OPENSSL_STATIC=1'
35+
prebuild: |
36+
brew fetch --force --bottle-tag=ventura openssl@3
37+
brew reinstall $(brew --cache --bottle-tag=ventura openssl@3)
38+
export OPENSSL_STATIC=1
39+
export OPENSSL_DIR="/opt/homebrew/opt/openssl@3"
3140
target: x86_64-apple-darwin
3241

3342
- name: "Linux"
@@ -70,6 +79,12 @@ jobs:
7079
name: geode-cli-${{ matrix.config.id }}
7180
path: ./out/
7281

82+
- name: Setup tmate session
83+
if: ${{ failure() && inputs.debug && matrix.config.id == 'mac' }}
84+
uses: mxschmitt/action-tmate@v3
85+
with:
86+
limit-access-to-actor: true
87+
7388
publish:
7489
name: Publish
7590
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)