Merge pull request #5988 from bandi13/parallelOSBuilds

Parallel os builds
This commit is contained in:
David Garske
2023-01-19 09:59:07 -08:00
committed by GitHub
2 changed files with 77 additions and 70 deletions

View File

@ -1,6 +1,7 @@
name: Test Espressif examples on various official Docker containers
concurrency:
group: ${{ github.ref }}
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
push:

View File

@ -1,6 +1,7 @@
name: GitHub Action Tests
name: Ubuntu-Macos-Windows Tests
concurrency:
group: ${{ github.ref }}
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
push:
@ -9,18 +10,17 @@ on:
branches: [ '*' ]
jobs:
macos_build:
name: macOS Build Test
runs-on: macos-latest
make_check:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
name: make_check on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: brew
- if: ${{ matrix.os == 'macos-latest' }}
run: brew install automake libtool
- name: autogen
run: ./autogen.sh
- run: ./autogen.sh
- name: configure make check
run: |
./configure
@ -28,65 +28,17 @@ jobs:
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
ubuntu_build:
name: Ubuntu Build Test
runs-on: ubuntu-latest
make_check_enable_all:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
name: make_check_enable_all on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: autogen
run: ./autogen.sh
- name: configure make check
run: |
./configure
make
make check
make distcheck
- if: ${{ matrix.os == 'macos-latest' }}
run: brew install automake libtool
- run: ./autogen.sh
- name: configure all make check
run: |
./configure --enable-all
@ -94,6 +46,17 @@ jobs:
make check
make distcheck
make_check_enable_all_asn:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
name: make_check_enable_all_asn 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: configure all ASN template
run: |
./configure --enable-all --enable-asn=template
@ -101,6 +64,17 @@ jobs:
make check
make distcheck
make_user:
strategy:
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
@ -108,6 +82,17 @@ jobs:
make
make check
make_user_all:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
name: make_user_all 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_all.h with compatibility layer
run: |
cp ./examples/configs/user_settings_all.h user_settings.h
@ -116,6 +101,17 @@ jobs:
make
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
@ -123,6 +119,17 @@ jobs:
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
@ -157,4 +164,3 @@ jobs:
# 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
run: msbuild /m /p:PlatformToolset=v142 /p:Platform=${{env.BUILD_PLATFORM}} /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}