Fix PR OSP concurrency collision, add triage PR comments #2284
Workflow file for this run
This file contains hidden or 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
| name: Multi-Compiler Tests | |
| # START OF COMMON SECTION | |
| on: | |
| push: | |
| branches: [ 'master', 'main', 'release/**' ] | |
| pull_request: | |
| branches: [ '*' ] | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| paths-ignore: | |
| - '**.md' | |
| - 'docs/**' | |
| - 'LICENSE*' | |
| - '.github/ISSUE_TEMPLATE/**' | |
| - '.github/dependabot.yml' | |
| - '.gitignore' | |
| - 'AUTHORS' | |
| - 'COPYING' | |
| - 'README*' | |
| - 'CHANGELOG*' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| # END OF COMMON SECTION | |
| jobs: | |
| build_wolfprovider: | |
| if: github.event_name != 'pull_request' || github.event.pull_request.draft == false | |
| name: Build with compiler ${{ matrix.CC }}, wolfssl ${{ matrix.wolfssl_ref }}, OpenSSL ${{ matrix.openssl_ref }} | |
| runs-on: ubuntu-22.04 | |
| permissions: | |
| contents: read | |
| packages: write | |
| container: | |
| image: ghcr.io/wolfssl/wolfprovider-test-deps:bookworm | |
| env: | |
| DEBIAN_FRONTEND: noninteractive | |
| timeout-minutes: 20 | |
| strategy: | |
| fail-fast: false | |
| # PR-time matrix is intentionally narrow: only compilers that ship | |
| # in Debian Bookworm (the test-deps image base). Dropped vs the | |
| # prior matrix: gcc-9, gcc-10, gcc-13, gcc-14, clang-12. Full | |
| # cross-compiler coverage (including those) runs in the nightly | |
| # multi-compiler job called from nightly-osp.yml. | |
| matrix: | |
| include: | |
| - CC: gcc-11 | |
| CXX: g++-11 | |
| wolfssl_ref: master | |
| openssl_ref: master | |
| - CC: gcc-12 | |
| CXX: g++-12 | |
| wolfssl_ref: master | |
| openssl_ref: master | |
| - CC: gcc-12 | |
| CXX: g++-12 | |
| wolfssl_ref: v5.8.0-stable | |
| openssl_ref: master | |
| - CC: gcc-12 | |
| CXX: g++-12 | |
| wolfssl_ref: v5.8.4-stable | |
| openssl_ref: master | |
| - CC: clang-13 | |
| CXX: clang++-13 | |
| wolfssl_ref: master | |
| openssl_ref: master | |
| - CC: clang-14 | |
| CXX: clang++-14 | |
| wolfssl_ref: master | |
| openssl_ref: master | |
| - CC: clang-15 | |
| CXX: clang++-15 | |
| wolfssl_ref: master | |
| openssl_ref: master | |
| steps: | |
| - name: Checkout wolfProvider | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Cache build dependencies | |
| id: deps | |
| uses: ./.github/actions/oras-build-deps | |
| with: | |
| variant: ${{ matrix.CC }}-bookworm | |
| openssl_ref: ${{ matrix.openssl_ref }} | |
| wolfssl_ref: ${{ matrix.wolfssl_ref }} | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build wolfProvider | |
| env: | |
| CC: ${{ matrix.CC }} | |
| CXX: ${{ matrix.CXX }} | |
| run: | | |
| OPENSSL_TAG=${{ matrix.openssl_ref }} WOLFSSL_TAG=${{ matrix.wolfssl_ref }} ./scripts/build-wolfprovider.sh | |
| - name: Push build dependencies | |
| uses: ./.github/actions/oras-build-deps-push | |
| with: | |
| registry: ${{ steps.deps.outputs.registry }} | |
| openssl_install_tag: ${{ steps.deps.outputs.openssl_install_tag }} | |
| wolfssl_install_tag: ${{ steps.deps.outputs.wolfssl_install_tag }} | |
| openssl_hit: ${{ steps.deps.outputs.openssl_hit }} | |
| wolfssl_hit: ${{ steps.deps.outputs.wolfssl_hit }} | |
| - name: Print errors | |
| if: ${{ failure() }} | |
| run: | | |
| for f in scripts/build-release.log scripts/build-debug.log test-suite.log config.log; do | |
| if [ -f "$f" ]; then | |
| echo "=== $f (last 200 lines) ===" | |
| tail -200 "$f" | |
| fi | |
| done |