From 5876b7b2f99ef66dde2def7899cf05bd2c0323d3 Mon Sep 17 00:00:00 2001 From: victor Date: Fri, 16 Sep 2022 11:32:19 +0200 Subject: [PATCH] split up ci --- .github/workflows/nixos.yml | 69 +++++++++++++++++++++++++++++++++++-- 1 file changed, 66 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nixos.yml b/.github/workflows/nixos.yml index 3736b32..f059bd0 100644 --- a/.github/workflows/nixos.yml +++ b/.github/workflows/nixos.yml @@ -5,7 +5,7 @@ on: branches: [main] jobs: - build: + build-null: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2.3.2 @@ -36,7 +36,71 @@ jobs: - name: "Build NixOS config ❄️" run: | - nix run '.#' build + nix run '.#' build -- --on "null" + build-olympus: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.3.2 + + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@main + with: + # this might remove tools that are actually needed, + # if set to "true" but frees about 6 GB + tool-cache: true + + # all of these default to true, but feel free to set to + # "false" if necessary for your workflow + android: true + dotnet: true + haskell: true + large-packages: true + swap-storage: true + + - name: "Install Nix ❄️" + uses: cachix/install-nix-action@v15 + + - name: "Install Cachix ❄️" + uses: cachix/cachix-action@v10 + with: + name: 0x76-infra + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + + - name: "Build NixOS config ❄️" + run: | + nix run '.#' build -- --on "@olympus" + build-hades: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.3.2 + + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@main + with: + # this might remove tools that are actually needed, + # if set to "true" but frees about 6 GB + tool-cache: true + + # all of these default to true, but feel free to set to + # "false" if necessary for your workflow + android: true + dotnet: true + haskell: true + large-packages: true + swap-storage: true + + - name: "Install Nix ❄️" + uses: cachix/install-nix-action@v15 + + - name: "Install Cachix ❄️" + uses: cachix/cachix-action@v10 + with: + name: 0x76-infra + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + + - name: "Build NixOS config ❄️" + run: | + nix run '.#' build -- --on "@hades" check: runs-on: ubuntu-latest steps: @@ -54,4 +118,3 @@ jobs: - name: "Check NixOS Flake ❄️" run: | nix flake check -