From d98aa45467307bcb06d9a6f60bb7f3d8107abda4 Mon Sep 17 00:00:00 2001 From: Luqmanul Hakim Nuzrin <82690512+luqmanishere@users.noreply.github.com> Date: Sat, 27 Apr 2024 20:49:09 +0800 Subject: [PATCH] maximize ci build space --- .github/workflows/system.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/system.yml b/.github/workflows/system.yml index b54a373..40fa09a 100644 --- a/.github/workflows/system.yml +++ b/.github/workflows/system.yml @@ -8,24 +8,42 @@ jobs: runs-on: ubuntu-latest environment: systemconfig steps: + - name: Maximize build space + uses: AdityaGarg8/remove-unwanted-software@v3 + with: + remove-android: 'true' + remove-dotnet: 'true' + remove-haskell: 'true' + remove-codeql: 'true' + remove-docker-images: 'true' + remove-large-packages: 'true' - uses: actions/checkout@v4 - uses: DeterminateSystems/nix-installer-action@main - uses: cachix/cachix-action@v14 with: name: nix-conf authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - - run: nix build .#nixosConfigurations.$GITHUB_JOB.config.system.build.toplevel + - run: nix build .#nixosConfigurations.$GITHUB_JOB.config.system.build.toplevel --accept-flake-config - run: echo "host $GITHUB_JOB OK" sinon: runs-on: ubuntu-latest environment: systemconfig steps: + - name: Maximize build space + uses: AdityaGarg8/remove-unwanted-software@v3 + with: + remove-android: 'true' + remove-dotnet: 'true' + remove-haskell: 'true' + remove-codeql: 'true' + remove-docker-images: 'true' + remove-large-packages: 'true' - uses: actions/checkout@v4 - uses: DeterminateSystems/nix-installer-action@main - uses: cachix/cachix-action@v14 with: name: nix-conf authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - - run: nix build .#nixosConfigurations.$GITHUB_JOB.config.system.build.toplevel + - run: nix build .#nixosConfigurations.$GITHUB_JOB.config.system.build.toplevel --accept-flake-config - run: echo "host $GITHUB_JOB OK"