From 58d0e115702a3bc67b03482652e26826dfbde18b Mon Sep 17 00:00:00 2001 From: cyan Date: Thu, 25 Jul 2024 00:40:57 +0000 Subject: [PATCH] update action to cache android as well --- .github/workflows/compat.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compat.yaml b/.github/workflows/compat.yaml index 8804ae5b..05f61428 100644 --- a/.github/workflows/compat.yaml +++ b/.github/workflows/compat.yaml @@ -191,10 +191,15 @@ jobs: strategy: matrix: coin: [monero, wownero] - runs-on: buildjet-8vcpu-ubuntu-2204-arm + runs-on: buildjet-4vcpu-ubuntu-2204-arm steps: - name: Set up QEMU uses: docker/setup-qemu-action@v3 + - uses: thejerrybao/setup-swap-space@v1 + with: + swap-space-path: /swapfile + swap-size-gb: 8 + remove-existing-swap-files: true - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -220,7 +225,7 @@ jobs: key: depends-${{ github.job }}-${{ matrix.coin }}-${{ hashFiles('*/contrib/depends/packages/*.mk') }} - name: ${{ matrix.coin }}/aarch64-meego-linux-gnu run: | - docker run --rm -v $PWD:$PWD -w $PWD ghcr.io/mrcyjanek/sailfishos:4.6.0.11_target_aarch64 bash -c 'zypper in -f -y perl-IPC-Cmd curl ccache gperf cmake ffmpeg-tools git clang libxkbcommon-devel wayland-protocols-devel wayland-client wayland-egl-devel make glibc-static && git config --global --add safe.directory "*" && for i in gcc g++ ar ranlib; do ln -s /usr/bin/$i /usr/bin/aarch64-meego-linux-gnu-$i; ln -s /usr/bin/$i /usr/bin/aarch64-linux-gnu-$i; done && ./build_single.sh ${{ matrix.coin }} aarch64-meego-linux-gnu -j$(nproc)' + docker run --rm -v $PWD/.ccache:/root/.ccache -v $PWD:$PWD -w $PWD ghcr.io/mrcyjanek/sailfishos:4.6.0.11_target_aarch64 bash -c 'zypper in -f -y perl-IPC-Cmd curl ccache gperf cmake ffmpeg-tools git clang libxkbcommon-devel wayland-protocols-devel wayland-client wayland-egl-devel make glibc-static && git config --global --add safe.directory "*" && for i in gcc g++ ar ranlib; do ln -s /usr/bin/$i /usr/bin/aarch64-meego-linux-gnu-$i; ln -s /usr/bin/$i /usr/bin/aarch64-linux-gnu-$i; done && ./build_single.sh ${{ matrix.coin }} aarch64-meego-linux-gnu -j$(nproc)' - name: rename artifacts run: | sudo mkdir release/gh/