mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
Combine ubuntu and macos tests to ensure the same thing is run
This commit is contained in:
137
.github/workflows/os-check.yml
vendored
137
.github/workflows/os-check.yml
vendored
@@ -10,11 +10,16 @@ on:
|
|||||||
branches: [ '*' ]
|
branches: [ '*' ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
macos_test1:
|
make_check:
|
||||||
runs-on: macos-latest
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ ubunut-latest, macos-latest ]
|
||||||
|
name: make_check on ${{ matrix.os }}
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: brew install automake libtool
|
- if: ${{ matrix.os == 'macos-latest' }}
|
||||||
|
run: brew install automake libtool
|
||||||
- run: ./autogen.sh
|
- run: ./autogen.sh
|
||||||
- name: configure make check
|
- name: configure make check
|
||||||
run: |
|
run: |
|
||||||
@@ -23,11 +28,16 @@ jobs:
|
|||||||
make check
|
make check
|
||||||
make distcheck
|
make distcheck
|
||||||
|
|
||||||
macos_test2:
|
make_check_enable_all:
|
||||||
runs-on: macos-latest
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ ubunut-latest, macos-latest ]
|
||||||
|
name: make_check_enable_all on ${{ matrix.os }}
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: brew install automake libtool
|
- if: ${{ matrix.os == 'macos-latest' }}
|
||||||
|
run: brew install automake libtool
|
||||||
- run: ./autogen.sh
|
- run: ./autogen.sh
|
||||||
- name: configure all make check
|
- name: configure all make check
|
||||||
run: |
|
run: |
|
||||||
@@ -36,11 +46,16 @@ jobs:
|
|||||||
make check
|
make check
|
||||||
make distcheck
|
make distcheck
|
||||||
|
|
||||||
macos_test3:
|
make_check_enable_all_asn:
|
||||||
runs-on: macos-latest
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ ubunut-latest, macos-latest ]
|
||||||
|
name: make_check_enable_all_asn on ${{ matrix.os }}
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: brew install automake libtool
|
- if: ${{ matrix.os == 'macos-latest' }}
|
||||||
|
run: brew install automake libtool
|
||||||
- run: ./autogen.sh
|
- run: ./autogen.sh
|
||||||
- name: configure all ASN template
|
- name: configure all ASN template
|
||||||
run: |
|
run: |
|
||||||
@@ -49,11 +64,16 @@ jobs:
|
|||||||
make check
|
make check
|
||||||
make distcheck
|
make distcheck
|
||||||
|
|
||||||
macos_test4:
|
make_user:
|
||||||
runs-on: macos-latest
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ ubunut-latest, macos-latest ]
|
||||||
|
name: make_user on ${{ matrix.os }}
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: brew install automake libtool
|
- if: ${{ matrix.os == 'macos-latest' }}
|
||||||
|
run: brew install automake libtool
|
||||||
- run: ./autogen.sh
|
- run: ./autogen.sh
|
||||||
- name: make user_settings_all.h
|
- name: make user_settings_all.h
|
||||||
run: |
|
run: |
|
||||||
@@ -62,11 +82,16 @@ jobs:
|
|||||||
make
|
make
|
||||||
make check
|
make check
|
||||||
|
|
||||||
macos_test5:
|
make_user_all:
|
||||||
runs-on: macos-latest
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ ubunut-latest, macos-latest ]
|
||||||
|
name: make_user_all on ${{ matrix.os }}
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: brew install automake libtool
|
- if: ${{ matrix.os == 'macos-latest' }}
|
||||||
|
run: brew install automake libtool
|
||||||
- run: ./autogen.sh
|
- run: ./autogen.sh
|
||||||
- name: user_settings_all.h with compatibility layer
|
- name: user_settings_all.h with compatibility layer
|
||||||
run: |
|
run: |
|
||||||
@@ -76,11 +101,16 @@ jobs:
|
|||||||
make
|
make
|
||||||
make check
|
make check
|
||||||
|
|
||||||
macos_test6:
|
make_user_minecc:
|
||||||
runs-on: macos-latest
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ ubunut-latest, macos-latest ]
|
||||||
|
name: make_user_minecc on ${{ matrix.os }}
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: brew install automake libtool
|
- if: ${{ matrix.os == 'macos-latest' }}
|
||||||
|
run: brew install automake libtool
|
||||||
- run: ./autogen.sh
|
- run: ./autogen.sh
|
||||||
- name: user_settings_min_ecc.h
|
- name: user_settings_min_ecc.h
|
||||||
run: |
|
run: |
|
||||||
@@ -89,11 +119,16 @@ jobs:
|
|||||||
make
|
make
|
||||||
./wolfcrypt/test/testwolfcrypt
|
./wolfcrypt/test/testwolfcrypt
|
||||||
|
|
||||||
macos_test7:
|
make_user_wolfboot:
|
||||||
runs-on: macos-latest
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ ubunut-latest, macos-latest ]
|
||||||
|
name: make_user_wolfboot on ${{ matrix.os }}
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: brew install automake libtool
|
- if: ${{ matrix.os == 'macos-latest' }}
|
||||||
|
run: brew install automake libtool
|
||||||
- run: ./autogen.sh
|
- run: ./autogen.sh
|
||||||
- name: user_settings_wolfboot_keytools.h
|
- name: user_settings_wolfboot_keytools.h
|
||||||
run: |
|
run: |
|
||||||
@@ -102,65 +137,6 @@ jobs:
|
|||||||
make
|
make
|
||||||
./wolfcrypt/test/testwolfcrypt
|
./wolfcrypt/test/testwolfcrypt
|
||||||
|
|
||||||
ubuntu_build:
|
|
||||||
name: Ubuntu Build Test
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: autogen
|
|
||||||
run: ./autogen.sh
|
|
||||||
|
|
||||||
- name: configure make check
|
|
||||||
run: |
|
|
||||||
./configure
|
|
||||||
make
|
|
||||||
make check
|
|
||||||
make distcheck
|
|
||||||
|
|
||||||
- name: configure all make check
|
|
||||||
run: |
|
|
||||||
./configure --enable-all
|
|
||||||
make
|
|
||||||
make check
|
|
||||||
make distcheck
|
|
||||||
|
|
||||||
- name: configure all ASN template
|
|
||||||
run: |
|
|
||||||
./configure --enable-all --enable-asn=template
|
|
||||||
make
|
|
||||||
make check
|
|
||||||
make distcheck
|
|
||||||
|
|
||||||
- name: make user_settings_all.h
|
|
||||||
run: |
|
|
||||||
cp ./examples/configs/user_settings_all.h user_settings.h
|
|
||||||
./configure --enable-usersettings
|
|
||||||
make
|
|
||||||
make check
|
|
||||||
|
|
||||||
- name: user_settings_all.h with compatibility layer
|
|
||||||
run: |
|
|
||||||
cp ./examples/configs/user_settings_all.h user_settings.h
|
|
||||||
sed -i -e "s/if 0/if 1/" user_settings.h
|
|
||||||
./configure --enable-usersettings
|
|
||||||
make
|
|
||||||
make check
|
|
||||||
|
|
||||||
- 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
|
|
||||||
|
|
||||||
- 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
|
|
||||||
|
|
||||||
windows_build:
|
windows_build:
|
||||||
name: Windows Build Test
|
name: Windows Build Test
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
@@ -188,4 +164,3 @@ jobs:
|
|||||||
# Add additional options to the MSBuild command line here (like platform or verbosity level).
|
# Add additional options to the MSBuild command line here (like platform or verbosity level).
|
||||||
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
|
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
|
||||||
run: msbuild /m /p:PlatformToolset=v142 /p:Platform=${{env.BUILD_PLATFORM}} /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
|
run: msbuild /m /p:PlatformToolset=v142 /p:Platform=${{env.BUILD_PLATFORM}} /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user