From 633ccac42d8b4e30d8827ef7f163838abf7a960b Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Fri, 25 Aug 2023 17:29:52 -0700 Subject: [PATCH] update actions to reuse global cache --- .gitea/workflows/build.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index aa3fa0f..775022f 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -11,6 +11,7 @@ jobs: env: ZIG_VERSION: 0.11.0 ARCH: x86_64 + GLOBAL_CACHE: "--global-cache-dir ${{ github.workspace }}/zig-global-cache" steps: - name: Check out repository code uses: actions/checkout@v3 @@ -24,7 +25,7 @@ jobs: - run: ln -s /usr/local/zig-linux-${ARCH}-${ZIG_VERSION}/zig /usr/local/bin/zig - run: apt update && apt install --no-install-recommends git - run: zig build test --verbose - - run: zig build -Dtarget=arm-linux + - run: zig build --verbose -Dtarget=arm-linux - run: zig build -Dtarget=x86_64-windows - run: zig build -Dtarget=aarch64-linux - run: zig build -Dtarget=riscv64-linux