Skip to content

Commit

Permalink
Try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-PLACET committed Dec 20, 2024
1 parent 3946370 commit 6b8ee7f
Showing 1 changed file with 13 additions and 20 deletions.
33 changes: 13 additions & 20 deletions .github/workflows/qemu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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}
Expand All @@ -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

0 comments on commit 6b8ee7f

Please sign in to comment.