Skip to content

Commit 8352093

Browse files
authored
Merge pull request #194 from padelsbach/wp_remove_libssl_dev
Ensure yamls use header files from wolfProvider, rather than from the system
2 parents 65624f3 + 62483a5 commit 8352093

5 files changed

Lines changed: 29 additions & 11 deletions

File tree

.github/workflows/build-wolfprovider.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ jobs:
2222
outputs:
2323
cache_key: wolfprov-${{ inputs.wolfssl_ref }}-${{ inputs.openssl_ref }}-${{ github.sha }}
2424
steps:
25-
- name: Install build dependencies
26-
run: |
27-
sudo apt-get update
28-
sudo apt-get install -y build-essential autoconf libtool pkg-config
29-
3025
- name: Checkout wolfProvider
3126
uses: actions/checkout@v4
3227
with:

.github/workflows/cjose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
working-directory: cjose
7171
run: |
7272
# Configure with OpenSSL
73-
./configure CFLAGS="-Wno-error=deprecated-declarations" --with-openssl=/git/wolfProvider/openssl-install
73+
./configure CFLAGS="-Wno-error=deprecated-declarations" --with-openssl=$GITHUB_WORKSPACE/openssl-install
7474
7575
# Build cjose
7676
make

.github/workflows/libfido2.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
concurrency:
88
group: ${{ github.workflow }}-${{ github.ref }}
99
cancel-in-progress: true
10+
1011
jobs:
1112
build_wolfprovider:
1213
uses: ./.github/workflows/build-wolfprovider.yml
@@ -17,6 +18,7 @@ jobs:
1718
matrix:
1819
wolfssl_ref: [ 'master', 'v5.8.0-stable' ]
1920
openssl_ref: [ 'openssl-3.5.0' ]
21+
2022
test_libfido2:
2123
runs-on: ubuntu-22.04
2224
needs: build_wolfprovider
@@ -35,6 +37,7 @@ jobs:
3537
uses: actions/checkout@v4
3638
with:
3739
fetch-depth: 1
40+
3841
- name: Retrieving wolfSSL/wolfProvider from cache
3942
uses: actions/cache/restore@v4
4043
id: wolfprov-cache
@@ -47,25 +50,32 @@ jobs:
4750
openssl-install/bin
4851
key: wolfprov-${{ matrix.wolfssl_ref }}-${{ matrix.openssl_ref }}-${{ github.sha }}
4952
fail-on-cache-miss: true
53+
5054
- name: Install test dependencies
5155
run: |
5256
sudo apt-get update
53-
sudo apt-get install -y build-essential cmake pkg-config libssl-dev libudev-dev zlib1g-dev libcbor-dev libpcsclite-dev pcscd
57+
sudo apt-get install -y build-essential cmake pkg-config libudev-dev \
58+
zlib1g-dev libcbor-dev libpcsclite-dev pcscd
59+
5460
- name: Checkout libfido2
5561
uses: actions/checkout@v4
5662
with:
5763
repository: Yubico/libfido2
5864
path: libfido2_repo
5965
ref: ${{ matrix.libfido2_ref }}
6066
fetch-depth: 1
67+
6168
- name: Build and install libfido2
6269
working-directory: libfido2_repo
6370
run: |
71+
# Set up the environment for wolfProvider
72+
source $GITHUB_WORKSPACE/scripts/env-setup
6473
mkdir build
6574
cd build
6675
cmake -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/libfido2-install ..
6776
make -j$(nproc)
6877
make install
78+
6979
- name: Run libfido2 tests
7080
working-directory: libfido2_repo/build
7181
run: |

.github/workflows/liboauth2.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- name: Install liboauth2 dependencies
5757
run: |
5858
sudo apt-get update
59-
sudo apt-get install -y libssl-dev libcurl4-openssl-dev libjansson-dev \
59+
sudo apt-get install -y libcurl4-openssl-dev libjansson-dev \
6060
libcjose-dev pkg-config build-essential apache2-dev libhiredis-dev \
6161
libmemcached-dev autotools-dev autoconf automake libtool check
6262
@@ -65,12 +65,23 @@ jobs:
6565
with:
6666
repository: wolfssl/osp
6767
path: osp
68+
fetch-depth: 1
69+
70+
- name: Checkout liboauth2
71+
uses: actions/checkout@v4
72+
with:
73+
repository: OpenIDC/liboauth2
74+
ref: ${{ matrix.liboauth2_ref }}
75+
path: liboauth2
76+
fetch-depth: 1
6877

6978
- name: Build liboauth2
79+
working-directory: liboauth2
7080
run: |
71-
git clone https://github.com/OpenIDC/liboauth2.git
72-
cd liboauth2
73-
git checkout ${{ matrix.liboauth2_ref }}
81+
# Set up the environment for wolfProvider
82+
source $GITHUB_WORKSPACE/scripts/env-setup
83+
84+
# Apply patch from OSP repo
7485
patch -p1 < $GITHUB_WORKSPACE/osp/wolfProvider/liboauth2/liboauth2-${{ matrix.liboauth2_ref }}-wolfprov.patch
7586
7687
autoreconf -fiv

.github/workflows/openssh.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,15 @@ jobs:
6262
with:
6363
repository: wolfssl/osp
6464
path: osp
65+
fetch-depth: 1
6566

6667
- name: Checkout openssh
6768
uses: actions/checkout@v4
6869
with:
6970
repository: openssh/openssh-portable
7071
path: openssh-portable
7172
ref: ${{ matrix.openssh_ref }}
73+
fetch-depth: 1
7274

7375
- name: Build and Test openssh-portable
7476
working-directory: openssh-portable

0 commit comments

Comments
 (0)