From 0c88554d238bcacd279ff2d38b806f3a608db8c3 Mon Sep 17 00:00:00 2001 From: Alejandro Angulo Date: Thu, 14 Sep 2023 18:19:35 -0700 Subject: [PATCH] Removed github actions --- .github/workflows/test.yml | 57 -------------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index c6923d6..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,57 +0,0 @@ -name: "Test" -on: - pull_request: - push: -jobs: - calculate-matrix: - name: Calculate build matrix - runs-on: ubuntu-latest - outputs: - matrix: ${{ steps.set-matrix.outputs.matrix }} - steps: - - uses: actions/checkout@v2.4.0 - - - uses: cachix/install-nix-action@v16 - with: - nix_path: nixpkgs=channel:nixos-unstable - extra_nix_config: | - experimental-features = nix-command flakes - - - name: Calculate build matrix - id: set-matrix - run: | - # Use `-c` flag with jq for compact output (doesn't keep newlines in - # output which was causing issues when setting the output - matrix=$(nix flake show --json | jq -c '.nixosConfigurations | keys') - echo "::set-output name=matrix::$matrix" - - tests: - name: Build NixOS configurations - runs-on: ubuntu-latest - needs: - - calculate-matrix - strategy: - fail-fast: false - matrix: - target: "${{ fromJson(needs.calculate-matrix.outputs.matrix) }}" - - - steps: - - uses: actions/checkout@v2.4.0 - - - uses: cachix/install-nix-action@v16 - with: - nix_path: nixpkgs=channel:nixos-unstable - extra_nix_config: | - experimental-features = nix-command flakes - - - uses: cachix/cachix-action@v10 - with: - name: alejandro-dotfiles - authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - - - run: nix-env -i nixos-rebuild -f '' - - - run: nixos-rebuild build --flake ".#${{ matrix.target }}" - - - run: echo OK