From 7bff6a5d15cd1d55fd63573804843648b0c951ef Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Tue, 2 Apr 2024 12:43:43 -0700 Subject: [PATCH] stop the zig build DOS attack on the CI infrastructure --- .gitea/workflows/build.yaml | 2 +- .gitea/workflows/zig-mach.yaml | 2 +- .gitea/workflows/zig-nightly.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 509a50c..eb4ffb9 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -32,7 +32,7 @@ jobs: tar x -C /usr/local -f zig-linux-${ARCH}-${ZIG_VERSION}.tar.xz ln -s /usr/local/zig-linux-${ARCH}-${ZIG_VERSION}/zig /usr/local/bin/zig - name: Run tests - run: zig build test --verbose + run: zig build -j2 test --verbose - name: Build example run: ( cd example && zig build ) # Make sure example builds # Zig package manager expects everything to be inside a directory in the archive, diff --git a/.gitea/workflows/zig-mach.yaml b/.gitea/workflows/zig-mach.yaml index fe9e848..13e2ab8 100644 --- a/.gitea/workflows/zig-mach.yaml +++ b/.gitea/workflows/zig-mach.yaml @@ -35,7 +35,7 @@ jobs: ln -s /usr/local/"${file%%.tar.xz}"/zig /usr/local/bin/zig zig version - name: Run tests - run: zig build test --verbose + run: zig build -j2 test --verbose - name: Build example run: ( cd example && zig build ) # Make sure example builds # Zig package manager expects everything to be inside a directory in the archive, diff --git a/.gitea/workflows/zig-nightly.yaml b/.gitea/workflows/zig-nightly.yaml index 0682de1..bd8109f 100644 --- a/.gitea/workflows/zig-nightly.yaml +++ b/.gitea/workflows/zig-nightly.yaml @@ -33,7 +33,7 @@ jobs: ln -s /usr/local/"${file%%.tar.xz}"/zig /usr/local/bin/zig zig version - name: Run tests - run: zig build test --verbose + run: zig build -j2 test --verbose - name: Build example run: ( cd example && zig build ) # Make sure example builds # Zig package manager expects everything to be inside a directory in the archive,