bsdkm x86_vecreg: nest counter, and other improvements. #8053
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: disable-pk-algs Tests | |
| # START OF COMMON SECTION | |
| on: | |
| push: | |
| branches: [ 'release/**' ] | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| branches: [ '*' ] | |
| # Weekday-morning cron (10:00 UTC) seeds the master-scoped ccache that PR runs | |
| # restore: re-runs --build-only (compile only, no tests) on the | |
| # default branch. PR runs are read-only (see ccache-setup). | |
| schedule: | |
| - cron: '16 10 * * 1-5' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| # END OF COMMON SECTION | |
| jobs: | |
| # All former runner-per-config matrix entries build on one runner via | |
| # .github/scripts/parallel-make-check.py (see os-check.yml for the full | |
| # pattern): each config in its own out-of-tree ("VPATH") build directory | |
| # off one checkout/autogen, checks on a pool of one-per-CPU worker | |
| # threads, longest first. bubblewrap gives every test script its own | |
| # network namespace so concurrent checks cannot collide on TCP/UDP ports | |
| # (do not set AM_BWRAPPED here - that would disable it). | |
| make_check: | |
| name: make check | |
| if: ${{ (github.repository_owner == 'wolfssl') && (github.event_name != 'pull_request' || github.event.pull_request.draft == false) }} | |
| runs-on: ubuntu-24.04 | |
| # Generous for a cold ccache; warm reruns finish in a fraction. | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| name: Checkout wolfSSL | |
| - name: Install dependencies | |
| uses: ./.github/actions/install-apt-deps | |
| with: | |
| packages: autoconf automake libtool build-essential bubblewrap | |
| ghcr-debs-tag: ubuntu-24.04-minimal | |
| # ccache via the cross-platform composite; the script passes the | |
| # compiler to configure as CC="ccache gcc" (or a per-config "cc"). | |
| - name: Set up ccache | |
| uses: ./.github/actions/ccache-setup | |
| with: | |
| workflow-id: disable-pk-algs | |
| read-only: ${{ github.event_name == 'pull_request' }} | |
| max-size: 150M | |
| # Ubuntu 24.04 can restrict unprivileged user namespaces via AppArmor, | |
| # which would stop the test scripts from re-execing under | |
| # bwrap --unshare-net (their port-isolation mechanism). | |
| - name: Allow unprivileged user namespaces (for bwrap) | |
| run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 || true | |
| # The JSON below feeds .github/scripts/parallel-make-check.py: a shared | |
| # "base" that disables every PK alg, then one entry per combination | |
| # whose "configure" re-enables just the algs under test (appended to | |
| # the base). Add configs as new entries (a "comment" key is allowed). | |
| # "minutes" is the expected duration driving longest-first scheduling: | |
| # take it from the Minutes column of a previous run's step summary, or | |
| # omit it for a new config (defaults to 1) and refresh later. | |
| - name: Build and make check all configs (parallel, out-of-tree) | |
| run: | | |
| cat > "$RUNNER_TEMP/disable-pk-algs-configs.json" <<'EOF' | |
| {"base": {"configure": ["--disable-rsa", "--disable-dh", | |
| "--disable-ecc", "--disable-curve25519", "--disable-ed25519", | |
| "--disable-curve448", "--disable-ed448"]}, | |
| "configs": [ | |
| {"name": "rsa-dh", "minutes": 1.2, | |
| "configure": ["--enable-rsa", "--enable-dh"]}, | |
| {"name": "ecc", "minutes": 1.2, | |
| "configure": ["--enable-ecc"]}, | |
| {"name": "rsa-curve25519", "minutes": 1.2, | |
| "configure": ["--enable-rsa", "--enable-curve25519"]}, | |
| {"name": "ecc-curve25519", "minutes": 1.2, | |
| "configure": ["--enable-ecc", "--enable-curve25519"]}, | |
| {"name": "rsa-curve448", "minutes": 1.2, | |
| "configure": ["--enable-rsa", "--enable-curve448"]}, | |
| {"name": "ecc-curve448", "minutes": 1.2, | |
| "configure": ["--enable-ecc", "--enable-curve448"]}, | |
| {"name": "curve25519-ed25519", "minutes": 1.2, | |
| "configure": ["--enable-curve25519", "--enable-ed25519"]}, | |
| {"name": "curve448-ed448", "minutes": 1.2, | |
| "configure": ["--enable-curve448", "--enable-ed448"]}, | |
| {"name": "cryptonly-rsa", "minutes": 0.8, | |
| "configure": ["--enable-cryptonly", "--enable-rsa"]}, | |
| {"name": "cryptonly-dh", "minutes": 0.8, | |
| "configure": ["--enable-cryptonly", "--enable-dh"]}, | |
| {"name": "cryptonly-ecc", "minutes": 0.8, | |
| "configure": ["--enable-cryptonly", "--enable-ecc"]}, | |
| {"name": "cryptonly-curve25519", "minutes": 0.8, | |
| "configure": ["--enable-cryptonly", "--enable-curve25519"]}, | |
| {"name": "cryptonly-ed25519", "minutes": 0.8, | |
| "configure": ["--enable-cryptonly", "--enable-ed25519"]}, | |
| {"name": "cryptonly-curve448", "minutes": 0.8, | |
| "configure": ["--enable-cryptonly", "--enable-curve448"]}, | |
| {"name": "cryptonly-ed448", "minutes": 0.8, | |
| "configure": ["--enable-cryptonly", "--enable-ed448"]} | |
| ]} | |
| EOF | |
| .github/scripts/parallel-make-check.py \ | |
| ${{ github.event_name == 'schedule' && '--build-only' || '' }} \ | |
| --private-dir=certs \ | |
| "$RUNNER_TEMP/disable-pk-algs-configs.json" | |
| - name: ccache stats | |
| if: always() | |
| run: ccache -s || true | |
| - name: Upload logs on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| retention-days: 7 | |
| name: disable-pk-algs-logs | |
| path: | | |
| build-*/make-check.log | |
| build-*/test-suite.log | |
| build-*/config.log | |
| if-no-files-found: ignore |