Skip to content

Commit

Permalink
ci: remove extra nix setup
Browse files Browse the repository at this point in the history
  • Loading branch information
hennersz committed Sep 23, 2023
1 parent 52fb5f6 commit c655961
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,7 @@ jobs:
- uses: cachix/install-nix-action@v22
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: |
ARCH=$1
DISTRO=$2
COMMANDS=$3
COMMANDS="${COMMANDS//[$'\t\r\n']+/;}" #Replace newline with ;
ADDITIONAL_ARGS=$4
DEBIAN_FRONTEND=noninteractive
# Install support for new archs via qemu
# Platforms: linux/amd64, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
sudo apt-get update -q -y && sudo apt-get install -q -y qemu-system-aarch64 qemu-efi binfmt-support qemu-user-static
mkdir -p ~/.config/nix
sudo bash -c "echo system-features = aarch64-linux arm-linux >> /etc/nix/nix.conf"
sudo bash -c "echo experimental-features = nix-command flakes >> /etc/nix/nix.conf"
sudo update-binfmts --display
- name: check flake
run: nix --extra-platforms aarch64-linux flake check
Expand All @@ -39,18 +28,7 @@ jobs:
- uses: cachix/install-nix-action@v22
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: |
ARCH=$1
DISTRO=$2
COMMANDS=$3
COMMANDS="${COMMANDS//[$'\t\r\n']+/;}" #Replace newline with ;
ADDITIONAL_ARGS=$4
DEBIAN_FRONTEND=noninteractive
# Install support for new archs via qemu
# Platforms: linux/amd64, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
sudo apt-get update -q -y && sudo apt-get install -q -y qemu-system-aarch64 qemu-efi binfmt-support qemu-user-static
mkdir -p ~/.config/nix
sudo bash -c "echo system-features = aarch64-linux arm-linux >> /etc/nix/nix.conf"
sudo bash -c "echo experimental-features = nix-command flakes >> /etc/nix/nix.conf"
sudo update-binfmts --display
- name: check config builds
run: |
Expand All @@ -65,9 +43,6 @@ jobs:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: |
mkdir -p ~/.config/nix
sudo bash -c "echo experimental-features = nix-command flakes >> /etc/nix/nix.conf"
- name: check config builds
run: |
nix build .#nixosConfigurations.${{ matrix.module }}.config.system.build.toplevel
Expand All @@ -83,9 +58,6 @@ jobs:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: |
mkdir -p ~/.config/nix
sudo bash -c "echo experimental-features = nix-command flakes >> /etc/nix/nix.conf"
- name: check config builds
run: |
nix build .#homeConfigurations."${{ matrix.module }}".activationPackage

0 comments on commit c655961

Please sign in to comment.