Skip to content

Commit 702e0ee

Browse files
authored
Merge pull request #696 from ejohnstown/update-test
OS Check Test
2 parents 5478fda + c004c15 commit 702e0ee

4 files changed

Lines changed: 86 additions & 80 deletions

File tree

.github/workflows/kyber.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
env:
1010
LIBOQS_REF: 0.10.0
1111
WOLFSSL_REF: v5.7.0-stable
12+
OS_REF: ubuntu-latest
1213

1314
jobs:
1415
build_liboqs:
@@ -20,8 +21,8 @@ jobs:
2021
uses: actions/cache@v4
2122
id: cache-liboqs
2223
with:
23-
path: opt/liboqs/
24-
key: wolfssh-kyber-liboqs-${{ env.LIBOQS_REF }}-${{ runner.os }}
24+
path: build-dir/
25+
key: wolfssh-kyber-liboqs-${{ env.LIBOQS_REF }}-${{ env.OS_REF }}
2526
lookup-only: true
2627

2728
- name: Checkout liboqs
@@ -38,7 +39,7 @@ jobs:
3839
run: |
3940
mkdir build
4041
cd build
41-
cmake -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/opt/liboqs -DOQS_MINIMAL_BUILD=KEM_kyber_512 -DOQS_USE_OPENSSL=0 ..
42+
cmake -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/build-dir -DOQS_MINIMAL_BUILD=KEM_kyber_512 -DOQS_USE_OPENSSL=0 ..
4243
make
4344
make install
4445
@@ -51,8 +52,8 @@ jobs:
5152
uses: actions/cache@v4
5253
id: cache-wolfssl
5354
with:
54-
path: opt/wolfssl/
55-
key: wolfssh-kyber-wolfssl-${{ env.WOLFSSL_REF }}-${{ runner.os }}
55+
path: build-dir/
56+
key: wolfssh-kyber-wolfssl-${{ env.WOLFSSL_REF }}-${{ env.OS_REF }}
5657
lookup-only: true
5758

5859
- name: Checkout, build, and install wolfssl
@@ -66,12 +67,6 @@ jobs:
6667
check: false
6768
install: true
6869

69-
- shell: bash
70-
if: steps.cache-wolfssl.outputs.cache-hit != 'true'
71-
run: |
72-
mkdir -p opt
73-
mv build-dir opt/wolfssl
74-
7570
build_wolfssh:
7671
name: Build wolfssh
7772
runs-on: ubuntu-latest
@@ -81,21 +76,21 @@ jobs:
8176
- name: Checking cache for liboqs
8277
uses: actions/cache@v4
8378
with:
84-
path: opt/liboqs/
85-
key: wolfssh-kyber-liboqs-${{ env.LIBOQS_REF }}-${{ runner.os }}
79+
path: build-dir/
80+
key: wolfssh-kyber-liboqs-${{ env.LIBOQS_REF }}-${{ env.OS_REF }}
8681
fail-on-cache-miss: true
8782

8883
- name: Checking cache for wolfssl
8984
uses: actions/cache@v4
9085
with:
91-
path: opt/wolfssl/
92-
key: wolfssh-kyber-wolfssl-${{ env.WOLFSSL_REF }}-${{ runner.os }}
86+
path: build-dir/
87+
key: wolfssh-kyber-wolfssl-${{ env.WOLFSSL_REF }}-${{ env.OS_REF }}
9388
fail-on-cache-miss: true
9489

9590
- name: Checkout, build, and test wolfssh
9691
uses: wolfSSL/actions-build-autotools-project@v1
9792
with:
9893
repository: wolfssl/wolfssh
9994
path: wolfssh
100-
configure: --with-liboqs LDFLAGS="-L${{ github.workspace }}/opt/liboqs/lib -L${{ github.workspace }}/opt/wolfssl/lib" CPPFLAGS="-I${{ github.workspace }}/opt/liboqs/include -I${{ github.workspace }}/opt/wolfssl/include"
95+
configure: --with-liboqs=${{ github.workspace }}/build-dir --with-wolfssl=${{ github.workspace }}/build-dir
10196
check: true

.github/workflows/macos-check.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/os-check.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: OS Check Test
2+
3+
on:
4+
push:
5+
branches: [ '*' ]
6+
pull_request:
7+
branches: [ '*' ]
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
env:
14+
WOLFSSL_REF: v5.7.0-stable
15+
16+
jobs:
17+
build_wolfssl:
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
os: [ ubuntu-latest, macos-latest ]
22+
name: Build wolfssl
23+
runs-on: ${{ matrix.os }}
24+
timeout-minutes: 4
25+
steps:
26+
- name: Checking cache for wolfssl
27+
uses: actions/cache@v4
28+
id: cache-wolfssl
29+
with:
30+
path: build-dir/
31+
key: wolfssh-os-check-wolfssl-${{ env.WOLFSSL_REF }}-${{ matrix.os }}
32+
lookup-only: true
33+
34+
- name: Checkout, build, and install wolfssl
35+
if: steps.cache-wolfssl.outputs.cache-hit != 'true'
36+
uses: wolfSSL/actions-build-autotools-project@v1
37+
with:
38+
repository: wolfssl/wolfssl
39+
ref: ${{ env.WOLFSSL_REF }}
40+
path: wolfssl
41+
configure: --enable-all
42+
check: false
43+
install: true
44+
45+
build_wolfssh:
46+
strategy:
47+
fail-fast: false
48+
matrix:
49+
os: [ ubuntu-latest, macos-latest ]
50+
config: [
51+
'',
52+
'--enable-all',
53+
'--enable-sftp',
54+
'--enable-scp',
55+
'--enable-shell',
56+
]
57+
name: Build wolfssh
58+
runs-on: ${{ matrix.os }}
59+
timeout-minutes: 4
60+
needs: build_wolfssl
61+
steps:
62+
- name: Checking cache for wolfssl
63+
uses: actions/cache@v4
64+
with:
65+
path: build-dir/
66+
key: wolfssh-os-check-wolfssl-${{ env.WOLFSSL_REF }}-${{ matrix.os }}
67+
fail-on-cache-miss: true
68+
69+
- name: Checkout, build, and test wolfssh
70+
uses: wolfSSL/actions-build-autotools-project@v1
71+
with:
72+
repository: wolfssl/wolfssh
73+
path: wolfssh
74+
configure: ${{ matrix.config }} LDFLAGS="-L${{ github.workspace }}/build-dir/lib" CPPFLAGS="-I${{ github.workspace }}/build-dir/include"
75+
check: true

.github/workflows/ubuntu-check.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)