ci: export openssl_dir in macos

This commit is contained in:
Jozef Steinhübl 2024-07-21 15:02:45 +02:00
parent a1865702e3
commit e67bfbf9ae
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F

View file

@ -35,11 +35,11 @@ jobs:
- target: x86_64-apple-darwin - target: x86_64-apple-darwin
runner: macos-latest runner: macos-latest
archive: tar.gz archive: tar.gz
bootstrap: brew install openssl pkg-config bootstrap: echo 'export OPENSSL_DIR=$(brew --prefix openssl@3)' >> $GITHUB_ENV
- target: aarch64-apple-darwin - target: aarch64-apple-darwin
runner: macos-latest runner: macos-latest
archive: tar.gz archive: tar.gz
bootstrap: brew install openssl pkg-config bootstrap: echo 'export OPENSSL_DIR=$(brew --prefix openssl@3)' >> $GITHUB_ENV
- target: x86_64-pc-windows-msvc - target: x86_64-pc-windows-msvc
runner: windows-latest runner: windows-latest
@ -58,12 +58,7 @@ jobs:
run: ${{ matrix.bootstrap }} run: ${{ matrix.bootstrap }}
- name: build binary - name: build binary
if: ${{ matrix.runner == 'macos-latest' }} run: cargo build -p discord-presence-lsp --verbose --locked --release --target ${{ matrix.target }}
run: OPENSSL_DIR=$(brew --prefix openssl@1.1) cargo build -p discord-presence-lsp --verbose --locked --release --target ${{ matrix.target }}
- name: build binary
if: ${{ matrix.runner != 'macos-latest' }}
run: OPENSSL_DIR=$(brew --prefix openssl@1.1) cargo build -p discord-presence-lsp --verbose --locked --release --target ${{ matrix.target }}
- name: prepare for upload - name: prepare for upload
shell: bash shell: bash