diff --git a/.github/workflows/ada.yml b/.github/workflows/ada.yml index 8b9391feab..8a89ecc885 100644 --- a/.github/workflows/ada.yml +++ b/.github/workflows/ada.yml @@ -4,12 +4,20 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: build: - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 steps: diff --git a/.github/workflows/arduino.yml b/.github/workflows/arduino.yml index a90d379193..716c19362b 100644 --- a/.github/workflows/arduino.yml +++ b/.github/workflows/arduino.yml @@ -57,6 +57,7 @@ on: - 'wolfcrypt/**' - 'wolfssl/**' pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '**' ] paths: - '.github/workflows/arduino.yml' @@ -76,7 +77,10 @@ concurrency: jobs: build: - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # Teensy is allowed to fail: its board index lives at pjrc.com, which is # chronically unreachable from GitHub Actions runner egress IPs (DNS diff --git a/.github/workflows/async-examples.yml b/.github/workflows/async-examples.yml index 135bf36c8e..9dacb9c96d 100644 --- a/.github/workflows/async-examples.yml +++ b/.github/workflows/async-examples.yml @@ -4,6 +4,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -12,7 +13,10 @@ concurrency: jobs: async_examples: - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 timeout-minutes: 10 strategy: diff --git a/.github/workflows/async.yml b/.github/workflows/async.yml index c6956458de..44e30d5e5c 100644 --- a/.github/workflows/async.yml +++ b/.github/workflows/async.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -25,7 +26,10 @@ jobs: '--enable-ocsp CFLAGS="-DTEST_NONBLOCK_CERTS -pedantic -Wdeclaration-after-statement -Wnull-dereference -DTEST_LIBWOLFSSL_SOURCES_INCLUSION_SEQUENCE"', ] name: make check - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 6 diff --git a/.github/workflows/atecc608-sim.yml b/.github/workflows/atecc608-sim.yml index f3768a1b6c..8694fd4753 100644 --- a/.github/workflows/atecc608-sim.yml +++ b/.github/workflows/atecc608-sim.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -31,7 +32,10 @@ env: jobs: atecc608_sim: name: wolfCrypt against ATECC608 simulator - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 timeout-minutes: 30 steps: diff --git a/.github/workflows/bind.yml b/.github/workflows/bind.yml index a69b866e03..90b7931cbe 100644 --- a/.github/workflows/bind.yml +++ b/.github/workflows/bind.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -15,7 +16,10 @@ concurrency: jobs: build_wolfssl: name: Build wolfSSL - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) # Just to keep it the same as the testing target runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. @@ -46,7 +50,10 @@ jobs: # List of releases to test ref: [ 9.18.0, 9.18.28, 9.18.33, 9.20.11 ] name: ${{ matrix.ref }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 10 diff --git a/.github/workflows/cmake-autoconf.yml b/.github/workflows/cmake-autoconf.yml index 0aff795e1a..747df828dc 100644 --- a/.github/workflows/cmake-autoconf.yml +++ b/.github/workflows/cmake-autoconf.yml @@ -4,11 +4,19 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: build: - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 steps: diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index f2f5475fcb..82bc19665d 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -4,11 +4,19 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: build: - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 steps: diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index f6dfdd8acb..7f653e62b4 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -4,6 +4,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -13,7 +14,10 @@ concurrency: jobs: codespell: - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/cryptocb-only.yml b/.github/workflows/cryptocb-only.yml index 101c74dffc..6a427f95fc 100644 --- a/.github/workflows/cryptocb-only.yml +++ b/.github/workflows/cryptocb-only.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -54,7 +55,10 @@ jobs: -DWOLF_CRYPTO_CB_ONLY_ECC -DWOLF_CRYPTO_CB_ONLY_RSA -DWOLF_CRYPTO_CB_ONLY_SHA256 -DWOLF_CRYPTO_CB_ONLY_AES name: make check (${{ matrix.name }}) - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 timeout-minutes: 10 env: diff --git a/.github/workflows/curl.yml b/.github/workflows/curl.yml index 85df8b7984..3b5847f24a 100644 --- a/.github/workflows/curl.yml +++ b/.github/workflows/curl.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -15,7 +16,10 @@ concurrency: jobs: build_wolfssl: name: Build wolfSSL - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 4 @@ -39,7 +43,10 @@ jobs: test_curl: name: ${{ matrix.curl_ref }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 15 diff --git a/.github/workflows/cyrus-sasl.yml b/.github/workflows/cyrus-sasl.yml index 0f009d2d54..99d4af2f03 100644 --- a/.github/workflows/cyrus-sasl.yml +++ b/.github/workflows/cyrus-sasl.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -15,7 +16,10 @@ concurrency: jobs: build_wolfssl: name: Build wolfSSL - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) # Just to keep it the same as the testing target runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. @@ -47,7 +51,10 @@ jobs: # List of releases to test ref: [ 2.1.28 ] name: ${{ matrix.ref }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 4 diff --git a/.github/workflows/disable-pk-algs.yml b/.github/workflows/disable-pk-algs.yml index 30573ee942..2761ca829e 100644 --- a/.github/workflows/disable-pk-algs.yml +++ b/.github/workflows/disable-pk-algs.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -35,7 +36,10 @@ jobs: '--enable-cryptonly --disable-rsa --disable-dh --disable-ecc --disable-curve25519 --disable-ed25519 --disable-curve448 --disable-ed448 --enable-ed448', ] name: make check - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 6 diff --git a/.github/workflows/docker-Espressif.yml b/.github/workflows/docker-Espressif.yml index 4e79636f38..7628942c73 100644 --- a/.github/workflows/docker-Espressif.yml +++ b/.github/workflows/docker-Espressif.yml @@ -4,6 +4,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -14,7 +15,10 @@ concurrency: jobs: espressif_latest: name: latest Docker container - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 12 @@ -28,7 +32,10 @@ jobs: run: cd /opt/esp/idf && . ./export.sh && cd $GITHUB_WORKSPACE; IDE/Espressif/ESP-IDF/compileAllExamples.sh espressif_v4_4: name: v4.4 Docker container - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 container: image: espressif/idf:release-v4.4 @@ -38,7 +45,10 @@ jobs: run: cd /opt/esp/idf && . ./export.sh && cd $GITHUB_WORKSPACE; IDE/Espressif/ESP-IDF/compileAllExamples.sh espressif_v5_0: name: v5.0 Docker container - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 container: image: espressif/idf:release-v5.0 diff --git a/.github/workflows/docker-OpenWrt.yml b/.github/workflows/docker-OpenWrt.yml index 1d8db9c2c9..6c60f727d9 100644 --- a/.github/workflows/docker-OpenWrt.yml +++ b/.github/workflows/docker-OpenWrt.yml @@ -7,6 +7,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -17,7 +18,10 @@ concurrency: jobs: build_library: name: Compile libwolfssl.so - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 4 @@ -41,7 +45,10 @@ jobs: retention-days: 5 compile_container: name: Compile container - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 2 diff --git a/.github/workflows/emnet-nonblock.yml b/.github/workflows/emnet-nonblock.yml index 052ac20db8..77f5fe22d0 100644 --- a/.github/workflows/emnet-nonblock.yml +++ b/.github/workflows/emnet-nonblock.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -22,7 +23,10 @@ concurrency: jobs: emnet_nonblock: name: wolfSSL emNET non-blocking handshake - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 timeout-minutes: 20 steps: diff --git a/.github/workflows/fil-c.yml b/.github/workflows/fil-c.yml index 410ba02727..ca4eca70d8 100644 --- a/.github/workflows/fil-c.yml +++ b/.github/workflows/fil-c.yml @@ -8,6 +8,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -27,7 +28,10 @@ jobs: ] # This should be a safe limit for the tests to run. timeout-minutes: 30 - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 name: ${{ matrix.config }} steps: diff --git a/.github/workflows/freertos-mem-track.yml b/.github/workflows/freertos-mem-track.yml index 8870b903c1..8b1c1bb33f 100644 --- a/.github/workflows/freertos-mem-track.yml +++ b/.github/workflows/freertos-mem-track.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -24,7 +25,10 @@ concurrency: jobs: freertos_mem_track: name: mem_track.h non-Linux multi-threaded compile - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 timeout-minutes: 5 steps: diff --git a/.github/workflows/gencertbuf.yml b/.github/workflows/gencertbuf.yml index 3550f22e2b..b62f4ed71a 100644 --- a/.github/workflows/gencertbuf.yml +++ b/.github/workflows/gencertbuf.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -15,7 +16,10 @@ concurrency: jobs: gencertbuf: name: gencertbuf - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 6 diff --git a/.github/workflows/grpc.yml b/.github/workflows/grpc.yml index 8a61874f3c..7716768c7b 100644 --- a/.github/workflows/grpc.yml +++ b/.github/workflows/grpc.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -15,7 +16,10 @@ concurrency: jobs: build_wolfssl: name: Build wolfSSL - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) # Just to keep it the same as the testing target runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. @@ -51,7 +55,10 @@ jobs: test_core_security_ssl_credentials_test test_cpp_end2end_ssl_credentials_test h2_ssl_cert_test h2_ssl_session_reuse_test name: ${{ matrix.ref }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 30 diff --git a/.github/workflows/haproxy.yml b/.github/workflows/haproxy.yml index 8b9c502270..5841dc7000 100644 --- a/.github/workflows/haproxy.yml +++ b/.github/workflows/haproxy.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -15,7 +16,10 @@ concurrency: jobs: build_wolfssl: name: Build wolfSSL - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 4 @@ -39,7 +43,10 @@ jobs: test_haproxy: name: ${{ matrix.haproxy_ref }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 15 diff --git a/.github/workflows/hostap-vm.yml b/.github/workflows/hostap-vm.yml index 58b382e909..11ef4e61c0 100644 --- a/.github/workflows/hostap-vm.yml +++ b/.github/workflows/hostap-vm.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -27,7 +28,10 @@ jobs: --enable-wpas-dpp --enable-brainpool --with-eccminsz=192 --enable-tlsv10 --enable-oldtls name: Build wolfSSL - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-22.04 # This should be a safe limit for the tests to run. timeout-minutes: 10 @@ -65,7 +69,10 @@ jobs: checkout_hostap: name: Checkout hostap repo - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-22.04 # This should be a safe limit for the tests to run. timeout-minutes: 10 @@ -93,7 +100,10 @@ jobs: build_uml_linux: name: Build UML (UserMode Linux) - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-22.04 # This should be a safe limit for the tests to run. timeout-minutes: 10 @@ -181,7 +191,10 @@ jobs: build_id: hostap-vm-build2 } name: hwsim test - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-22.04 # This should be a safe limit for the tests to run. timeout-minutes: 45 diff --git a/.github/workflows/intelasm-c-fallback.yml b/.github/workflows/intelasm-c-fallback.yml index adbe942189..75731ef849 100644 --- a/.github/workflows/intelasm-c-fallback.yml +++ b/.github/workflows/intelasm-c-fallback.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -21,7 +22,10 @@ jobs: '--enable-intelasm --enable-sp-asm --enable-all --enable-testcert --enable-acert --enable-dtls13 --enable-dtls-mtu --enable-dtls-frag-ch --enable-dtlscid --enable-quic --with-sys-crypto-policy CPPFLAGS="-DNO_WOLFSSL_CIPHER_SUITE_TEST -DWC_C_DYNAMIC_FALLBACK -DDEBUG_VECTOR_REGISTER_ACCESS -DDEBUG_VECTOR_REGISTER_ACCESS_FUZZING -DWC_DEBUG_CIPHER_LIFECYCLE"' ] name: make check - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 6 diff --git a/.github/workflows/ipmitool.yml b/.github/workflows/ipmitool.yml index c3ae6c26e1..2dccdc8d48 100644 --- a/.github/workflows/ipmitool.yml +++ b/.github/workflows/ipmitool.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -16,7 +17,10 @@ concurrency: jobs: build_wolfssl: name: Build wolfSSL - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) # Just to keep it the same as the testing target runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. @@ -47,7 +51,10 @@ jobs: matrix: git_ref: [ c3939dac2c060651361fc71516806f9ab8c38901 ] name: ${{ matrix.git_ref }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 needs: build_wolfssl steps: diff --git a/.github/workflows/jwt-cpp.yml b/.github/workflows/jwt-cpp.yml index 2120b22a17..c4b4ab3c21 100644 --- a/.github/workflows/jwt-cpp.yml +++ b/.github/workflows/jwt-cpp.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -16,7 +17,10 @@ jobs: build_wolfssl: name: Build wolfSSL # Just to keep it the same as the testing target - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 4 @@ -41,7 +45,10 @@ jobs: retention-days: 5 build_pam-ipmi: - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) strategy: fail-fast: false matrix: diff --git a/.github/workflows/krb5.yml b/.github/workflows/krb5.yml index a0c6b5d214..1d2b8068f1 100644 --- a/.github/workflows/krb5.yml +++ b/.github/workflows/krb5.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -16,7 +17,10 @@ jobs: build_wolfssl: name: Build wolfSSL # Just to keep it the same as the testing target - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-22.04 # This should be a safe limit for the tests to run. timeout-minutes: 5 @@ -49,7 +53,10 @@ jobs: # List of releases to test ref: [ 1.21.1 ] name: ${{ matrix.ref }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-22.04 # This should be a safe limit for the tests to run. timeout-minutes: 8 diff --git a/.github/workflows/libspdm.yml b/.github/workflows/libspdm.yml index e9ca1678aa..63549c515c 100644 --- a/.github/workflows/libspdm.yml +++ b/.github/workflows/libspdm.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -15,7 +16,10 @@ concurrency: jobs: build_wolfssl: name: Build wolfSSL - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) # Just to keep it the same as the testing target runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. @@ -45,7 +49,10 @@ jobs: # List of releases to test ref: [ 3.7.0 ] name: ${{ matrix.ref }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 4 diff --git a/.github/workflows/libssh2.yml b/.github/workflows/libssh2.yml index f450236f84..7647181630 100644 --- a/.github/workflows/libssh2.yml +++ b/.github/workflows/libssh2.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -16,7 +17,10 @@ jobs: build_wolfssl: name: Build wolfSSL # Just to keep it the same as the testing target - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 4 @@ -46,7 +50,10 @@ jobs: # List of releases to test ref: [ 1.11.1 ] name: ${{ matrix.ref }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 8 diff --git a/.github/workflows/libvncserver.yml b/.github/workflows/libvncserver.yml index b2e7a1895e..6a9113869e 100644 --- a/.github/workflows/libvncserver.yml +++ b/.github/workflows/libvncserver.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -16,7 +17,10 @@ jobs: build_wolfssl: name: Build wolfSSL # Just to keep it the same as the testing target - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 4 @@ -46,7 +50,10 @@ jobs: matrix: ref: [ 0.9.13, 0.9.14 ] name: ${{ matrix.ref }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 needs: build_wolfssl steps: diff --git a/.github/workflows/linuxkm.yml b/.github/workflows/linuxkm.yml index 347c4b733d..7bfb2f4863 100644 --- a/.github/workflows/linuxkm.yml +++ b/.github/workflows/linuxkm.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -21,7 +22,10 @@ jobs: 'EXTRA_CPPFLAGS=-Werror --enable-option-checking=fatal --enable-linuxkm --enable-linuxkm-pie --enable-reproducible-build --enable-linuxkm-lkcapi-register=all --enable-all-crypto --enable-cryptonly --enable-kyber=yes,original --enable-lms --enable-xmss --enable-dilithium --enable-experimental --disable-qt --disable-quic --with-sys-crypto-policy=no --disable-opensslextra --disable-testcert --enable-intelasm --disable-sp-asm --enable-crypttests --enable-linuxkm-benchmarks CFLAGS="-DWOLFSSL_LINUXKM_VERBOSE_DEBUG -DDEBUG_LINUXKM_PIE_SUPPORT -Wframe-larger-than=2048 -Wstack-usage=4096 -DBENCH_EMBEDDED -DBENCH_MIN_RUNTIME_SEC=0.01 -DBENCH_NTIMES=1 -DBENCH_AGREETIMES=1" --with-max-rsa-bits=16384' ] name: build module - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-latest timeout-minutes: 5 steps: diff --git a/.github/workflows/macos-apple-native-cert-validation.yml b/.github/workflows/macos-apple-native-cert-validation.yml index 045686a14d..c07aa86d1b 100644 --- a/.github/workflows/macos-apple-native-cert-validation.yml +++ b/.github/workflows/macos-apple-native-cert-validation.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -14,7 +15,10 @@ concurrency: jobs: make_check: - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: macos-latest # This should be a safe limit for the tests to run. timeout-minutes: 5 diff --git a/.github/workflows/mbedtls.yml b/.github/workflows/mbedtls.yml index 3cc7e2c44b..5668aa64ac 100644 --- a/.github/workflows/mbedtls.yml +++ b/.github/workflows/mbedtls.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -18,7 +19,10 @@ env: jobs: build_mbedtls: name: Build mbedtls - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 10 @@ -55,7 +59,10 @@ jobs: mbedtls_test: name: Test interop with mbedtls - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 needs: build_mbedtls timeout-minutes: 15 diff --git a/.github/workflows/membrowse-report.yml b/.github/workflows/membrowse-report.yml index dfc67b5bfe..4ca31fd191 100644 --- a/.github/workflows/membrowse-report.yml +++ b/.github/workflows/membrowse-report.yml @@ -2,6 +2,7 @@ name: Membrowse Memory Report on: pull_request: + types: [opened, synchronize, reopened, ready_for_review] push: branches: - master @@ -12,6 +13,7 @@ concurrency: jobs: load-targets: + if: github.event_name != 'pull_request' || github.event.pull_request.draft == false runs-on: ubuntu-24.04 timeout-minutes: 10 outputs: @@ -25,6 +27,7 @@ jobs: run: echo "matrix=$(jq -c '.' .github/membrowse-targets.json)" >> $GITHUB_OUTPUT analyze: + if: github.event_name != 'pull_request' || github.event.pull_request.draft == false needs: load-targets runs-on: ubuntu-24.04 timeout-minutes: 10 diff --git a/.github/workflows/memcached.yml b/.github/workflows/memcached.yml index 3e595f9024..e34a9000cb 100644 --- a/.github/workflows/memcached.yml +++ b/.github/workflows/memcached.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -16,7 +17,10 @@ jobs: build_wolfssl: name: Build wolfSSL # Just to keep it the same as the testing target - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 steps: - name: Build wolfSSL @@ -47,7 +51,10 @@ jobs: include: - ref: 1.6.22 name: ${{ matrix.ref }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 needs: build_wolfssl steps: diff --git a/.github/workflows/mono.yml b/.github/workflows/mono.yml index 57ea269bf2..5678c632be 100644 --- a/.github/workflows/mono.yml +++ b/.github/workflows/mono.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -15,7 +16,10 @@ concurrency: jobs: build_wolfssl: name: Build wolfSSL C# Wrapper - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 timeout-minutes: 10 steps: diff --git a/.github/workflows/mosquitto.yml b/.github/workflows/mosquitto.yml index 603149adc8..cc612dcf40 100644 --- a/.github/workflows/mosquitto.yml +++ b/.github/workflows/mosquitto.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -16,7 +17,10 @@ jobs: build_wolfssl: name: Build wolfSSL # Just to keep it the same as the testing target - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 4 @@ -44,7 +48,10 @@ jobs: matrix: ref: [ 2.0.18 ] name: ${{ matrix.ref }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 4 diff --git a/.github/workflows/msmtp.yml b/.github/workflows/msmtp.yml index 9b98c43350..15f8fc767f 100644 --- a/.github/workflows/msmtp.yml +++ b/.github/workflows/msmtp.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -16,7 +17,10 @@ jobs: build_wolfssl: name: Build wolfSSL # Just to keep it the same as the testing target - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 4 @@ -44,7 +48,10 @@ jobs: matrix: ref: [ 1.8.28 ] name: ${{ matrix.ref }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 10 diff --git a/.github/workflows/msys2.yml b/.github/workflows/msys2.yml index 93e555a26d..f2d872855b 100644 --- a/.github/workflows/msys2.yml +++ b/.github/workflows/msys2.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -14,7 +15,10 @@ concurrency: jobs: msys2: - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: windows-latest defaults: run: diff --git a/.github/workflows/multi-arch.yml b/.github/workflows/multi-arch.yml index aac372c464..e224fd7b29 100644 --- a/.github/workflows/multi-arch.yml +++ b/.github/workflows/multi-arch.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -51,7 +52,10 @@ jobs: OPT_CFLAGS: '-Os' - name: '-Ofast' OPT_CFLAGS: '-Ofast' - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-22.04 # This should be a safe limit for the tests to run. timeout-minutes: 10 diff --git a/.github/workflows/multi-compiler.yml b/.github/workflows/multi-compiler.yml index b52bd6432c..015c141e0e 100644 --- a/.github/workflows/multi-compiler.yml +++ b/.github/workflows/multi-compiler.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -37,7 +38,10 @@ jobs: - CC: clang-19 CXX: clang++-19 OS: ubuntu-24.04 - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ${{ matrix.OS }} # This should be a safe limit for the tests to run. timeout-minutes: 4 diff --git a/.github/workflows/net-snmp.yml b/.github/workflows/net-snmp.yml index 9dab661625..3fe47f5b28 100644 --- a/.github/workflows/net-snmp.yml +++ b/.github/workflows/net-snmp.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -15,7 +16,10 @@ concurrency: jobs: build_wolfssl: name: Build wolfSSL - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) # Just to keep it the same as the testing target runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. @@ -47,7 +51,10 @@ jobs: - ref: 5.9.3 test_opts: -e 'agentxperl' name: ${{ matrix.ref }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 4 diff --git a/.github/workflows/nginx.yml b/.github/workflows/nginx.yml index d457e111c2..8fdf9cf76d 100644 --- a/.github/workflows/nginx.yml +++ b/.github/workflows/nginx.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -19,7 +20,10 @@ env: jobs: build_wolfssl: name: Build wolfSSL - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) # Just to keep it the same as the testing target runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. @@ -146,7 +150,10 @@ jobs: stream_proxy_protocol_ssl.t stream_proxy_ssl_conf_command.t stream_proxy_ssl.t stream_proxy_ssl_verify.t name: ${{ matrix.ref }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 6 diff --git a/.github/workflows/no-malloc.yml b/.github/workflows/no-malloc.yml index 4268d47da4..19294cb54a 100644 --- a/.github/workflows/no-malloc.yml +++ b/.github/workflows/no-malloc.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -23,7 +24,10 @@ jobs: '--enable-ecc --enable-rsa --enable-keygen --enable-ed25519 --enable-curve25519 --enable-ed448 --enable-curve448 --enable-mlkem --enable-staticmemory CFLAGS="-DWOLFSSL_NO_MALLOC -pedantic -Wdeclaration-after-statement -Wnull-dereference -DTEST_LIBWOLFSSL_SOURCES_INCLUSION_SEQUENCE"', ] name: make check - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 6 diff --git a/.github/workflows/no-tls.yml b/.github/workflows/no-tls.yml index 13cf7c8f05..4dbaff3538 100644 --- a/.github/workflows/no-tls.yml +++ b/.github/workflows/no-tls.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -21,7 +22,10 @@ jobs: '--disable-tls --enable-all CFLAGS="-pedantic -Wdeclaration-after-statement -Wnull-dereference -DTEST_LIBWOLFSSL_SOURCES_INCLUSION_SEQUENCE"', ] name: make check - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 6 diff --git a/.github/workflows/nss.yml b/.github/workflows/nss.yml index ebe1acb0c6..6ff252423d 100644 --- a/.github/workflows/nss.yml +++ b/.github/workflows/nss.yml @@ -7,6 +7,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -20,7 +21,10 @@ env: jobs: build_nss: name: Build nss - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 30 @@ -63,7 +67,10 @@ jobs: nss_test: name: Test interop with nss - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 needs: build_nss timeout-minutes: 30 diff --git a/.github/workflows/ntp.yml b/.github/workflows/ntp.yml index d93b19deb0..1e1b2955ce 100644 --- a/.github/workflows/ntp.yml +++ b/.github/workflows/ntp.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -15,7 +16,10 @@ concurrency: jobs: build_wolfssl: name: Build wolfSSL - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) # Just to keep it the same as the testing target runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. @@ -46,7 +50,10 @@ jobs: # List of releases to test ref: [ 4.2.8p15, 4.2.8p17, 4.2.8p18 ] name: ${{ matrix.ref }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 10 diff --git a/.github/workflows/ocsp.yml b/.github/workflows/ocsp.yml index 3cd5636d9d..5e8a320cc9 100644 --- a/.github/workflows/ocsp.yml +++ b/.github/workflows/ocsp.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -15,7 +16,10 @@ concurrency: jobs: ocsp_stapling: name: ocsp stapling - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 timeout-minutes: 10 steps: diff --git a/.github/workflows/openldap.yml b/.github/workflows/openldap.yml index 48d46daab9..d6336ed18d 100644 --- a/.github/workflows/openldap.yml +++ b/.github/workflows/openldap.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -15,7 +16,10 @@ concurrency: jobs: build_wolfssl: name: Build wolfSSL - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) # Just to keep it the same as the testing target runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. @@ -52,7 +56,10 @@ jobs: - osp_ref: 2.6.9 git_ref: OPENLDAP_REL_ENG_2_6_9 name: ${{ matrix.osp_ref }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 20 diff --git a/.github/workflows/openssh.yml b/.github/workflows/openssh.yml index 7522460561..e788302364 100644 --- a/.github/workflows/openssh.yml +++ b/.github/workflows/openssh.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -15,7 +16,10 @@ concurrency: jobs: build_wolfssl: name: Build wolfSSL - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) # Just to keep it the same as the testing target runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. @@ -80,7 +84,10 @@ jobs: exit-status rekey multiplex forward-control channel-timeout connection-timeout name: ${{ matrix.osp_ver }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 needs: build_wolfssl steps: diff --git a/.github/workflows/openssl-ech.yml b/.github/workflows/openssl-ech.yml index 9c9e06375b..64df5dae6b 100644 --- a/.github/workflows/openssl-ech.yml +++ b/.github/workflows/openssl-ech.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -15,7 +16,10 @@ concurrency: jobs: build_wolfssl: name: Build wolfSSL - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 timeout-minutes: 4 steps: @@ -55,7 +59,10 @@ jobs: build_openssl_ech: name: Build OpenSSL (feature/ech) - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 timeout-minutes: 10 steps: @@ -87,7 +94,10 @@ jobs: ech_interop_test: name: ECH Interop Test - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) needs: [build_wolfssl, build_openssl_ech] runs-on: ubuntu-24.04 timeout-minutes: 10 diff --git a/.github/workflows/opensslcoexist.yml b/.github/workflows/opensslcoexist.yml index e6ff993bdb..76fc537ef8 100644 --- a/.github/workflows/opensslcoexist.yml +++ b/.github/workflows/opensslcoexist.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -22,7 +23,10 @@ jobs: '--verbose --enable-all --disable-all-osp --disable-opensslall --enable-opensslcoexist CPPFLAGS="-DNO_WOLFSSL_CIPHER_SUITE_TEST -pedantic -Wdeclaration-after-statement -Wnull-dereference -DTEST_OPENSSL_COEXIST -DTEST_LIBWOLFSSL_SOURCES_INCLUSION_SEQUENCE"' ] name: make check - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 6 diff --git a/.github/workflows/openvpn.yml b/.github/workflows/openvpn.yml index 0b793f19ef..79c273176c 100644 --- a/.github/workflows/openvpn.yml +++ b/.github/workflows/openvpn.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -15,7 +16,10 @@ concurrency: jobs: build_wolfssl: name: Build wolfSSL - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) # Just to keep it the same as the testing target runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. @@ -44,7 +48,10 @@ jobs: matrix: ref: [ release/2.6, v2.6.19 ] name: ${{ matrix.ref }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 10 diff --git a/.github/workflows/os-check.yml b/.github/workflows/os-check.yml index 318cbcf8c3..870be4f4c3 100644 --- a/.github/workflows/os-check.yml +++ b/.github/workflows/os-check.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -133,7 +134,10 @@ jobs: 'CPPFLAGS="-DNO_VERIFY_OID -DWOLFSSL_FPKI"', ] name: make check linux - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 14 @@ -184,7 +188,10 @@ jobs: '--enable-cryptocb --enable-keygen --enable-cryptocbutils=setkey', ] name: make check macos - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: macos-latest # This should be a safe limit for the tests to run. timeout-minutes: 14 @@ -217,7 +224,10 @@ jobs: 'examples/configs/user_settings_all.h', ] name: make user_setting.h - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ${{ matrix.os }} # This should be a safe limit for the tests to run. timeout-minutes: 14 @@ -264,7 +274,10 @@ jobs: # - user_settings_baremetal.h: Requires static memory, custom platform ] name: make user_setting.h (testwolfcrypt only) - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 14 @@ -285,7 +298,10 @@ jobs: # the equivalent code paths on Darwin. make_user_all: name: make user_setting.h (with sed) - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 14 @@ -308,7 +324,10 @@ jobs: windows_build: name: Windows Build Test - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: windows-latest strategy: fail-fast: false diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml index ec55f410f1..fe08cae2a0 100644 --- a/.github/workflows/packaging.yml +++ b/.github/workflows/packaging.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -15,7 +16,10 @@ concurrency: jobs: build_wolfssl: name: Package wolfSSL - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 10 diff --git a/.github/workflows/pam-ipmi.yml b/.github/workflows/pam-ipmi.yml index da6ac50d1c..e68c9b57fa 100644 --- a/.github/workflows/pam-ipmi.yml +++ b/.github/workflows/pam-ipmi.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -16,7 +17,10 @@ concurrency: jobs: build_wolfssl: name: Build wolfSSL - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) # Just to keep it the same as the testing target runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. @@ -47,7 +51,10 @@ jobs: matrix: git_ref: [ e4b13e6725abb178f62ee897fe1c0e81b06a9431 ] name: ${{ matrix.git_ref }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 needs: build_wolfssl steps: diff --git a/.github/workflows/pq-all.yml b/.github/workflows/pq-all.yml index c6d4704e99..bf0f61618a 100644 --- a/.github/workflows/pq-all.yml +++ b/.github/workflows/pq-all.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -41,7 +42,10 @@ jobs: '--disable-intelasm --enable-dilithium=44,65,87,verify-only CPPFLAGS="-DWOLFSSL_DILITHIUM_DYNAMIC_KEYS"', ] name: make check - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 10 diff --git a/.github/workflows/pr-commit-check.yml b/.github/workflows/pr-commit-check.yml index a2820a8fcf..52587edfd2 100644 --- a/.github/workflows/pr-commit-check.yml +++ b/.github/workflows/pr-commit-check.yml @@ -2,6 +2,7 @@ name: PR commit message checks on: pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '**' ] concurrency: @@ -11,7 +12,10 @@ concurrency: jobs: commit-messages: - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/psk.yml b/.github/workflows/psk.yml index aac00b5e32..4db4b2b0f1 100644 --- a/.github/workflows/psk.yml +++ b/.github/workflows/psk.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -25,7 +26,10 @@ jobs: '--disable-oldtls --disable-tlsv12 --enable-tls13 --enable-psk -disable-rsa --disable-dh -disable-ecc --disable-asn C_EXTRA_FLAGS=-DWOLFSSL_STATIC_PSK --enable-lowresource --enable-singlethreaded --disable-asm --disable-errorstrings --disable-pkcs12 --disable-sha3 --disable-sha224 --disable-sha384 --disable-sha512 --disable-sha --disable-md5 -disable-aescbc --disable-chacha --disable-poly1305 --disable-coding --disable-sp-math-all --disable-mlkem' ] name: make check - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 6 diff --git a/.github/workflows/puf.yml b/.github/workflows/puf.yml index 8ad4827a1d..44b0a34e5a 100644 --- a/.github/workflows/puf.yml +++ b/.github/workflows/puf.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -15,7 +16,10 @@ concurrency: jobs: puf_host_test: name: PUF host test - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 timeout-minutes: 6 steps: diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 7b225d9126..0377555baf 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -15,7 +16,10 @@ concurrency: jobs: build_wolfssl: name: Build wolfSSL - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 timeout-minutes: 10 steps: @@ -93,7 +97,10 @@ jobs: test_xmlrpc test_docxmlrpc name: Python ${{ matrix.python_ver }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 timeout-minutes: 60 needs: build_wolfssl diff --git a/.github/workflows/rng-tools.yml b/.github/workflows/rng-tools.yml index 0579a312ca..b6f9195b6e 100644 --- a/.github/workflows/rng-tools.yml +++ b/.github/workflows/rng-tools.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -15,7 +16,10 @@ concurrency: jobs: build_wolfssl: name: Build wolfSSL - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) # Just to keep it the same as the testing target runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. @@ -46,7 +50,10 @@ jobs: # List of releases to test ref: [ 6.16, 6.17 ] name: ${{ matrix.ref }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 4 diff --git a/.github/workflows/rust-wrapper.yml b/.github/workflows/rust-wrapper.yml index 4fe191b085..da3af92b7d 100644 --- a/.github/workflows/rust-wrapper.yml +++ b/.github/workflows/rust-wrapper.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -15,7 +16,10 @@ concurrency: jobs: build_wolfssl: name: Build wolfSSL Rust Wrapper - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ${{ matrix.os }} # This should be a safe limit for the tests to run. timeout-minutes: 10 diff --git a/.github/workflows/se050-sim.yml b/.github/workflows/se050-sim.yml index 9ce5a8c892..3ca92a19d5 100644 --- a/.github/workflows/se050-sim.yml +++ b/.github/workflows/se050-sim.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -26,7 +27,10 @@ env: jobs: se050_sim: name: wolfCrypt against SE050 simulator - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 timeout-minutes: 30 steps: diff --git a/.github/workflows/smallStackSize.yml b/.github/workflows/smallStackSize.yml index d754751c57..ab2f572a80 100644 --- a/.github/workflows/smallStackSize.yml +++ b/.github/workflows/smallStackSize.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -36,7 +37,10 @@ jobs: '--enable-intelasm --enable-sp-asm --enable-all-crypto --enable-mlkem --enable-lms --enable-xmss --enable-mldsa' ] name: build library - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 6 diff --git a/.github/workflows/socat.yml b/.github/workflows/socat.yml index 57068d0430..6d0973e6f4 100644 --- a/.github/workflows/socat.yml +++ b/.github/workflows/socat.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -15,7 +16,10 @@ concurrency: jobs: build_wolfssl: name: Build wolfSSL - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 timeout-minutes: 4 steps: @@ -38,7 +42,10 @@ jobs: socat_check: - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 30 diff --git a/.github/workflows/softhsm.yml b/.github/workflows/softhsm.yml index fb1ca9a50c..838cef0ecf 100644 --- a/.github/workflows/softhsm.yml +++ b/.github/workflows/softhsm.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -15,7 +16,10 @@ concurrency: jobs: build_wolfssl: name: Build wolfSSL - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) # Just to keep it the same as the testing target runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. @@ -46,7 +50,10 @@ jobs: # List of releases to test ref: [ 2.6.1 ] name: ${{ matrix.ref }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 20 diff --git a/.github/workflows/sssd.yml b/.github/workflows/sssd.yml index 2067ec6f98..e179be4e85 100644 --- a/.github/workflows/sssd.yml +++ b/.github/workflows/sssd.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -14,7 +15,10 @@ concurrency: jobs: build_wolfssl: - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) name: Build wolfSSL # Just to keep it the same as the testing target runs-on: ubuntu-24.04 @@ -46,7 +50,10 @@ jobs: # List of releases to test ref: [ 2.9.1, 2.10.2 ] name: ${{ matrix.ref }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 container: image: quay.io/sssd/ci-client-devel:ubuntu-latest diff --git a/.github/workflows/stm32-sim.yml b/.github/workflows/stm32-sim.yml index 8beb42921c..948aaa7f40 100644 --- a/.github/workflows/stm32-sim.yml +++ b/.github/workflows/stm32-sim.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -24,7 +25,10 @@ concurrency: jobs: stm32_sim: name: wolfCrypt on STM32${{ matrix.chip_label }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 timeout-minutes: 30 strategy: diff --git a/.github/workflows/stsafe-a120-sim.yml b/.github/workflows/stsafe-a120-sim.yml index 8764a56b83..033d984da8 100644 --- a/.github/workflows/stsafe-a120-sim.yml +++ b/.github/workflows/stsafe-a120-sim.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -32,7 +33,10 @@ env: jobs: stsafe_a120_sim: name: wolfCrypt against STSAFE-A120 simulator - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 timeout-minutes: 30 steps: diff --git a/.github/workflows/stunnel.yml b/.github/workflows/stunnel.yml index 7348ec1885..9748b1044e 100644 --- a/.github/workflows/stunnel.yml +++ b/.github/workflows/stunnel.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -15,7 +16,10 @@ concurrency: jobs: build_wolfssl: name: Build wolfSSL - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) # Just to keep it the same as the testing target runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. @@ -45,7 +49,10 @@ jobs: # List of releases to test ref: [ 5.67 ] name: ${{ matrix.ref }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 4 diff --git a/.github/workflows/symbol-prefixes.yml b/.github/workflows/symbol-prefixes.yml index 5073f8e938..1320c888f9 100644 --- a/.github/workflows/symbol-prefixes.yml +++ b/.github/workflows/symbol-prefixes.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -20,7 +21,10 @@ jobs: '--enable-all --enable-mlkem --enable-mldsa --enable-xmss --enable-lms --enable-acert --with-sys-crypto-policy CFLAGS=-DWOLFSSL_API_PREFIX_MAP' ] name: make and analyze - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 6 diff --git a/.github/workflows/threadx.yml b/.github/workflows/threadx.yml index d192141806..f44df8fcd7 100644 --- a/.github/workflows/threadx.yml +++ b/.github/workflows/threadx.yml @@ -4,11 +4,17 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: build: + if: github.event_name != 'pull_request' || github.event.pull_request.draft == false runs-on: ubuntu-24.04 timeout-minutes: 10 diff --git a/.github/workflows/trackmemory.yml b/.github/workflows/trackmemory.yml index 3f79e01645..9a2bcce997 100644 --- a/.github/workflows/trackmemory.yml +++ b/.github/workflows/trackmemory.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -32,7 +33,10 @@ jobs: '--disable-asm --enable-wolfEntropy --enable-smallstackcache --enable-smallstack --enable-all CFLAGS="-DWC_RNG_SEED_CB -DWOLFSSL_TRACK_MEMORY -DWOLFSSL_DEBUG_MEMORY -DNO_WOLFSSL_CIPHER_SUITE_TEST"' ] name: make check - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 6 diff --git a/.github/workflows/tropic01-sim.yml b/.github/workflows/tropic01-sim.yml index d64a0def0b..9505a6be66 100644 --- a/.github/workflows/tropic01-sim.yml +++ b/.github/workflows/tropic01-sim.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -32,7 +33,10 @@ env: jobs: tropic01_sim: name: wolfCrypt against TROPIC01 simulator - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 timeout-minutes: 30 steps: diff --git a/.github/workflows/watcomc.yml b/.github/workflows/watcomc.yml index d936d8fa11..35260c3348 100644 --- a/.github/workflows/watcomc.yml +++ b/.github/workflows/watcomc.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -14,7 +15,10 @@ concurrency: jobs: wolfssl_watcomc_windows: - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) strategy: fail-fast: false matrix: diff --git a/.github/workflows/win-csharp-test.yml b/.github/workflows/win-csharp-test.yml index c2c10582c1..29807334da 100644 --- a/.github/workflows/win-csharp-test.yml +++ b/.github/workflows/win-csharp-test.yml @@ -4,12 +4,20 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: build: - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: windows-latest # This should be a safe limit for the tests to run. diff --git a/.github/workflows/wolfCrypt-Wconversion.yml b/.github/workflows/wolfCrypt-Wconversion.yml index f76e2a1fcc..e1a6cad635 100644 --- a/.github/workflows/wolfCrypt-Wconversion.yml +++ b/.github/workflows/wolfCrypt-Wconversion.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -31,7 +32,10 @@ jobs: '--disable-intelasm --enable-cryptonly --enable-all-crypto --disable-examples --disable-benchmark --disable-crypttests --enable-mlkem=yes,small --enable-slhdsa --enable-lms --enable-xmss CPPFLAGS="-DWOLFSSL_MLKEM_ENCAPSULATE_SMALL_MEM -DWOLFSSL_MLKEM_MAKEKEY_SMALL_MEM -Wconversion -Warith-conversion -Wenum-conversion -Wfloat-conversion -Wsign-conversion -Wcast-qual -DNO_INT128"', ] name: build library - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 # This should be a safe limit for the tests to run. timeout-minutes: 10 diff --git a/.github/workflows/wolfboot-integration.yml b/.github/workflows/wolfboot-integration.yml index 1a7fe9a0c6..e65d64e9c5 100644 --- a/.github/workflows/wolfboot-integration.yml +++ b/.github/workflows/wolfboot-integration.yml @@ -4,6 +4,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] workflow_dispatch: @@ -19,7 +20,10 @@ env: jobs: keytools: name: keytools - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 timeout-minutes: 20 @@ -120,7 +124,10 @@ jobs: host_smoke: name: host-smoke - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 timeout-minutes: 15 @@ -192,7 +199,10 @@ jobs: renode_multimem_smallstack: name: renode-multimem-smallstack - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-22.04 timeout-minutes: 45 permissions: @@ -318,7 +328,10 @@ jobs: renode_multimem_smallstack_fastmath: name: renode-multimem-smallstack-fastmath - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-22.04 timeout-minutes: 45 permissions: @@ -426,7 +439,10 @@ jobs: renode_multimem_smallstack_noasm: name: renode-multimem-smallstack-noasm - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-22.04 timeout-minutes: 45 permissions: diff --git a/.github/workflows/wolfsm.yml b/.github/workflows/wolfsm.yml index d0d39e254a..bc16fb5f01 100644 --- a/.github/workflows/wolfsm.yml +++ b/.github/workflows/wolfsm.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -26,7 +27,10 @@ jobs: '--enable-all --enable-sm2 --enable-sm3 --enable-sm4-ecb --enable-sm4-cbc --enable-sm4-ctr --enable-sm4-gcm --enable-sm4-ccm', ] name: make check - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-24.04 timeout-minutes: 10 steps: diff --git a/.github/workflows/xcode.yml b/.github/workflows/xcode.yml index 4799aa41fe..d5915a2650 100644 --- a/.github/workflows/xcode.yml +++ b/.github/workflows/xcode.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -14,7 +15,10 @@ concurrency: jobs: build: - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: macos-latest # This should be a safe limit for the tests to run. timeout-minutes: 10 diff --git a/.github/workflows/zephyr-4.x.yml b/.github/workflows/zephyr-4.x.yml index 203ec2a48e..210a1b6976 100644 --- a/.github/workflows/zephyr-4.x.yml +++ b/.github/workflows/zephyr-4.x.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -15,7 +16,10 @@ concurrency: jobs: build: name: ${{ matrix.zephyr-ref }} | ${{ matrix.board }} | ${{ matrix.sample }}${{ matrix.extra-conf != '' && ' | extlibc' || '' }} - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-22.04 timeout-minutes: 60 strategy: diff --git a/.github/workflows/zephyr.yml b/.github/workflows/zephyr.yml index 1ce15098a9..124db3f5b2 100644 --- a/.github/workflows/zephyr.yml +++ b/.github/workflows/zephyr.yml @@ -5,6 +5,7 @@ on: push: branches: [ 'master', 'main', 'release/**' ] pull_request: + types: [opened, synchronize, reopened, ready_for_review] branches: [ '*' ] concurrency: @@ -25,7 +26,10 @@ jobs: zephyr-sdk: 0.16.3 - zephyr-ref: v2.7.4 zephyr-sdk: 0.16.3 - if: github.repository_owner == 'wolfssl' + if: >- + github.repository_owner == 'wolfssl' && + (github.event_name != 'pull_request' || + github.event.pull_request.draft == false) runs-on: ubuntu-22.04 # This should be a safe limit for the tests to run. timeout-minutes: 45