diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index dda5af8..a71b008 100755 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -36,6 +36,10 @@ jobs: - uses: dtolnay/rust-toolchain@stable with: targets: ${{ matrix.target }} + - if: matrix.os == 'windows-latest' + shell: bash + run: | + echo "OPENSSL_DIR=C:\Program Files\OpenSSL" >> $GITHUB_ENV - name: Build binary and create archive shell: bash diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index da0da99..192e39c 100755 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,10 +1,6 @@ name: Rust -on: - push: - branches: ["duck"] - pull_request: - branches: ["duck"] +on: [push, pull_request] env: CARGO_TERM_COLOR: always @@ -37,6 +33,10 @@ jobs: - uses: dtolnay/rust-toolchain@stable with: targets: ${{ matrix.target }} + - if: matrix.os == 'windows-latest' + shell: bash + run: | + echo "OPENSSL_DIR=C:\Program Files\OpenSSL" >> $GITHUB_ENV - name: Build run: cargo build --verbose - name: Run tests