Merge pull request #228 from Screenly/disable-flaky-tests #117
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: Nix | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'flake.nix' | |
- 'flake.lock' | |
- 'src/**' | |
- 'Cargo.toml' | |
- 'Cargo.lock' | |
- '.github/workflows/nix.yml' | |
pull_request: | |
branches: | |
- master | |
paths: | |
- 'flake.nix' | |
- 'flake.lock' | |
- 'src/**' | |
- 'Cargo.toml' | |
- 'Cargo.lock' | |
- '.github/workflows/nix.yml' | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout flake | |
uses: actions/checkout@v4 | |
- name: Install nix | |
uses: DeterminateSystems/nix-installer-action@v8 | |
- name: Setup magic-nix-cache | |
uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Build screenly-cli | |
run: nix build .#screenly-cli |