mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 03:07:29 +02:00
Refactor os-check.yml
This commit is contained in:
149
.github/workflows/os-check.yml
vendored
149
.github/workflows/os-check.yml
vendored
@ -8,79 +8,68 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ ubuntu-latest, macos-latest ]
|
os: [ ubuntu-latest, macos-latest ]
|
||||||
name: make_check on ${{ matrix.os }}
|
config: [
|
||||||
|
# Add new configs here
|
||||||
|
'',
|
||||||
|
'--enable-all --enable-asn=template',
|
||||||
|
'--enable-all --enable-asn=original',
|
||||||
|
]
|
||||||
|
name: make check
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Build and test wolfSSL
|
||||||
- if: ${{ matrix.os == 'macos-latest' }}
|
uses: wolfSSL/actions-build-autotools-project@v1
|
||||||
run: brew install automake libtool
|
with:
|
||||||
- run: ./autogen.sh
|
configure: ${{ matrix.config }}
|
||||||
- name: configure make check
|
check: true
|
||||||
run: |
|
|
||||||
./configure
|
|
||||||
make
|
|
||||||
make check
|
|
||||||
make distcheck
|
|
||||||
|
|
||||||
make_check_enable_all:
|
make_user_settings:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ ubuntu-latest, macos-latest ]
|
os: [ ubuntu-latest, macos-latest ]
|
||||||
name: make_check_enable_all on ${{ matrix.os }}
|
user-settings: [
|
||||||
|
# Add new user_settings.h here
|
||||||
|
'examples/configs/user_settings_all.h',
|
||||||
|
]
|
||||||
|
name: make user_setting.h
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Build and test wolfSSL
|
||||||
- if: ${{ matrix.os == 'macos-latest' }}
|
uses: wolfSSL/actions-build-autotools-project@v1
|
||||||
run: brew install automake libtool
|
with:
|
||||||
- run: ./autogen.sh
|
configure: --enable-usersettings
|
||||||
- name: configure all make check
|
check: true
|
||||||
run: |
|
user-settings: ${{ matrix.user-settings }}
|
||||||
./configure --enable-all
|
|
||||||
make
|
|
||||||
make check
|
|
||||||
make distcheck
|
|
||||||
|
|
||||||
make_check_enable_all_asn:
|
make_user_settings_testwolfcrypt:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ ubuntu-latest, macos-latest ]
|
os: [ ubuntu-latest, macos-latest ]
|
||||||
name: make_check_enable_all_asn on ${{ matrix.os }}
|
user-settings: [
|
||||||
|
# Add new user_settings.h here
|
||||||
|
'examples/configs/user_settings_min_ecc.h',
|
||||||
|
'examples/configs/user_settings_wolfboot_keytools.h',
|
||||||
|
'examples/configs/user_settings_wolftpm.h',
|
||||||
|
]
|
||||||
|
name: make user_setting.h (testwolfcrypt only)
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Build and test wolfSSL
|
||||||
- if: ${{ matrix.os == 'macos-latest' }}
|
uses: wolfSSL/actions-build-autotools-project@v1
|
||||||
run: brew install automake libtool
|
with:
|
||||||
- run: ./autogen.sh
|
configure: --enable-usersettings --disable-examples
|
||||||
- name: configure all ASN template
|
check: false
|
||||||
run: |
|
user-settings: ${{ matrix.user-settings }}
|
||||||
./configure --enable-all --enable-asn=template
|
|
||||||
make
|
|
||||||
make check
|
|
||||||
make distcheck
|
|
||||||
|
|
||||||
make_user:
|
- name: Run wolfcrypt/test/testwolfcrypt
|
||||||
strategy:
|
run: ./wolfcrypt/test/testwolfcrypt
|
||||||
matrix:
|
|
||||||
os: [ ubuntu-latest, macos-latest ]
|
|
||||||
name: make_user on ${{ matrix.os }}
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- if: ${{ matrix.os == 'macos-latest' }}
|
|
||||||
run: brew install automake libtool
|
|
||||||
- run: ./autogen.sh
|
|
||||||
- name: make user_settings_all.h
|
|
||||||
run: |
|
|
||||||
cp ./examples/configs/user_settings_all.h user_settings.h
|
|
||||||
./configure --enable-usersettings
|
|
||||||
make
|
|
||||||
make check
|
|
||||||
|
|
||||||
|
# Has to be dedicated function due to the sed call
|
||||||
make_user_all:
|
make_user_all:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ ubuntu-latest, macos-latest ]
|
os: [ ubuntu-latest, macos-latest ]
|
||||||
name: make_user_all on ${{ matrix.os }}
|
name: make user_setting.h (with sed)
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@ -95,60 +84,6 @@ jobs:
|
|||||||
make
|
make
|
||||||
make check
|
make check
|
||||||
|
|
||||||
make_user_minecc:
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os: [ ubuntu-latest, macos-latest ]
|
|
||||||
name: make_user_minecc on ${{ matrix.os }}
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- if: ${{ matrix.os == 'macos-latest' }}
|
|
||||||
run: brew install automake libtool
|
|
||||||
- run: ./autogen.sh
|
|
||||||
- name: user_settings_min_ecc.h
|
|
||||||
run: |
|
|
||||||
cp ./examples/configs/user_settings_min_ecc.h user_settings.h
|
|
||||||
./configure --enable-usersettings --disable-examples
|
|
||||||
make
|
|
||||||
./wolfcrypt/test/testwolfcrypt
|
|
||||||
|
|
||||||
make_user_wolfboot:
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os: [ ubuntu-latest, macos-latest ]
|
|
||||||
name: make_user_wolfboot on ${{ matrix.os }}
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- if: ${{ matrix.os == 'macos-latest' }}
|
|
||||||
run: brew install automake libtool
|
|
||||||
- run: ./autogen.sh
|
|
||||||
- name: user_settings_wolfboot_keytools.h
|
|
||||||
run: |
|
|
||||||
cp ./examples/configs/user_settings_wolfboot_keytools.h user_settings.h
|
|
||||||
./configure --enable-usersettings --disable-examples
|
|
||||||
make
|
|
||||||
./wolfcrypt/test/testwolfcrypt
|
|
||||||
|
|
||||||
make_user_wolftpm:
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os: [ ubuntu-latest, macos-latest ]
|
|
||||||
name: make_user_wolftpm on ${{ matrix.os }}
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- if: ${{ matrix.os == 'macos-latest' }}
|
|
||||||
run: brew install automake libtool
|
|
||||||
- run: ./autogen.sh
|
|
||||||
- name: user_settings_wolftpm.h
|
|
||||||
run: |
|
|
||||||
cp ./examples/configs/user_settings_wolftpm.h user_settings.h
|
|
||||||
./configure --enable-usersettings --disable-examples
|
|
||||||
make
|
|
||||||
./wolfcrypt/test/testwolfcrypt
|
|
||||||
|
|
||||||
windows_build:
|
windows_build:
|
||||||
name: Windows Build Test
|
name: Windows Build Test
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
Reference in New Issue
Block a user