-
-
Notifications
You must be signed in to change notification settings - Fork 33
58 lines (58 loc) · 1.94 KB
/
build.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
name: "Build"
on:
push:
branches:
- master
pull_request:
jobs:
test-bootstrap:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.2
- uses: cachix/install-nix-action@v20
- uses: cachix/cachix-action@v8
with:
name: fzakaria
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: nix-build -A mvn2nix-bootstrap
- run: ./result/bin/mvn2nix > mvn2nix-lock.json
- run: nix-build -A buildMavenRepositoryFromLockFile --arg file "./mvn2nix-lock.json"
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.2
- uses: cachix/install-nix-action@v20
- uses: cachix/cachix-action@v8
with:
name: fzakaria
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: nix-build -A mvn2nix
- run: ./result/bin/mvn2nix > mvn2nix-lock.json
- run: nix-build -A buildMavenRepositoryFromLockFile --arg file "./mvn2nix-lock.json"
flake-test-bootstrap:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v20
with:
extra_nix_config: experimental-features = nix-command flakes
- uses: cachix/cachix-action@v8
with:
name: fzakaria
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: nix run .#mvn2nix-bootstrap > mvn2nix-lock.json
- run: nix build -f . buildMavenRepositoryFromLockFile --arg file "./mvn2nix-lock.json"
flake-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.2
- uses: cachix/install-nix-action@v20
with:
extra_nix_config: experimental-features = nix-command flakes
- uses: cachix/cachix-action@v8
with:
name: fzakaria
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: nix build
- run: ./result/bin/mvn2nix > mvn2nix-lock.json
- run: nix build -f . buildMavenRepositoryFromLockFile --arg file "./mvn2nix-lock.json"