mirror of
https://github.com/obsqrbtz/clrsync.git
synced 2026-04-08 20:19:04 +03:00
33 lines
804 B
YAML
33 lines
804 B
YAML
name: Test flake.nix
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install Nix
|
|
uses: cachix/install-nix-action@v22
|
|
with:
|
|
extra_nix_config: |
|
|
experimental-features = nix-command flakes
|
|
|
|
- name: Build clrsync package
|
|
run: |
|
|
nix --extra-experimental-features "flakes nix-command" build .#packages.x86_64-linux.clrsync
|
|
|
|
- name: Enter devShell
|
|
run: |
|
|
nix --extra-experimental-features "flakes nix-command" develop .#default --command true
|
|
|
|
- name: Test clrsync CLI
|
|
run: |
|
|
nix --extra-experimental-features "flakes nix-command" run .#clrsync-cli -- --help
|