Skip to content

Commit

Permalink
limit max memory size for github runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed May 2, 2024
1 parent da88afb commit d723219
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d723219

Please sign in to comment.