mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 22:50:50 +02:00
6c211be5b9
GitHub Actions caches are branch-scoped: an entry written by a pull_request run lives under refs/pull/<N>/merge and is invisible to other PRs. The haproxy, mbedtls, nss, ntp, threadx and hostap-vm workflows used combined actions/cache with fixed keys, so every PR re-saved its own copy of the same dependency, yielding one duplicate cache entry per PR. Split each into actions/cache/restore (always) plus actions/cache/save gated to refs/heads/master, and add a daily schedule so a master run reseeds the single shared entry that all PRs restore. mbedtls/nss save in their build job only; the test jobs restore-only. Disable the setup-msys2 package cache: the action only toggles caching on/off and cannot save on master while restoring on PRs.
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
name: MSYS2 Build Test
|
|
|
|
# START OF COMMON SECTION
|
|
on:
|
|
push:
|
|
branches: [ 'release/**' ]
|
|
pull_request:
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
|
branches: [ '*' ]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
# END OF COMMON SECTION
|
|
|
|
jobs:
|
|
msys2:
|
|
if: ${{ (github.repository_owner == 'wolfssl') && (github.event_name != 'pull_request' || github.event.pull_request.draft == false) }}
|
|
runs-on: windows-latest
|
|
defaults:
|
|
run:
|
|
shell: msys2 {0}
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: msys2/setup-msys2@v2
|
|
with:
|
|
msystem: msys
|
|
update: true
|
|
install: git gcc autotools base-devel autoconf netcat
|
|
# Per-PR cache entries can't be shared across PRs; the action
|
|
# offers no master-only save, so disable caching entirely.
|
|
cache: false
|
|
- name: configure wolfSSL
|
|
run: ./autogen.sh && ./configure --disable-sys-ca-certs CFLAGS="-DUSE_CERT_BUFFERS_2048 -DUSE_CERT_BUFFERS_256 -DNO_WRITE_TEMP_FILES"
|
|
- name: build wolfSSL
|
|
run: make
|
|
- name: run tests
|
|
run: make check
|
|
- name: Display log
|
|
if: always()
|
|
run: cat test-suite.log
|