Improve watcher #283
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
env: | |
LORRI_NO_INSTALL_PANIC_HANDLER: absolutely | |
jobs: | |
nix-build_stable-macos-latest: | |
name: nix-build [nixos stable] (macos-latest) | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Nix | |
uses: cachix/install-nix-action@v26 | |
- name: Create user gcroot dir | |
run: | | |
sudo mkdir /nix/var/nix/gcroots/per-user/$USER | |
sudo chown $USER /nix/var/nix/gcroots/per-user/$USER | |
- name: Cachix | |
uses: cachix/cachix-action@v14 | |
with: | |
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
name: nix-community | |
- name: Build | |
run: nix-build | |
- name: Install | |
run: nix-env -i ./result | |
- name: Self-upgrade | |
run: lorri self-upgrade local $(pwd) | |
nix-build_stable-ubuntu-latest: | |
name: nix-build [nixos stable] (ubuntu-latest) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Nix | |
uses: cachix/install-nix-action@v26 | |
- name: Create user gcroot dir | |
run: | | |
sudo mkdir /nix/var/nix/gcroots/per-user/$USER | |
sudo chown $USER /nix/var/nix/gcroots/per-user/$USER | |
- name: Cachix | |
uses: cachix/cachix-action@v14 | |
with: | |
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
name: nix-community | |
- name: Build | |
run: nix-build | |
- name: Install | |
run: nix-env -i ./result | |
- name: Self-upgrade | |
run: lorri self-upgrade local $(pwd) | |
overlay-macos-latest: | |
name: Overlay builds (macos-latest) | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: null | |
- name: Nix | |
uses: cachix/install-nix-action@v26 | |
- name: Create user gcroot dir | |
run: | | |
sudo mkdir /nix/var/nix/gcroots/per-user/$USER | |
sudo chown $USER /nix/var/nix/gcroots/per-user/$USER | |
- name: Cachix | |
uses: cachix/cachix-action@v14 | |
with: | |
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
name: nix-community | |
- name: Build w/ overlay (stable) | |
run: nix-build ./nix/overlay.nix -A lorri --arg pkgs ./nix/nixpkgs-stable.json | |
overlay-ubuntu-latest: | |
name: Overlay builds (ubuntu-latest) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: null | |
- name: Nix | |
uses: cachix/install-nix-action@v26 | |
- name: Create user gcroot dir | |
run: | | |
sudo mkdir /nix/var/nix/gcroots/per-user/$USER | |
sudo chown $USER /nix/var/nix/gcroots/per-user/$USER | |
- name: Cachix | |
uses: cachix/cachix-action@v14 | |
with: | |
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
name: nix-community | |
- name: Build w/ overlay (stable) | |
run: nix-build ./nix/overlay.nix -A lorri --arg pkgs ./nix/nixpkgs-stable.json | |
rust-macos-latest: | |
name: Rust and CI tests (macos-latest) | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: null | |
- name: Nix | |
uses: cachix/install-nix-action@v26 | |
- name: Create user gcroot dir | |
run: | | |
sudo mkdir /nix/var/nix/gcroots/per-user/$USER | |
sudo chown $USER /nix/var/nix/gcroots/per-user/$USER | |
- name: Cachix | |
uses: cachix/cachix-action@v14 | |
with: | |
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
name: nix-community | |
- name: Add rustc to PATH | |
run: | | |
set -euo pipefail | |
rustc_path="$(nix-build -A rustc nix/nixpkgs-stable.nix)/bin" | |
echo "$rustc_path" >> "$GITHUB_PATH" | |
- name: print PATH | |
run: printenv PATH | |
- name: Rust Cache | |
uses: Swatinem/[email protected] | |
- name: Build CI tests | |
run: | | |
nix-build \ | |
--out-link ./ci-tests \ | |
--arg isDevelopmentShell false \ | |
-A ci.testsuite \ | |
shell.nix | |
- name: Run CI tests | |
run: | | |
./ci-tests | |
rust-ubuntu-latest: | |
name: Rust and CI tests (ubuntu-latest) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: null | |
- name: Nix | |
uses: cachix/install-nix-action@v26 | |
- name: Create user gcroot dir | |
run: | | |
sudo mkdir /nix/var/nix/gcroots/per-user/$USER | |
sudo chown $USER /nix/var/nix/gcroots/per-user/$USER | |
- name: Cachix | |
uses: cachix/cachix-action@v14 | |
with: | |
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
name: nix-community | |
- name: Add rustc to PATH | |
run: | | |
set -euo pipefail | |
rustc_path="$(nix-build -A rustc nix/nixpkgs-stable.nix)/bin" | |
echo "$rustc_path" >> "$GITHUB_PATH" | |
- name: print PATH | |
run: printenv PATH | |
- name: Rust Cache | |
uses: Swatinem/[email protected] | |
- name: Build CI tests | |
run: | | |
nix-build \ | |
--out-link ./ci-tests \ | |
--arg isDevelopmentShell false \ | |
-A ci.testsuite \ | |
shell.nix | |
- name: Run CI tests | |
run: | | |
./ci-tests | |
name: CI | |
"on": | |
pull_request: | |
branches: | |
- '**' | |
push: | |
branches: | |
- master | |
workflow_dispatch: {} |