fix CI: use runs-on host, remove install-nix-action
Runner has label 'host' not 'docker'. Jobs were stuck in 'waiting to run' because no runner matched the docker label. Also removed the cachix/install-nix-action steps since Nix is already available on the host runner.
This commit is contained in:
parent
8d7794a08c
commit
14d02a0c57
2 changed files with 4 additions and 24 deletions
|
|
@ -4,31 +4,21 @@ on: [pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
flake-check:
|
flake-check:
|
||||||
runs-on: docker
|
runs-on: host
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Nix
|
|
||||||
uses: cachix/install-nix-action@v27
|
|
||||||
with:
|
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
|
||||||
|
|
||||||
- name: Run flake check
|
- name: Run flake check
|
||||||
run: nix flake check --impure
|
run: nix flake check --impure
|
||||||
|
|
||||||
build-hosts:
|
build-hosts:
|
||||||
needs: flake-check
|
needs: flake-check
|
||||||
runs-on: docker
|
runs-on: host
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Nix
|
|
||||||
uses: cachix/install-nix-action@v27
|
|
||||||
with:
|
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
|
||||||
|
|
||||||
- name: Build cryodev-main
|
- name: Build cryodev-main
|
||||||
run: nix build .#nixosConfigurations.cryodev-main.config.system.build.toplevel --impure
|
run: nix build .#nixosConfigurations.cryodev-main.config.system.build.toplevel --impure
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,31 +7,21 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
flake-check:
|
flake-check:
|
||||||
runs-on: docker
|
runs-on: host
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Nix
|
|
||||||
uses: cachix/install-nix-action@v27
|
|
||||||
with:
|
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
|
||||||
|
|
||||||
- name: Run flake check
|
- name: Run flake check
|
||||||
run: nix flake check --impure
|
run: nix flake check --impure
|
||||||
|
|
||||||
deploy-cryodev-main:
|
deploy-cryodev-main:
|
||||||
needs: flake-check
|
needs: flake-check
|
||||||
runs-on: docker
|
runs-on: host
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Nix
|
|
||||||
uses: cachix/install-nix-action@v27
|
|
||||||
with:
|
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
|
||||||
|
|
||||||
- name: Set up SSH
|
- name: Set up SSH
|
||||||
env:
|
env:
|
||||||
DEPLOY_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
DEPLOY_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue