1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 02:43:24 +03:00
mobile-nixos/.github/workflows/ci.yml
2020-03-28 22:54:09 -04:00

40 lines
1.3 KiB
YAML

name: CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "**" ]
jobs:
Parse_nix:
runs-on: [ubuntu-latest]
steps:
- uses: "actions/checkout@58070a9fc3a91197fc9cbf24841ea31a2ab19980"
- uses: "cachix/install-nix-action@ebed63b0a20f20951a06a507ea1a1596bfce35b6"
- name: "Parse .nix files"
run: |
git ls-files | grep '.nix$' | xargs nix-instantiate --parse --quiet > /dev/null
Documentation:
runs-on: [ubuntu-latest]
steps:
- uses: "actions/checkout@58070a9fc3a91197fc9cbf24841ea31a2ab19980"
- uses: "cachix/install-nix-action@ebed63b0a20f20951a06a507ea1a1596bfce35b6"
- name: "Build documentation"
run: |
nix-build doc
cp -prf $(readlink -f result) built-documentation
- uses: actions/upload-artifact@v1
with:
name: documentation
path: built-documentation
Instantiation:
runs-on: [ubuntu-latest]
steps:
- uses: "actions/checkout@58070a9fc3a91197fc9cbf24841ea31a2ab19980"
- uses: "cachix/install-nix-action@ebed63b0a20f20951a06a507ea1a1596bfce35b6"
- name: "Instantiation"
run: |
nix-env --out-path -qaP --no-name -f .ci/instantiate-all.nix \
| sed -e 's/\+\+/./g' \
| sort