@@ -2,7 +2,13 @@ name: Test Nix flake
2
2
3
3
on :
4
4
pull_request :
5
+ paths :
6
+ - flake.nix
7
+ - flake.lock
5
8
push :
9
+ paths :
10
+ - flake.nix
11
+ - flake.lock
6
12
branches :
7
13
- main
8
14
20
26
21
27
# Check that formatting does not change anything.
22
28
- run : git diff --exit-code
29
+
30
+ build :
31
+ name : nix build
32
+ runs-on : ubuntu-latest
33
+ strategy :
34
+ fail-fast : false
35
+ matrix :
36
+ installable :
37
+ # Ensure `nix develop` will work.
38
+ - devShells.x86_64-linux.default
39
+
40
+ - deltachat-python
41
+ - deltachat-repl
42
+ - deltachat-repl-aarch64-linux
43
+ - deltachat-repl-arm64-v8a-android
44
+ - deltachat-repl-armeabi-v7a-android
45
+ - deltachat-repl-armv6l-linux
46
+ - deltachat-repl-armv7l-linux
47
+ - deltachat-repl-i686-linux
48
+ - deltachat-repl-win32
49
+ - deltachat-repl-win64
50
+ - deltachat-repl-x86_64-linux
51
+ - deltachat-rpc-client
52
+ - deltachat-rpc-server
53
+ - deltachat-rpc-server-aarch64-linux
54
+ - deltachat-rpc-server-aarch64-linux-wheel
55
+ - deltachat-rpc-server-arm64-v8a-android
56
+ - deltachat-rpc-server-armeabi-v7a-android
57
+ - deltachat-rpc-server-armv6l-linux
58
+ - deltachat-rpc-server-armv6l-linux-wheel
59
+ - deltachat-rpc-server-armv7l-linux
60
+ - deltachat-rpc-server-armv7l-linux-wheel
61
+ - deltachat-rpc-server-i686-linux
62
+ - deltachat-rpc-server-i686-linux-wheel
63
+ - deltachat-rpc-server-source
64
+ - deltachat-rpc-server-win32
65
+ - deltachat-rpc-server-win32-wheel
66
+ - deltachat-rpc-server-win64
67
+ - deltachat-rpc-server-win64-wheel
68
+ - deltachat-rpc-server-x86_64-linux
69
+ - deltachat-rpc-server-x86_64-linux-wheel
70
+ - docs
71
+ - libdeltachat
72
+ - python-docs
73
+
74
+ # Fails to build
75
+ # - deltachat-repl-x86_64-android
76
+ # - deltachat-repl-x86-android
77
+ # - deltachat-rpc-server-x86_64-android
78
+ # - deltachat-rpc-server-x86-android
79
+ steps :
80
+ - uses : actions/checkout@v4
81
+ with :
82
+ show-progress : false
83
+ - uses : DeterminateSystems/nix-installer-action@main
84
+ - uses : DeterminateSystems/magic-nix-cache-action@main
85
+ - run : nix build .#${{ matrix.installable }}
86
+
87
+ build-macos :
88
+ name : nix build on macOS
89
+ runs-on : macos-latest
90
+ strategy :
91
+ fail-fast : false
92
+ matrix :
93
+ installable :
94
+ - deltachat-rpc-server-aarch64-darwin
95
+
96
+ # Fails to bulid
97
+ # - deltachat-rpc-server-x86_64-darwin
98
+ steps :
99
+ - uses : actions/checkout@v4
100
+ with :
101
+ show-progress : false
102
+ - uses : DeterminateSystems/nix-installer-action@main
103
+ - uses : DeterminateSystems/magic-nix-cache-action@main
104
+ - run : nix build .#${{ matrix.installable }}
0 commit comments