From d72321946d1c6664685c5382829cf9028146628b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 2 May 2024 16:57:08 +0200 Subject: [PATCH] limit max memory size for github runner --- .github/workflows/tests.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a9c5360..e7ab60d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,12 +21,13 @@ jobs: github_access_token: ${{ secrets.GITHUB_TOKEN }} extra_nix_config: | accept-flake-config = true + - name: Self-test - run: nix shell --inputs-from . nixpkgs#coreutils -c timeout --verbose 600 nix run . -- ${{ matrix.nom }} + run: nix shell --inputs-from . nixpkgs#coreutils -c timeout --verbose 600 nix run . -- --eval-workers 1 --eval-max-memory-size 2048 ${{ matrix.nom }} - name: Self-test (should fail) run: | - if nix shell --inputs-from . nixpkgs#coreutils -c timeout --verbose 600 nix run . -- --flake .#legacyPackages ${{ matrix.nom }}; then + if nix shell --inputs-from . nixpkgs#coreutils -c timeout --verbose 600 nix run . -- --eval-workers 1 --eval-max-memory-size 2048 --flake .#legacyPackages ${{ matrix.nom }}; then echo "expect this to fail" false fi