Skip to content

Commit

Permalink
Fix workflows not finding OpenSSL installation (#20)
Browse files Browse the repository at this point in the history
* Fix workflows not finding OpenSSL installation

* Build on all branches
  • Loading branch information
D4isDAVID authored Sep 30, 2024
1 parent 6a026f2 commit c5ef2a0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Rust

on:
push:
branches: ["duck"]
pull_request:
branches: ["duck"]
on: [push, pull_request]

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c5ef2a0

Please sign in to comment.