Skip to content

Commit 33ed20f

Browse files
committed
ci: test building nix targets to avoid regressions
Otherwise build failure may only be detected during release.
1 parent 5f97909 commit 33ed20f

File tree

2 files changed

+84
-0
lines changed

2 files changed

+84
-0
lines changed

.github/workflows/nix.yml

+82
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ name: Test Nix flake
22

33
on:
44
pull_request:
5+
paths:
6+
- flake.nix
7+
- flake.lock
58
push:
9+
paths:
10+
- flake.nix
11+
- flake.lock
612
branches:
713
- main
814

@@ -20,3 +26,79 @@ jobs:
2026

2127
# Check that formatting does not change anything.
2228
- 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 }}

flake.nix

+2
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,8 @@
363363
mkRustPackages "x86_64-linux" //
364364
mkRustPackages "armv7l-linux" //
365365
mkRustPackages "armv6l-linux" //
366+
mkRustPackages "x86_64-darwin" //
367+
mkRustPackages "aarch64-darwin" //
366368
mkAndroidPackages "armeabi-v7a" //
367369
mkAndroidPackages "arm64-v8a" //
368370
mkAndroidPackages "x86" //

0 commit comments

Comments
 (0)