-
Notifications
You must be signed in to change notification settings - Fork 15
45 lines (36 loc) · 1.17 KB
/
preFips.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Build FIPS zips
on:
pull_request_target
jobs:
buildFIPSReady:
name: Build wolfSSL FIPS Ready ZIP
runs-on: ubuntu-latest
steps:
# Set up SSH key so fips-check.sh can clone from fips repo
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.FIPS_REPO_SSH_KEY }}
# Clone wolfssl
- uses: actions/checkout@v4
with:
repository: wolfssl/wolfssl
ref: master
fetch-depth: 1
path: wolfssl
# Install dependencies (automake, libtool)
- shell: bash
if: runner.os == 'macOS'
run: brew install automake libtool
# Build FIPS Ready directory
- shell: bash
working-directory: wolfssl
run: ./fips-check.sh fips-ready keep noautogen
# zip newly generated FIPS directory
- shell: bash
run: zip -r wolfssl-master-fips-ready.zip XXX-fips-test
# Upload artifact to make it available to later workflows
- name: Upload wolfssl-master-fips-ready.zip
uses: actions/upload-artifact@v4
with:
name: wolfssl-master-fips-ready.zip
path: wolfssl-master-fips-ready.zip