rework(neovim): fetch neovim from github in home.activation.makeNoevim #5
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_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 -- test --flake '.#nixos' | |
nix run nixpkgs#nixos-rebuild -- test --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 --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 | |
nix flake init -t nix-darwin/nix-darwin-24.11 | |
sed -i '' "s/simple/$(scutil --get LocalHostName)/" flake.nix | |
nix run nix-darwin/nix-darwin-24.11#darwin-rebuild -- switch | |
cd - | |
- name: Build and switch | |
run: darwin-rebuild switch --flake '.#macbook' |