Skip to content

Commit

Permalink
ci: export openssl_dir in macos
Browse files Browse the repository at this point in the history
  • Loading branch information
xhyrom committed Jul 21, 2024
1 parent a186570 commit e67bfbf
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:
- target: x86_64-apple-darwin
runner: macos-latest
archive: tar.gz
bootstrap: brew install openssl pkg-config
bootstrap: echo 'export OPENSSL_DIR=$(brew --prefix openssl@3)' >> $GITHUB_ENV
- target: aarch64-apple-darwin
runner: macos-latest
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
runner: windows-latest
Expand All @@ -58,12 +58,7 @@ jobs:
run: ${{ matrix.bootstrap }}

- 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: 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 }}
run: cargo build -p discord-presence-lsp --verbose --locked --release --target ${{ matrix.target }}

- name: prepare for upload
shell: bash
Expand Down

0 comments on commit e67bfbf

Please sign in to comment.