diff --git a/.github/workflows/qemu.yaml b/.github/workflows/qemu.yaml index b45f84fa..5973b3ba 100644 --- a/.github/workflows/qemu.yaml +++ b/.github/workflows/qemu.yaml @@ -25,27 +25,20 @@ jobs: config: - { name: Debug } - { name: Release } - # env: - # CCACHE_CACHE_DIR: /mnt/ccache_cache - # HOST_CCACHE_CACHE_DIR: host_ccache_cache - + steps: - name: Install binfmt-support run: | sudo apt-get update sudo apt-get install binfmt-support - # - name: Create ccache cache dir - # run: | - # mkdir -p ${{ env.HOST_CCACHE_CACHE_DIR }} - - # - name: Cache builds - # uses: actions/cache@v4 - # with: - # key: ${{matrix.target.arch}}_${{matrix.target.distro}}_${{matrix.config.name}}_${{matrix.target.date-polyfill}}_ccache-${{ steps.date.outputs.time }} - # path: ${{ env.HOST_CCACHE_CACHE_DIR }} - # restore-keys: | - # ${{matrix.target.arch}}_${{matrix.target.distro}}_${{matrix.config.name}}_${{matrix.target.date-polyfill}}_ccache- + - name: Cache builds + uses: actions/cache@v4 + with: + key: ${{matrix.target.arch}}_${{matrix.target.distro}}_${{matrix.config.name}}_${{matrix.target.date-polyfill}}_ccache-${{ steps.date.outputs.time }} + path: ${{ github.workspace }}/.ccache + restore-keys: | + ${{matrix.target.arch}}_${{matrix.target.distro}}_${{matrix.config.name}}_${{matrix.target.date-polyfill}}_ccache- - name: Set up Alpine Linux for ${{ matrix.target.arch }} uses: jirutka/setup-alpine@v1 @@ -65,8 +58,6 @@ jobs: musl-dev samurai tzdata - # volumes: | - # ${{ env.HOST_CCACHE_CACHE_DIR }}:${{ env.CCACHE_CACHE_DIR }} shell-name: alpine.sh - name: Checkout code @@ -79,12 +70,16 @@ jobs: format: "YYYY-MM-DD_HH-mm-ss-SSS" - name: Configuring sparrow + env: + CCACHE_DIR: ${{ github.workspace }}/.ccache run: cmake -G Ninja -Bbuild -DCMAKE_BUILD_TYPE:STRING=${{matrix.config.name}} -DUSE_DATE_POLYFILL=${{matrix.target.date-polyfill}} -DBUILD_TESTS:BOOL=ON -DBUILD_EXAMPLES:BOOL=ON -DFETCH_DEPENDENCIES_WITH_CMAKE=MISSING + -DCMAKE_CXX_COMPILER_LAUNCHER=ccache + -DCMAKE_C_COMPILER_LAUNCHER=ccache -B build shell: alpine.sh {0} @@ -110,7 +105,5 @@ jobs: if: success() || failure() with: name: test_sparrow_lib_report_Linux_${{matrix.target.distro}}_${{matrix.target.arch}}_${{matrix.config.name}}_date-polyfill_${{matrix.target.date-polyfill}} - path: | - ${{ steps.alpine-target.outputs.root-path }}/build/test/test_sparrow_lib_report_doctest.xml - ${{ steps.alpine-target.outputs.root-path }}/build/test/test_sparrow_lib_report_catch2.xml + path: ./**/test*.xml if-no-files-found: error