From f8cc8d3cbc6fddb35283d87d475a5e6db7167b45 Mon Sep 17 00:00:00 2001 From: yunfachi Date: Fri, 29 Dec 2023 08:05:42 +0000 Subject: [PATCH] test --- .github/workflows/nixos.yml | 70 +++++++++---------------------------- 1 file changed, 17 insertions(+), 53 deletions(-) diff --git a/.github/workflows/nixos.yml b/.github/workflows/nixos.yml index bca65e3..c2c1308 100644 --- a/.github/workflows/nixos.yml +++ b/.github/workflows/nixos.yml @@ -11,13 +11,13 @@ on: - ".gitignore" jobs: - build-mitama: + build-system: runs-on: ubuntu-latest steps: - name: "Create Dir for Mounting moar Disk Space" run: | sudo mkdir /nix - + - name: "Maximize Disk Space 1" run: | sudo rm -rf $AGENT_TOOLSDIRECTORY @@ -58,60 +58,24 @@ jobs: - name: "Build NixOS config ❄️" run: | - nix build .#nixosConfigurations.mitama.config.system.build.toplevel --accept-flake-config + nix build "${{ matrix.flakeConfig }}" --accept-flake-config - name: "Check NixOS flake ❄️" run: | nix flake check --accept-flake-config --no-build - build-dekomori: - runs-on: ubuntu-latest - steps: - - name: "Create Dir for Mounting moar Disk Space" - run: | - sudo mkdir /nix - - - name: "Maximize Disk Space 1" - run: | - sudo rm -rf $AGENT_TOOLSDIRECTORY - sudo rm -rf /usr/local/.ghcup - sudo rm -rf /usr/local/share/powershell - sudo rm -rf /usr/local/share/chromium - sudo rm -rf /usr/local/lib/node_modules - sudo rm -rf /usr/local/lib/heroku - sudo rm -rf /var/lib/docker/overlay2 - sudo rm -rf /home/linuxbrew - sudo rm -rf /home/runner/.rustup - - name: "Maximize Disk Space 2" - uses: easimon/maximize-build-space@v8 - with: - root-reserve-mb: 8192 - swap-size-mb: 1024 - build-mount-path: /nix - remove-dotnet: "true" - remove-android: "true" - remove-haskell: "true" - remove-codeql: "true" - remove-docker-images: "true" - - - uses: actions/checkout@v3 - - - name: "Install Nix" - uses: cachix/install-nix-action@v20 - with: - extra_nix_config: | - access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} - - - name: "Install Cachix" - uses: cachix/cachix-action@v12 - with: - name: workflow-nixos-config - authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - - name: "Build NixOS config ❄️" - run: | - nix build .#nixosConfigurations.dekomori.config.system.build.toplevel --accept-flake-config + build-mitama: + needs: build-system + runs-on: ubuntu-latest + strategy: + matrix: + flakeConfig: + - .#nixosConfigurations.mitama.config.system.build.toplevel - - name: "Check NixOS flake ❄️" - run: | - nix flake check --accept-flake-config --no-build + build-dekomori: + needs: build-system + runs-on: ubuntu-latest + strategy: + matrix: + flakeConfig: + - .#nixosConfigurations.dekomori.config.system.build.toplevel \ No newline at end of file