From 0ec60347b0ccea83e9aa1318cbf8bfaf65ee3c08 Mon Sep 17 00:00:00 2001 From: Kumonda221 Date: Thu, 30 May 2024 00:04:21 +0800 Subject: [PATCH 01/13] workflows: added surrounding build CI --- .github/workflows/build.yml | 218 ++++++++++++++++++++++++++++++++++++ 1 file changed, 218 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..65c9571 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,218 @@ +name: build + +on: + push: + pull_request: + workflow_dispatch: + schedule: + - cron: '0 0 * * 0' + +env: + CI_OS_NAME: linux + CI_COMMIT: ${{ github.sha }} + CCACHE_COMPRESS: 1 + CCACHE_DIR: ${{ github.workspace }}/.ccache + CCACHE_LIMIT_MULTIPLE: 0.95 + INSTALL_DIR: ${{ github.workspace }}/install + +defaults: + run: + shell: bash + working-directory: repo + +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_reqeust' && github.ref || github.run_id }} + cancel-in-progress: true + +jobs: + + prebuild-ootb-coupledL2: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + runs-on: ${{ matrix.os }} + name: Pre-Build | OOTB CoupledL2 + env: + COUPLEDL2_ARCHIVE: coupledL2-${{ github.sha }}.tar.gz + + steps: + + - name: Checkout + uses: actions/checkout@v4 + with: + path: repo + submodules: recursive + + - name: Setup Scala + uses: olafurpg/setup-scala@v10 + + - name: Setup Mill + run: | + sh -c "curl -L https://github.com/com-lihaoyi/mill/releases/download/0.11.1/0.11.1 > /usr/local/bin/mill && chmod +x /usr/local/bin/mill" + + - name: Compile + run: | + make coupledL2-compile + + - name: Build verilog + run: | + make coupledL2-verilog-test-top-l2l3l2 + + - name: Tar up repository + working-directory: ${{ github.workspace }} + run: tar -zcf ${{ env.COUPLEDL2_ARCHIVE }} repo/dut/CoupledL2 + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + path: ${{ github.workspace }}/${{ env.COUPLEDL2_ARCHIVE }} + name: ${{ env.COUPLEDL2_ARCHIVE }} + + build: + needs: prebuild-ootb-coupledL2 + strategy: + fail-fast: false + matrix: + include: + - { os: ubuntu-22.04, compiler: { cc: clang-16, cxx: clang++-16 } } + - { os: ubuntu-22.04, compiler: { cc: gcc, cxx: g++ } } + - { os: ubuntu-20.04, compiler: { cc: clang-16, cxx: clang++-16 } } + runs-on: ${{ matrix.os }} + name: Build | ${{ matrix.os }} | ${{ matrix.compiler.cc }} + env: + CI_BUILD_STAGE_NAME: build + CI_RUNS_ON: ${{ matrix.os }} + CC: ${{ matrix.compiler.cc }} + CXX: ${{ matrix.compiler.cxx }} + CACHE_BASE_KEY: build-${{ matrix.os }}-${{ matrix.compiler.cc }} + CCACHE_MAXSIZE: 256M + COUPLEDL2_ARCHIVE: coupledL2-${{ github.sha }}.tar.gz + TLTEST_ARCHIVE: tl-test-new-${{ github.sha }}-${{ matrix.os }}-${{ matrix.compiler.cc }}.tar.gz + steps: + + - name: Checkout + uses: actions/checkout@v4 + with: + path: repo + + - name: Setup Clang 16 + if: matrix.compiler.cc == 'clang-16' + working-directory: ${{ github.workspace }} + run: | + wget https://apt.llvm.org/llvm.sh + chmod u+x llvm.sh + sudo ./llvm.sh 16 + + - name: Setup Verilator + working-directory: ${{ github.workspace }} + run: | + sudo apt-get install git help2man perl python3 make autoconf g++ flex bison clang + sudo apt-get install libfl2 # Ubuntu only (ignore if gives error) + sudo apt-get install libfl-dev # Ubuntu only (ignore if gives error) + sudo apt-get install zlib1g zlib1g-dev # Ubuntu only (ignore if gives error) + git clone https://github.com/verilator/verilator + unset VERILATOR_ROOT + cd verilator + git checkout v5.020 + autoconf + ./configure CC=${{ matrix.compiler.cc }} CXX=${{ matrix.compiler.cxx }} LINK=${{ matrix.compiler.cxx }} + make -j4 + sudo make install + verilator --version + + - name: Download artifact + uses: actions/download-artifact@v4 + with: + name: ${{ env.COUPLEDL2_ARCHIVE }} + path: ${{ github.workspace }} + + - name: Unpack artifact + working-directory: ${{ github.workspace }} + run: tar -zxf ${{ env.COUPLEDL2_ARCHIVE }} + + - name: Cache $CCACHE_DIR + uses: actions/cache@v4 + env: + CACHE_KEY: ${{ env.CACHE_BASE_KEY }}-ccache + with: + path: ${{ env.CCACHE_DIR }} + key: ${{ env.CACHE_KEY }}-${{ github.sha }} + restore_keys: | + ${{ env.CACHE_KEY }}- + + - name: Verilate CoupledL2 + run: | + make THREADS_BUILD=4 coupledL2-verilate + + - name: Configurate TL-Test-New for CoupledL2 + run: | + make THREADS_BUILD=4 tltest-config-coupledL2-test-l2l3l2 + + - name: Build TL-Test-New for CoupledL2 + run: | + make THREADS_BUILD=4 tltest-build-all + + - name: Tar up repository + working-directory: ${{ github.workspace }} + run: tar -zcf ${{ env.TLTEST_ARCHIVE }} repo + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + path: ${{ github.workspace }}/${{ env.TLTEST_ARCHIVE }} + name: ${{ env.TLTEST_ARCHIVE }} + + run: + needs: build + strategy: + fail-fast: false + matrix: + include: + - { os: ubuntu-22.04, compiler: { cc: clang-16, cxx: clang++-16 } } + - { os: ubuntu-22.04, compiler: { cc: gcc, cxx: g++ } } + - { os: ubuntu-20.04, compiler: { cc: clang-16, cxx: clang++-16 } } + runs-on: ${{ matrix.os }} + name: Run | ${{ matrix.os }} | ${{ matrix.compiler.cc }} + env: + CI_BUILD_STAGE_NAME: build + CI_RUNS_ON: ${{ matrix.os }} + CC: ${{ matrix.compiler.cc }} + CXX: ${{ matrix.compiler.cxx }} + CACHE_BASE_KEY: build-${{ matrix.os }}-${{ matrix.compiler.cc }} + CCACHE_MAXSIZE: 256M + TLTEST_ARCHIVE: tl-test-new-${{ github.sha }}-${{ matrix.os }}-${{ matrix.compiler.cc }}.tar.gz + RUN_ARCHIVE: tl-test-new-run-${{ github.sha }}-${{ matrix.os }}-${{ matrix.compiler.cc }}.tar.gz + steps: + + - name: Setup Clang 16 + if: matrix.compiler.cc == 'clang-16' + working-directory: ${{ github.workspace }} + run: | + wget https://apt.llvm.org/llvm.sh + chmod u+x llvm.sh + sudo ./llvm.sh 16 + + - name: Download artifact + uses: actions/download-artifact@v4 + with: + name: ${{ env.TLTEST_ARCHIVE }} + path: ${{ github.workspace }} + + - name: Unpack artifact + working-directory: ${{ github.workspace }} + run: tar -zxf ${{ env.TLTEST_ARCHIVE }} + + - name: Run TL-Test-New for CoupledL2 + run: | + make run + + - name: Tar up repository + working-directory: ${{ github.workspace }} + run: tar -zcf ${{ env.RUN_ARCHIVE }} repo + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + path: ${{ github.workspace }}/${{ env.RUN_ARCHIVE }} + name: ${{ env.RUN_ARCHIVE }} From 51295e4d83502bb2e918b48f70d00fe4b60c0f5f Mon Sep 17 00:00:00 2001 From: Kumonda221 Date: Thu, 30 May 2024 00:08:39 +0800 Subject: [PATCH 02/13] scripts: wrapped runner for verilator executable --- Makefile | 4 ++-- scripts/run_v3lt.sh | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 scripts/run_v3lt.sh diff --git a/Makefile b/Makefile index 37acc71..111ee31 100644 --- a/Makefile +++ b/Makefile @@ -113,7 +113,7 @@ run: FORCE tltest-config-postbuild @cp ./main/build/tltest_v3lt ./run/ @cp ./main/build/tltest_portgen.so ./run/ @cp ./main/build/tltest.ini ./run/ - @cd ./run && ./tltest_v3lt 2>&1 | tee tltest_v3lt.log + @bash ./scripts/run_v3lt.sh run-with-portgen: FORCE tltest-config-postbuild tltest-portgen @rm -rf ./run @@ -121,7 +121,7 @@ run-with-portgen: FORCE tltest-config-postbuild tltest-portgen @cp ./main/build/tltest_v3lt ./run/ @cp ./main/build/tltest_portgen.so ./run/ @cp ./main/build/tltest.ini ./run/ - @cd ./run && ./tltest_v3lt 2>&1 | tee tltest_v3lt.log + @bash ./scripts/run_v3lt.sh clean: coupledL2-verilate-clean coupledL2-verilog-clean tltest-clean diff --git a/scripts/run_v3lt.sh b/scripts/run_v3lt.sh new file mode 100644 index 0000000..6f71d8d --- /dev/null +++ b/scripts/run_v3lt.sh @@ -0,0 +1,9 @@ +#!/bin/bash +cd ./run && ./tltest_v3lt 2>&1 | tee tltest_v3lt.log +exit ${PIPESTATUS[0]} + +# NOTICE: +# * Wrap executable with piped tee to save log. +# * Keep the logging procedure simple for now, sophisticated implementation +# might be available in future. +# From fecabf1d45bac222fdec9c04f894f69a13f63d58 Mon Sep 17 00:00:00 2001 From: Kumonda221 Date: Thu, 30 May 2024 10:27:48 +0800 Subject: [PATCH 03/13] Bump CoupledL2 --- dut/CoupledL2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dut/CoupledL2 b/dut/CoupledL2 index 9d36cd2..50b2610 160000 --- a/dut/CoupledL2 +++ b/dut/CoupledL2 @@ -1 +1 @@ -Subproject commit 9d36cd29600af9f7cf4e28914c80c8e9d2c0f788 +Subproject commit 50b261057e9562973a855779c4ffdf75b3b49c0d From 277e0c2be28f29acfbc6459dbfae2fe780f15a09 Mon Sep 17 00:00:00 2001 From: Kumonda221 Date: Thu, 30 May 2024 10:42:08 +0800 Subject: [PATCH 04/13] workflows: renamed CoupledL2 workflow --- .github/workflows/{build.yml => scenario-CoupledL2.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{build.yml => scenario-CoupledL2.yml} (99%) diff --git a/.github/workflows/build.yml b/.github/workflows/scenario-CoupledL2.yml similarity index 99% rename from .github/workflows/build.yml rename to .github/workflows/scenario-CoupledL2.yml index 65c9571..bc889dd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/scenario-CoupledL2.yml @@ -1,4 +1,4 @@ -name: build +name: scenario-CoupledL2 on: push: From 90c4f652d6024c5a8f443356b51713b336ad46f1 Mon Sep 17 00:00:00 2001 From: Kumonda221 Date: Thu, 30 May 2024 10:42:27 +0800 Subject: [PATCH 05/13] README: update README with CI badge --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cc77515..ce40f05 100755 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # TL-Test-New +![Scenario: CoupledL2](https://github.com/OpenXiangShan/tl-test-new/actions/workflows/scenario-CoupledL2.yml/badge.svg?branch=master) + > TL-Test-New > The **Unified TileLink Memory Subsystem Tester for XiangShan** > @@ -15,7 +17,6 @@ > ██║ ███████╗ ██║ ███████╗███████║ ██║ ██║ ╚████║███████╗╚███╔███╔╝ > ╚═╝ ╚══════╝ ╚═╝ ╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═══╝╚══════╝ ╚══╝╚══╝ > ``` ->   From 207b38168267adb0ae04c67e9df8c526cae3c2ac Mon Sep 17 00:00:00 2001 From: Kumonda221 Date: Thu, 30 May 2024 10:53:28 +0800 Subject: [PATCH 06/13] workflows: clean up source files after solid build --- .github/workflows/scenario-CoupledL2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/scenario-CoupledL2.yml b/.github/workflows/scenario-CoupledL2.yml index bc889dd..dd586a4 100644 --- a/.github/workflows/scenario-CoupledL2.yml +++ b/.github/workflows/scenario-CoupledL2.yml @@ -155,7 +155,7 @@ jobs: - name: Tar up repository working-directory: ${{ github.workspace }} - run: tar -zcf ${{ env.TLTEST_ARCHIVE }} repo + run: tar -zcf ${{ env.TLTEST_ARCHIVE }} repo/main/build repo/configs repo/Makefile - name: Upload artifact uses: actions/upload-artifact@v4 From 236e9df250cfb22697f802d2abe94beaeec1a54c Mon Sep 17 00:00:00 2001 From: Kumonda221 Date: Thu, 30 May 2024 11:07:10 +0800 Subject: [PATCH 07/13] workflows: include script files for solid build --- .github/workflows/scenario-CoupledL2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/scenario-CoupledL2.yml b/.github/workflows/scenario-CoupledL2.yml index dd586a4..2343a4e 100644 --- a/.github/workflows/scenario-CoupledL2.yml +++ b/.github/workflows/scenario-CoupledL2.yml @@ -155,7 +155,7 @@ jobs: - name: Tar up repository working-directory: ${{ github.workspace }} - run: tar -zcf ${{ env.TLTEST_ARCHIVE }} repo/main/build repo/configs repo/Makefile + run: tar -zcf ${{ env.TLTEST_ARCHIVE }} repo/main/build repo/configs repo/scripts repo/Makefile - name: Upload artifact uses: actions/upload-artifact@v4 From 0ae3212fb64a7699158465abb094c0fcc013bad7 Mon Sep 17 00:00:00 2001 From: Kumonda221 Date: Thu, 30 May 2024 11:24:23 +0800 Subject: [PATCH 08/13] workflows: clean up source files after CoupledL2 verilog build --- .github/workflows/scenario-CoupledL2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/scenario-CoupledL2.yml b/.github/workflows/scenario-CoupledL2.yml index 2343a4e..57f4bf0 100644 --- a/.github/workflows/scenario-CoupledL2.yml +++ b/.github/workflows/scenario-CoupledL2.yml @@ -61,7 +61,7 @@ jobs: - name: Tar up repository working-directory: ${{ github.workspace }} - run: tar -zcf ${{ env.COUPLEDL2_ARCHIVE }} repo/dut/CoupledL2 + run: tar -zcf ${{ env.COUPLEDL2_ARCHIVE }} repo/dut/CoupledL2/build - name: Upload artifact uses: actions/upload-artifact@v4 From ee3dd9c7e6663dd3bfddcf45d9cbac028d433e14 Mon Sep 17 00:00:00 2001 From: Kumonda221 Date: Thu, 30 May 2024 11:40:40 +0800 Subject: [PATCH 09/13] workflows: enable ccache and discard run artifacts --- .github/workflows/scenario-CoupledL2.yml | 26 ++++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/scenario-CoupledL2.yml b/.github/workflows/scenario-CoupledL2.yml index 57f4bf0..8d34bda 100644 --- a/.github/workflows/scenario-CoupledL2.yml +++ b/.github/workflows/scenario-CoupledL2.yml @@ -107,10 +107,10 @@ jobs: - name: Setup Verilator working-directory: ${{ github.workspace }} run: | - sudo apt-get install git help2man perl python3 make autoconf g++ flex bison clang - sudo apt-get install libfl2 # Ubuntu only (ignore if gives error) - sudo apt-get install libfl-dev # Ubuntu only (ignore if gives error) - sudo apt-get install zlib1g zlib1g-dev # Ubuntu only (ignore if gives error) + sudo apt-get install -y git help2man perl python3 make autoconf g++ flex bison clang ccache + sudo apt-get install -y libfl2 # Ubuntu only (ignore if gives error) + sudo apt-get install -y libfl-dev # Ubuntu only (ignore if gives error) + sudo apt-get install -y zlib1g zlib1g-dev # Ubuntu only (ignore if gives error) git clone https://github.com/verilator/verilator unset VERILATOR_ROOT cd verilator @@ -138,7 +138,7 @@ jobs: with: path: ${{ env.CCACHE_DIR }} key: ${{ env.CACHE_KEY }}-${{ github.sha }} - restore_keys: | + restore-keys: | ${{ env.CACHE_KEY }}- - name: Verilate CoupledL2 @@ -207,12 +207,12 @@ jobs: run: | make run - - name: Tar up repository - working-directory: ${{ github.workspace }} - run: tar -zcf ${{ env.RUN_ARCHIVE }} repo +# - name: Tar up repository +# working-directory: ${{ github.workspace }} +# run: tar -zcf ${{ env.RUN_ARCHIVE }} repo - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - path: ${{ github.workspace }}/${{ env.RUN_ARCHIVE }} - name: ${{ env.RUN_ARCHIVE }} +# - name: Upload artifact +# uses: actions/upload-artifact@v4 +# with: +# path: ${{ github.workspace }}/${{ env.RUN_ARCHIVE }} +# name: ${{ env.RUN_ARCHIVE }} From 759f0ba998c4d2567ef931e74502f286414be598 Mon Sep 17 00:00:00 2001 From: Kumonda221 Date: Thu, 30 May 2024 11:58:45 +0800 Subject: [PATCH 10/13] README: update README with CI badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ce40f05..e85cf18 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # TL-Test-New -![Scenario: CoupledL2](https://github.com/OpenXiangShan/tl-test-new/actions/workflows/scenario-CoupledL2.yml/badge.svg?branch=master) +[![scenario-CoupledL2](https://github.com/OpenXiangShan/tl-test-new/actions/workflows/scenario-CoupledL2.yml/badge.svg?branch=master)](https://github.com/OpenXiangShan/tl-test-new/actions/workflows/scenario-CoupledL2.yml) > TL-Test-New > The **Unified TileLink Memory Subsystem Tester for XiangShan** From e199d23ac449f38d1f131f3ab8d2fdc1072f94eb Mon Sep 17 00:00:00 2001 From: Kumonda221 Date: Thu, 30 May 2024 12:09:32 +0800 Subject: [PATCH 11/13] workflows: fix misordered CI cache --- .github/workflows/scenario-CoupledL2.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/scenario-CoupledL2.yml b/.github/workflows/scenario-CoupledL2.yml index 8d34bda..68c8144 100644 --- a/.github/workflows/scenario-CoupledL2.yml +++ b/.github/workflows/scenario-CoupledL2.yml @@ -96,6 +96,16 @@ jobs: with: path: repo + - name: Cache $CCACHE_DIR + uses: actions/cache@v4 + env: + CACHE_KEY: ${{ env.CACHE_BASE_KEY }}-ccache + with: + path: ${{ env.CCACHE_DIR }} + key: ${{ env.CACHE_KEY }}-${{ github.sha }} + restore-keys: | + ${{ env.CACHE_KEY }}- + - name: Setup Clang 16 if: matrix.compiler.cc == 'clang-16' working-directory: ${{ github.workspace }} @@ -131,16 +141,6 @@ jobs: working-directory: ${{ github.workspace }} run: tar -zxf ${{ env.COUPLEDL2_ARCHIVE }} - - name: Cache $CCACHE_DIR - uses: actions/cache@v4 - env: - CACHE_KEY: ${{ env.CACHE_BASE_KEY }}-ccache - with: - path: ${{ env.CCACHE_DIR }} - key: ${{ env.CACHE_KEY }}-${{ github.sha }} - restore-keys: | - ${{ env.CACHE_KEY }}- - - name: Verilate CoupledL2 run: | make THREADS_BUILD=4 coupledL2-verilate From f11a3a3b6c04e2bda38c788957d75b3bad9f5bfb Mon Sep 17 00:00:00 2001 From: Kumonda221 Date: Thu, 30 May 2024 13:36:34 +0800 Subject: [PATCH 12/13] workflows: applied global cache for ccache --- .github/workflows/scenario-CoupledL2.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/scenario-CoupledL2.yml b/.github/workflows/scenario-CoupledL2.yml index 68c8144..e6d7c88 100644 --- a/.github/workflows/scenario-CoupledL2.yml +++ b/.github/workflows/scenario-CoupledL2.yml @@ -102,9 +102,7 @@ jobs: CACHE_KEY: ${{ env.CACHE_BASE_KEY }}-ccache with: path: ${{ env.CCACHE_DIR }} - key: ${{ env.CACHE_KEY }}-${{ github.sha }} - restore-keys: | - ${{ env.CACHE_KEY }}- + key: ${{ env.CACHE_KEY }} - name: Setup Clang 16 if: matrix.compiler.cc == 'clang-16' From 262ba68b8b018f134af29a4c6a53522e0f3f58e1 Mon Sep 17 00:00:00 2001 From: Kumonda221 Date: Thu, 30 May 2024 14:02:24 +0800 Subject: [PATCH 13/13] workflows: removed cache of ccache for no significant improvement --- .github/workflows/scenario-CoupledL2.yml | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/.github/workflows/scenario-CoupledL2.yml b/.github/workflows/scenario-CoupledL2.yml index e6d7c88..cdd6241 100644 --- a/.github/workflows/scenario-CoupledL2.yml +++ b/.github/workflows/scenario-CoupledL2.yml @@ -10,9 +10,6 @@ on: env: CI_OS_NAME: linux CI_COMMIT: ${{ github.sha }} - CCACHE_COMPRESS: 1 - CCACHE_DIR: ${{ github.workspace }}/.ccache - CCACHE_LIMIT_MULTIPLE: 0.95 INSTALL_DIR: ${{ github.workspace }}/install defaults: @@ -85,8 +82,6 @@ jobs: CI_RUNS_ON: ${{ matrix.os }} CC: ${{ matrix.compiler.cc }} CXX: ${{ matrix.compiler.cxx }} - CACHE_BASE_KEY: build-${{ matrix.os }}-${{ matrix.compiler.cc }} - CCACHE_MAXSIZE: 256M COUPLEDL2_ARCHIVE: coupledL2-${{ github.sha }}.tar.gz TLTEST_ARCHIVE: tl-test-new-${{ github.sha }}-${{ matrix.os }}-${{ matrix.compiler.cc }}.tar.gz steps: @@ -96,14 +91,6 @@ jobs: with: path: repo - - name: Cache $CCACHE_DIR - uses: actions/cache@v4 - env: - CACHE_KEY: ${{ env.CACHE_BASE_KEY }}-ccache - with: - path: ${{ env.CCACHE_DIR }} - key: ${{ env.CACHE_KEY }} - - name: Setup Clang 16 if: matrix.compiler.cc == 'clang-16' working-directory: ${{ github.workspace }} @@ -115,7 +102,7 @@ jobs: - name: Setup Verilator working-directory: ${{ github.workspace }} run: | - sudo apt-get install -y git help2man perl python3 make autoconf g++ flex bison clang ccache + sudo apt-get install -y git help2man perl python3 make autoconf g++ flex bison clang sudo apt-get install -y libfl2 # Ubuntu only (ignore if gives error) sudo apt-get install -y libfl-dev # Ubuntu only (ignore if gives error) sudo apt-get install -y zlib1g zlib1g-dev # Ubuntu only (ignore if gives error) @@ -177,8 +164,6 @@ jobs: CI_RUNS_ON: ${{ matrix.os }} CC: ${{ matrix.compiler.cc }} CXX: ${{ matrix.compiler.cxx }} - CACHE_BASE_KEY: build-${{ matrix.os }}-${{ matrix.compiler.cc }} - CCACHE_MAXSIZE: 256M TLTEST_ARCHIVE: tl-test-new-${{ github.sha }}-${{ matrix.os }}-${{ matrix.compiler.cc }}.tar.gz RUN_ARCHIVE: tl-test-new-run-${{ github.sha }}-${{ matrix.os }}-${{ matrix.compiler.cc }}.tar.gz steps: