2022-12-25 18:02:32 +00:00
|
|
|
# Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
|
|
|
|
#
|
2023-06-04 05:47:39 +00:00
|
|
|
# While our "example" application has platform-specific code,
|
|
|
|
# for simplicity we are compiling and testing everything in a nix-on-Linux environment only.
|
2022-12-25 18:02:32 +00:00
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
2020-05-19 09:10:11 +00:00
|
|
|
name: ci
|
2022-12-25 18:02:32 +00:00
|
|
|
|
2020-05-19 09:10:11 +00:00
|
|
|
jobs:
|
2023-06-04 05:47:39 +00:00
|
|
|
nix-flake-check:
|
2023-07-03 16:58:20 +00:00
|
|
|
name: nix flake check
|
2022-12-25 18:02:32 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout sources
|
2023-06-04 05:47:39 +00:00
|
|
|
uses: actions/checkout@v3
|
2020-05-19 09:10:11 +00:00
|
|
|
|
2023-06-04 05:47:39 +00:00
|
|
|
- name: Install nix
|
|
|
|
uses: cachix/install-nix-action@v21
|
2020-05-19 09:10:11 +00:00
|
|
|
|
2023-06-04 05:47:39 +00:00
|
|
|
- name: Ensure the build succeeds
|
|
|
|
run: nix build
|
2020-05-19 09:10:11 +00:00
|
|
|
|
2023-06-04 05:47:39 +00:00
|
|
|
- name: Run `nix flake check` to run formatters, linters, and tests
|
|
|
|
run: nix flake check --print-build-logs
|