From afdc75c1c67a18d2e6c42c9d23a0777a5355602c 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..21ef285 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 -j1 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..30513a0 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 -j1 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..e77287d 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 -j1 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,