-
-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (75 loc) · 2.33 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: "Test"
on:
pull_request:
push:
schedule:
# every sunday morning
- cron: "0 0 * * 0"
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
fail-fast: false
steps:
- name: Checkout lilgit
uses: actions/checkout@v2
with:
path: lilgit
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
extra_nix_config: |
system-features = nixos-test benchmark big-parallel kvm
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@v1
- run: nix-build lilgit/default.nix
demo:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
fail-fast: false
steps:
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
extra_nix_config: |
system-features = nixos-test benchmark big-parallel kvm
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@v1
- name: Test flake-based demo
run: echo true | nix develop github:abathur/lilgit
- name: Test traditional demo
run: echo true | nix-shell -E 'import (fetchGit { url="https://github.com/abathur/lilgit"; rev="'${GITHUB_SHA}'"; allRefs = true; } + "/shell.nix")'
# macOS only because it depends on bsd 'footprint' for
# easy measuring of RAM footprint...
performance:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest ]
fail-fast: false
steps:
- name: Checkout lilgit
uses: actions/checkout@v2
with:
path: lilgit
- name: Checkout nixpkgs
uses: actions/checkout@v2
with:
repository: nixos/nixpkgs
path: nixpkgs
fetch-depth: 0
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
extra_nix_config: |
system-features = nixos-test benchmark big-parallel kvm
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@v1
- name: benchmark
run: nix-build lilgit/ci.nix --option sandbox false
timeout-minutes: 40
continue-on-error: true