Add Lix build #86
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: CI | ||
on: | ||
pull_request: | ||
jobs: | ||
checks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: cachix/install-nix-action@v30 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
- uses: actions/[email protected] | ||
- name: Run checks | ||
run: nix flake check -L | ||
build-nix: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: cachix/install-nix-action@v30 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
- uses: actions/[email protected] | ||
- name: Run build | ||
run: nix-build --no-out-link . | ||
- name: Create artifact | ||
run: cp $(nix-build --no-out-link . -A nix.deb) nix-multi-user.deb | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: nix-multi-user.deb | ||
path: nix-multi-user.deb | ||
retention-days: 1 | ||
build-lix: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: cachix/install-nix-action@v30 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
- uses: actions/[email protected] | ||
- name: Run build | ||
run: nix-build --no-out-link . | ||
- name: Create artifact | ||
run: cp $(nix-build --no-out-link . -A lix.deb) lix-multi-user.deb | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: lix-multi-user.deb | ||
path: lix-multi-user.deb | ||
retention-days: 1 | ||
test-nix: | ||
needs: build | ||
Check failure on line 53 in .github/workflows/ci.yml
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: nix-multi-user.deb | ||
path: nix-multi-user.deb | ||
- name: Install Nix | ||
run: sudo dpkg -i nix-multi-user.deb/nix-multi-user.deb | ||
- name: Run nix-shell | ||
run: bash -l -c "nix-shell -p hello --run hello" | ||
test-lix: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: lix-multi-user.deb | ||
path: lix-multi-user.deb | ||
- name: Install Nix | ||
run: sudo dpkg -i lix-multi-user.deb/lix-multi-user.deb | ||
- name: Run nix-shell | ||
run: bash -l -c "nix-shell -p hello --run hello" | ||
collect: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- checks | ||
- build-nix | ||
- build-lix | ||
- test-nix | ||
- test-lix | ||
steps: | ||
- run: true |