-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from dgarske/more_testing
Additional CI tests
- Loading branch information
Showing
20 changed files
with
180 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: wolfPKCS11 Build Workflow | ||
|
||
on: | ||
|
||
workflow_call: | ||
inputs: | ||
config: | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
#pull wolfPKCS11 | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
#setup wolfssl | ||
- uses: actions/checkout@v3 | ||
with: | ||
repository: wolfssl/wolfssl | ||
path: wolfssl | ||
- name: wolfssl autogen | ||
working-directory: ./wolfssl | ||
run: ./autogen.sh | ||
- name: wolfssl configure | ||
working-directory: ./wolfssl | ||
run: | | ||
./configure --enable-cryptonly --enable-aescfb --enable-rsapss --enable-keygen --enable-pwdbased --enable-scrypt \ | ||
C_EXTRA_FLAGS="-DWOLFSSL_PUBLIC_MP -DWC_RSA_DIRECT" | ||
- name: wolfssl make install | ||
working-directory: ./wolfssl | ||
run: make | ||
- name: wolfssl make install | ||
working-directory: ./wolfssl | ||
run: | | ||
sudo make install | ||
sudo ldconfig | ||
#setup wolfPKCS11 | ||
- name: wolfpkcs11 autogen | ||
run: ./autogen.sh | ||
- name: wolfpkcs11 configure | ||
run: ./configure ${{inputs.config}} | ||
- name: wolfpkcs11 make | ||
run: make | ||
- name: wolfpkcs11 make check | ||
run: make check | ||
- name: wolfpkcs11 make install | ||
run: sudo make install | ||
- name: wolfpkcs11 make dist | ||
run: make dist | ||
|
||
# capture logs on failure | ||
- name: Upload failure logs | ||
if: failure() || cancelled() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wolfpkcs11-test-logs | ||
path: | | ||
test-suite.log | ||
retention-days: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.