From e67bfbf9aee4d70070d866876adc6462c1ba3570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Sun, 21 Jul 2024 15:02:45 +0200 Subject: [PATCH] ci: export openssl_dir in macos --- .github/workflows/release.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e1a6ee1..3a539d3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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