From 06a64af1f4c539d99e06b391279b5849856311ce Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 26 Jun 2026 07:56:30 +0200 Subject: [PATCH 1/9] Set CodeQL to be executed weekly --- .github/workflows/codeql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index dcdfc03cb..e020b459a 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -3,7 +3,7 @@ name: "CodeQL" on: workflow_dispatch: schedule: - - cron: '0 3 * * *' + - cron: '0 3 * * 6' jobs: analyze: From 63dd0e1a604fb1949610546dc3aace3d19101912 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 26 Jun 2026 08:02:58 +0200 Subject: [PATCH 2/9] Add ccache --- .github/workflows/extra-builds.yml | 33 +++++++++++++++++++-------- .github/workflows/test-build.yml | 7 +++++- .github/workflows/test-compile.yml | 9 ++++++-- .github/workflows/test-sanitizers.yml | 8 ++++++- 4 files changed, 44 insertions(+), 13 deletions(-) diff --git a/.github/workflows/extra-builds.yml b/.github/workflows/extra-builds.yml index 603d91e5d..788e12c29 100644 --- a/.github/workflows/extra-builds.yml +++ b/.github/workflows/extra-builds.yml @@ -45,6 +45,11 @@ jobs: - name: Setup MSVC uses: ilammy/msvc-dev-cmd@v1 + - name: ccache + uses: hendrikmuhs/ccache-action@v1.2.23 + with: + key: vs-build + - name: Install flex/bison shell: pwsh run: | @@ -57,8 +62,9 @@ jobs: - name: Configure CMake run: > cmake -S . -B build - -A x64 + -G Ninja -DCMAKE_BUILD_TYPE=Release + -DYOSYS_COMPILER_LAUNCHER=ccache - name: Build run: > @@ -85,6 +91,11 @@ jobs: install: >- base-devel + bison + flex + gawk + diffutils + make mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake mingw-w64-x86_64-gtest @@ -93,13 +104,12 @@ jobs: mingw-w64-x86_64-tcl mingw-w64-x86_64-libffi mingw-w64-x86_64-git + mingw-w64-x86_64-ccache - msys2-install: >- - bison - flex - gawk - diffutils - make + - name: ccache + uses: hendrikmuhs/ccache-action@v1.2.23 + with: + key: mingw-build - name: Build Yosys shell: msys2 {0} @@ -107,7 +117,7 @@ jobs: set -e procs=$(nproc) rm -rf build - cmake -S . -B build -DCMAKE_BUILD_TYPE=Release + cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DYOSYS_COMPILER_LAUNCHER=ccache cmake --build build -j${procs} ctest --test-dir build/tests/unit --output-on-failure @@ -121,6 +131,11 @@ jobs: with: submodules: true persist-credentials: false + - name: ccache + uses: hendrikmuhs/ccache-action@v1.2.23 + with: + key: wasi-build + - name: Build run: | WASI_VER=33 @@ -140,7 +155,7 @@ jobs: make install) export PATH=${WASI_SDK_PATH}/bin:$(pwd)/flex-prefix/bin:${PATH} - cmake -B build -DCMAKE_TOOLCHAIN_FILE=${WASI_SDK_PATH}/share/cmake/wasi-sdk-p1.cmake -DCMAKE_BUILD_TYPE=Release . + cmake -B build -DCMAKE_TOOLCHAIN_FILE=${WASI_SDK_PATH}/share/cmake/wasi-sdk-p1.cmake -DCMAKE_BUILD_TYPE=Release -DYOSYS_COMPILER_LAUNCHER=ccache . cmake --build build -j$(nproc) nix-build: diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index e09fd9eb3..6edf4fb25 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -79,11 +79,16 @@ jobs: runs-on: ${{ matrix.os }} get-build-deps: true + - name: ccache + uses: hendrikmuhs/ccache-action@v1.2.23 + with: + key: test-build-${{ matrix.os }} + - name: Build shell: bash run: | rm -rf build - cmake -B build . -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release + cmake -B build . -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release -DYOSYS_COMPILER_LAUNCHER=ccache cmake --build build -j$procs ctest --test-dir build/tests/unit diff --git a/.github/workflows/test-compile.yml b/.github/workflows/test-compile.yml index 3093e8dfd..87798c3a1 100644 --- a/.github/workflows/test-compile.yml +++ b/.github/workflows/test-compile.yml @@ -69,6 +69,11 @@ jobs: runs-on: ${{ matrix.os }} get-build-deps: true + - name: ccache + uses: hendrikmuhs/ccache-action@v1.2.23 + with: + key: test-compile-${{ matrix.os }}-${{ matrix.compiler }} + - name: Setup Cpp uses: aminya/setup-cpp@v1 with: @@ -91,7 +96,7 @@ jobs: shell: bash run: | rm -rf build - cmake -B build -DCMAKE_CXX_STANDARD=20 . --fresh + cmake -B build -DCMAKE_CXX_STANDARD=20 -DYOSYS_COMPILER_LAUNCHER=ccache . --fresh cmake --build build --target yosys -j$procs # maximum standard, only on newest compilers @@ -100,7 +105,7 @@ jobs: shell: bash run: | rm -rf build - cmake -B build -DCMAKE_CXX_STANDARD=26 . --fresh + cmake -B build -DCMAKE_CXX_STANDARD=26 -DYOSYS_COMPILER_LAUNCHER=ccache . --fresh cmake --build build --target yosys -j$procs test-compile-result: diff --git a/.github/workflows/test-sanitizers.yml b/.github/workflows/test-sanitizers.yml index d6c77fcf1..94ef62f04 100644 --- a/.github/workflows/test-sanitizers.yml +++ b/.github/workflows/test-sanitizers.yml @@ -60,13 +60,19 @@ jobs: get-test-deps: true get-iverilog: true + - name: ccache + uses: hendrikmuhs/ccache-action@v1.2.23 + with: + key: test-san-${{ matrix.os }} + - name: Build shell: bash run: | rm -rf build cmake -B build . \ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \ - -DCMAKE_BUILD_TYPE=Sanitize -DSANITIZE=${{ matrix.sanitizer }} + -DCMAKE_BUILD_TYPE=Sanitize -DSANITIZE=${{ matrix.sanitizer }} \ + -DYOSYS_COMPILER_LAUNCHER=ccache cmake --build build -j$procs - name: Log yosys-config output From 3f4fa079f83a05169af4e04ed5d5ceaef0da769b Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 26 Jun 2026 08:06:44 +0200 Subject: [PATCH 3/9] Upgrade base github actions --- .github/workflows/codeql.yml | 2 +- .github/workflows/extra-builds.yml | 8 ++++---- .github/workflows/prepare-docs.yml | 4 ++-- .github/workflows/source-vendor.yml | 2 +- .github/workflows/test-build.yml | 12 ++++++------ .github/workflows/test-compile.yml | 2 +- .github/workflows/test-sanitizers.yml | 2 +- .github/workflows/test-verific-cfg.yml | 2 +- .github/workflows/test-verific.yml | 6 +++--- .github/workflows/wheels.yml | 2 +- 10 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e020b459a..708f6e4ac 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v5 + uses: actions/checkout@v7 with: submodules: true persist-credentials: false diff --git a/.github/workflows/extra-builds.yml b/.github/workflows/extra-builds.yml index 788e12c29..2e2dafa21 100644 --- a/.github/workflows/extra-builds.yml +++ b/.github/workflows/extra-builds.yml @@ -37,7 +37,7 @@ jobs: needs: [pre_job] if: (github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch') && needs.pre_job.outputs.should_skip != 'true' steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v7 with: submodules: true persist-credentials: false @@ -78,7 +78,7 @@ jobs: needs: [pre_job] if: (github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch') && needs.pre_job.outputs.should_skip != 'true' steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v7 with: submodules: true persist-credentials: false @@ -127,7 +127,7 @@ jobs: if: (github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch') && needs.pre_job.outputs.should_skip != 'true' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v7 with: submodules: true persist-credentials: false @@ -168,7 +168,7 @@ jobs: os: [ubuntu-latest, macos-latest] fail-fast: false steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v7 with: submodules: true persist-credentials: false diff --git a/.github/workflows/prepare-docs.yml b/.github/workflows/prepare-docs.yml index ff2b96872..7e0237f35 100644 --- a/.github/workflows/prepare-docs.yml +++ b/.github/workflows/prepare-docs.yml @@ -46,7 +46,7 @@ jobs: runs-on: [self-hosted, linux, x64, fast] steps: - name: Checkout Yosys - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: persist-credentials: false submodules: true @@ -72,7 +72,7 @@ jobs: cmake --build build --target docs-prepare -j$procs - name: Upload artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: cmd-ref-${{ github.sha }} path: | diff --git a/.github/workflows/source-vendor.yml b/.github/workflows/source-vendor.yml index d85b2af08..b64306c29 100644 --- a/.github/workflows/source-vendor.yml +++ b/.github/workflows/source-vendor.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository with submodules - uses: actions/checkout@v5 + uses: actions/checkout@v7 with: submodules: 'recursive' persist-credentials: false diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 6edf4fb25..c1ce56008 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -68,7 +68,7 @@ jobs: fail-fast: false steps: - name: Checkout Yosys - uses: actions/checkout@v5 + uses: actions/checkout@v7 with: submodules: true persist-credentials: false @@ -122,7 +122,7 @@ jobs: fail-fast: false steps: - name: Checkout Yosys - uses: actions/checkout@v5 + uses: actions/checkout@v7 with: persist-credentials: false @@ -171,7 +171,7 @@ jobs: os: [ubuntu-latest] steps: - name: Checkout Yosys - uses: actions/checkout@v5 + uses: actions/checkout@v7 with: persist-credentials: false @@ -209,7 +209,7 @@ jobs: fail-fast: false steps: - name: Checkout Yosys - uses: actions/checkout@v5 + uses: actions/checkout@v7 with: persist-credentials: false @@ -251,7 +251,7 @@ jobs: fail-fast: false steps: - name: Checkout Yosys - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: submodules: true persist-credentials: false @@ -281,7 +281,7 @@ jobs: cmake --build build --target docs-${{ matrix.docs-target }} -j$procs - name: Store docs build artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: docs-build-${{ matrix.docs-target }} path: docs/build/ diff --git a/.github/workflows/test-compile.yml b/.github/workflows/test-compile.yml index 87798c3a1..77a85ac6e 100644 --- a/.github/workflows/test-compile.yml +++ b/.github/workflows/test-compile.yml @@ -58,7 +58,7 @@ jobs: fail-fast: false steps: - name: Checkout Yosys - uses: actions/checkout@v5 + uses: actions/checkout@v7 with: submodules: true persist-credentials: false diff --git a/.github/workflows/test-sanitizers.yml b/.github/workflows/test-sanitizers.yml index 94ef62f04..4575c961e 100644 --- a/.github/workflows/test-sanitizers.yml +++ b/.github/workflows/test-sanitizers.yml @@ -47,7 +47,7 @@ jobs: fail-fast: false steps: - name: Checkout Yosys - uses: actions/checkout@v5 + uses: actions/checkout@v7 with: submodules: true persist-credentials: false diff --git a/.github/workflows/test-verific-cfg.yml b/.github/workflows/test-verific-cfg.yml index 6721c0c9b..733eb2989 100644 --- a/.github/workflows/test-verific-cfg.yml +++ b/.github/workflows/test-verific-cfg.yml @@ -9,7 +9,7 @@ jobs: runs-on: [self-hosted, linux, x64, fast] steps: - name: Checkout Yosys - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: persist-credentials: false submodules: true diff --git a/.github/workflows/test-verific.yml b/.github/workflows/test-verific.yml index 9143c2f19..28bcb2d3a 100644 --- a/.github/workflows/test-verific.yml +++ b/.github/workflows/test-verific.yml @@ -37,7 +37,7 @@ jobs: runs-on: [self-hosted, linux, x64, fast] steps: - name: Checkout Yosys - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: persist-credentials: false submodules: true @@ -70,7 +70,7 @@ jobs: cmake --build build --target install - name: Checkout SBY - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: repository: 'YosysHQ/sby' path: 'sby' @@ -125,7 +125,7 @@ jobs: runs-on: [self-hosted, linux, x64, fast] steps: - name: Checkout Yosys - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: persist-credentials: false submodules: true diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index e6381a637..043c9a664 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -47,7 +47,7 @@ jobs: name: Build Wheels | ${{ matrix.os.name }} | ${{ matrix.os.archs }} runs-on: ${{ matrix.os.runner }} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v7 with: fetch-depth: 0 submodules: true From b8459c9deca01d0f60206b846b8d115eda351d6d Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 26 Jun 2026 08:08:22 +0200 Subject: [PATCH 4/9] Use forked skip-duplicate-actions --- .github/workflows/extra-builds.yml | 2 +- .github/workflows/prepare-docs.yml | 2 +- .github/workflows/test-build.yml | 4 ++-- .github/workflows/test-compile.yml | 2 +- .github/workflows/test-sanitizers.yml | 2 +- .github/workflows/test-verific.yml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/extra-builds.yml b/.github/workflows/extra-builds.yml index 2e2dafa21..83ffd5e02 100644 --- a/.github/workflows/extra-builds.yml +++ b/.github/workflows/extra-builds.yml @@ -15,7 +15,7 @@ jobs: steps: - id: skip_check if: ${{ github.event_name != 'merge_group' }} - uses: fkirc/skip-duplicate-actions@v5 + uses: mmicko/skip-duplicate-actions@master with: # don't run on documentation changes paths_ignore: '["**/README.md", "docs/**", "guidelines/**"]' diff --git a/.github/workflows/prepare-docs.yml b/.github/workflows/prepare-docs.yml index 7e0237f35..32f4619f7 100644 --- a/.github/workflows/prepare-docs.yml +++ b/.github/workflows/prepare-docs.yml @@ -18,7 +18,7 @@ jobs: docs_export: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/docs-preview') || startsWith(github.ref, 'refs/tags/') }} steps: - id: skip_check - uses: fkirc/skip-duplicate-actions@v5 + uses: mmicko/skip-duplicate-actions@master with: paths_ignore: '["**/README.md"]' # don't cancel in case we're updating docs diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index c1ce56008..807873fbf 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -15,7 +15,7 @@ jobs: steps: - id: skip_check if: ${{ github.event_name != 'merge_group' }} - uses: fkirc/skip-duplicate-actions@v5 + uses: mmicko/skip-duplicate-actions@master with: # don't run on documentation changes paths_ignore: '["**/README.md", "docs/**", "guidelines/**"]' @@ -38,7 +38,7 @@ jobs: steps: - id: skip_check if: ${{ github.event_name != 'merge_group' }} - uses: fkirc/skip-duplicate-actions@v5 + uses: mmicko/skip-duplicate-actions@master with: # don't run on readme changes paths_ignore: '["**/README.md"]' diff --git a/.github/workflows/test-compile.yml b/.github/workflows/test-compile.yml index 77a85ac6e..5d14e666e 100644 --- a/.github/workflows/test-compile.yml +++ b/.github/workflows/test-compile.yml @@ -15,7 +15,7 @@ jobs: steps: - id: skip_check if: ${{ github.event_name != 'merge_group' }} - uses: fkirc/skip-duplicate-actions@v5 + uses: mmicko/skip-duplicate-actions@master with: # don't run on documentation changes paths_ignore: '["**/README.md", "docs/**", "guidelines/**"]' diff --git a/.github/workflows/test-sanitizers.yml b/.github/workflows/test-sanitizers.yml index 4575c961e..7cb6cf33f 100644 --- a/.github/workflows/test-sanitizers.yml +++ b/.github/workflows/test-sanitizers.yml @@ -15,7 +15,7 @@ jobs: steps: - id: skip_check if: ${{ github.event_name != 'merge_group' }} - uses: fkirc/skip-duplicate-actions@v5 + uses: mmicko/skip-duplicate-actions@master with: # don't run on documentation changes paths_ignore: '["**/README.md", "docs/**", "guidelines/**"]' diff --git a/.github/workflows/test-verific.yml b/.github/workflows/test-verific.yml index 28bcb2d3a..f268f4b65 100644 --- a/.github/workflows/test-verific.yml +++ b/.github/workflows/test-verific.yml @@ -15,7 +15,7 @@ jobs: steps: - id: skip_check if: ${{ github.event_name != 'merge_group' }} - uses: fkirc/skip-duplicate-actions@v5 + uses: mmicko/skip-duplicate-actions@master with: # don't run on documentation changes paths_ignore: '["**/README.md", "docs/**", "guidelines/**"]' From f1820e44231a7267f0c91e1aa250cca91107b9ae Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 26 Jun 2026 08:08:53 +0200 Subject: [PATCH 5/9] Use updated msvc-dev-cmd action --- .github/workflows/extra-builds.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/extra-builds.yml b/.github/workflows/extra-builds.yml index 83ffd5e02..9d39089f1 100644 --- a/.github/workflows/extra-builds.yml +++ b/.github/workflows/extra-builds.yml @@ -43,7 +43,9 @@ jobs: persist-credentials: false - name: Setup MSVC - uses: ilammy/msvc-dev-cmd@v1 + uses: TheMrMilchmann/setup-msvc-dev@v4 + with: + arch: x64 - name: ccache uses: hendrikmuhs/ccache-action@v1.2.23 From 53138724dbb472b1ced05eedaecf3d3eb58fec2d Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 26 Jun 2026 08:09:10 +0200 Subject: [PATCH 6/9] Remove intel macOS compiler --- .github/workflows/test-compile.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/test-compile.yml b/.github/workflows/test-compile.yml index 5d14e666e..808f2a962 100644 --- a/.github/workflows/test-compile.yml +++ b/.github/workflows/test-compile.yml @@ -49,9 +49,6 @@ jobs: - 'clang-22' - 'gcc-16' include: - # macOS x86 - - os: macos-15-intel - compiler: 'clang-22' # macOS arm - os: macos-latest compiler: 'clang-22' From 18902ddd3423de0e85769cdf543f6eac7debb634 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 26 Jun 2026 08:11:16 +0200 Subject: [PATCH 7/9] Fix formatting --- .github/workflows/extra-builds.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/extra-builds.yml b/.github/workflows/extra-builds.yml index 9d39089f1..7963a411d 100644 --- a/.github/workflows/extra-builds.yml +++ b/.github/workflows/extra-builds.yml @@ -133,6 +133,7 @@ jobs: with: submodules: true persist-credentials: false + - name: ccache uses: hendrikmuhs/ccache-action@v1.2.23 with: From bd1cb398e4ccaf19cada48c9ad7da021af569fe6 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 26 Jun 2026 10:11:15 +0200 Subject: [PATCH 8/9] Update iverilog and build-env --- .github/actions/setup-build-env/action.yml | 8 ++++---- .github/actions/setup-iverilog/action.yml | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/actions/setup-build-env/action.yml b/.github/actions/setup-build-env/action.yml index c1d3e2b01..b61bb95ac 100644 --- a/.github/actions/setup-build-env/action.yml +++ b/.github/actions/setup-build-env/action.yml @@ -33,21 +33,21 @@ runs: # and docs/source/getting_started/installation.rst to match. - name: Linux common dependencies if: runner.os == 'Linux' - uses: awalsh128/cache-apt-pkgs-action@v1.6.0 + uses: awalsh128/cache-apt-pkgs-action@v1.6.1 with: packages: gawk git make python3 version: ${{ inputs.runs-on }}-commonys - name: Linux build dependencies if: runner.os == 'Linux' && inputs.get-build-deps == 'true' - uses: awalsh128/cache-apt-pkgs-action@v1.6.0 + uses: awalsh128/cache-apt-pkgs-action@v1.6.1 with: packages: bison clang flex libffi-dev libfl-dev libreadline-dev pkg-config tcl-dev zlib1g-dev libgtest-dev libgmock-dev version: ${{ inputs.runs-on }}-buildys - name: Linux docs dependencies if: runner.os == 'Linux' && inputs.get-docs-deps == 'true' - uses: awalsh128/cache-apt-pkgs-action@v1.6.0 + uses: awalsh128/cache-apt-pkgs-action@v1.6.1 with: packages: graphviz xdot version: ${{ inputs.runs-on }}-docsys @@ -70,7 +70,7 @@ runs: shell: bash run: | echo "${{ github.workspace }}/.local/bin" >> $GITHUB_PATH - echo "$(brew --prefix llvm@20)/bin" >> $GITHUB_PATH + echo "$(brew --prefix llvm)/bin" >> $GITHUB_PATH echo "$(brew --prefix bison)/bin" >> $GITHUB_PATH echo "$(brew --prefix flex)/bin" >> $GITHUB_PATH echo "procs=$(sysctl -n hw.ncpu)" >> $GITHUB_ENV diff --git a/.github/actions/setup-iverilog/action.yml b/.github/actions/setup-iverilog/action.yml index 0acb582e3..3457303e2 100644 --- a/.github/actions/setup-iverilog/action.yml +++ b/.github/actions/setup-iverilog/action.yml @@ -11,7 +11,7 @@ runs: steps: - name: iverilog Linux deps if: steps.restore-iverilog.outputs.cache-hit != 'true' && runner.os == 'Linux' - uses: awalsh128/cache-apt-pkgs-action@v1.6.0 + uses: awalsh128/cache-apt-pkgs-action@v1.6.1 with: packages: autoconf gperf make gcc g++ bison flex libbz2-dev version: ${{ inputs.runs-on }}-iverilog @@ -40,7 +40,7 @@ runs: make -j$procs make install - - uses: actions/cache/restore@v4 + - uses: actions/cache/restore@v6 id: restore-iverilog with: path: .local/ @@ -62,7 +62,7 @@ runs: run: | iverilog -V - - uses: actions/cache/save@v4 + - uses: actions/cache/save@v6 id: save-iverilog if: steps.restore-iverilog.outputs.cache-hit != 'true' with: From cefe7266b1793b4cefc0c89ea8bc4d961adcfa9c Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 26 Jun 2026 10:55:28 +0200 Subject: [PATCH 9/9] Add restore keys --- .github/workflows/extra-builds.yml | 6 ++++++ .github/workflows/test-build.yml | 2 ++ .github/workflows/test-compile.yml | 2 ++ .github/workflows/test-sanitizers.yml | 2 ++ 4 files changed, 12 insertions(+) diff --git a/.github/workflows/extra-builds.yml b/.github/workflows/extra-builds.yml index 7963a411d..411fd9f55 100644 --- a/.github/workflows/extra-builds.yml +++ b/.github/workflows/extra-builds.yml @@ -51,6 +51,8 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2.23 with: key: vs-build + restore-keys: | + vs-build- - name: Install flex/bison shell: pwsh @@ -112,6 +114,8 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2.23 with: key: mingw-build + restore-keys: | + mingw-build- - name: Build Yosys shell: msys2 {0} @@ -138,6 +142,8 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2.23 with: key: wasi-build + restore-keys: | + wasi-build- - name: Build run: | diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 807873fbf..0c8ac6b90 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -83,6 +83,8 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2.23 with: key: test-build-${{ matrix.os }} + restore-keys: | + test-build-${{ matrix.os }}- - name: Build shell: bash diff --git a/.github/workflows/test-compile.yml b/.github/workflows/test-compile.yml index 808f2a962..fafa82894 100644 --- a/.github/workflows/test-compile.yml +++ b/.github/workflows/test-compile.yml @@ -70,6 +70,8 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2.23 with: key: test-compile-${{ matrix.os }}-${{ matrix.compiler }} + restore-keys: | + test-compile-${{ matrix.os }}-${{ matrix.compiler }}- - name: Setup Cpp uses: aminya/setup-cpp@v1 diff --git a/.github/workflows/test-sanitizers.yml b/.github/workflows/test-sanitizers.yml index 7cb6cf33f..5439b16b4 100644 --- a/.github/workflows/test-sanitizers.yml +++ b/.github/workflows/test-sanitizers.yml @@ -64,6 +64,8 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2.23 with: key: test-san-${{ matrix.os }} + restore-keys: | + test-san-${{ matrix.os }}- - name: Build shell: bash