rework(neovim): fetch neovim from github in home.activation.makeNoevim #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build and test" | |
env: | |
NIXPKGS_BRANCH: nixpkgs-unstable | |
NIX_DARWIN_BRANCH: master | |
NIX_VERSION: 2.24.11 | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v30 | |
- name: Build and switch | |
run: | | |
nix run nixpkgs#nixos-rebuild -- build --accept-flake-config --flake '.#nixos' | |
nix run nixpkgs#nixos-rebuild -- build --accept-flake-config --flake '.#wsl' | |
build-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v30 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v30 | |
with: | |
install_url: https://releases.nixos.org/nix/nix-${{ env.NIX_VERSION }}/install | |
nix_path: nixpkgs=channel:${{ env.NIXPKGS_BRANCH }} | |
- name: Install channels | |
run: | | |
nix-channel --add https://nixos.org/channels/${{ env.NIXPKGS_BRANCH }} nixpkgs | |
nix-channel --add https://github.com/LnL7/nix-darwin/archive/${{ env.NIX_DARWIN_BRANCH }}.tar.gz darwin | |
nix-channel --update | |
- name: Install nix-darwin | |
run: | | |
sudo mkdir -p /etc/nix-darwin | |
sudo chown $(id -nu):$(id -ng) /etc/nix-darwin | |
cd /etc/nix-darwin | |
curl -L -o configuration.nix https://raw.githubusercontent.com/LnL7/nix-darwin/master/modules/examples/simple.nix | |
nix run nix-darwin/nix-darwin-24.11#darwin-rebuild -- switch -I darwin-config=/etc/nix-darwin/configuration.nix | |
- name: Build nix-darwin configuration | |
run: darwin-rebuild build --flake '.#macbook' |