@@ -4,18 +4,27 @@ on: [push, pull_request]
4
4
5
5
jobs :
6
6
check_bindings :
7
+ strategy :
8
+ fail-fast : false
9
+ matrix :
10
+ # Ubuntu's version of rustc uses its own LLVM instead of being a real native package.
11
+ # This leaves us with an incompatible LLVM version when linking. Instead, use a real OS.
12
+ distro : [ "debian:bullseye", "fedora:39" ]
7
13
runs-on : ubuntu-latest
8
- # Ubuntu's version of rustc uses its own LLVM instead of being a real native package.
9
- # This leaves us with an incompatible LLVM version when linking. Instead, use a real OS.
10
- container : debian:bullseye
14
+ container : ${{ matrix.distro }}
11
15
env :
12
16
TOOLCHAIN : stable
13
17
steps :
14
18
- name : Install native Rust toolchain, Valgrind, and build utilitis
19
+ if : " matrix.distro == 'debian:bullseye'"
15
20
run : |
16
21
apt-get update
17
22
apt-get -y dist-upgrade
18
23
apt-get -y install cargo libstd-rust-dev-wasm32 valgrind lld git g++ clang wget
24
+ - name : Install native Rust toolchain, Valgrind, and build utilitis
25
+ if : " matrix.distro == 'fedora:39'"
26
+ run : |
27
+ dnf -y install cargo rust-std-static-wasm32-wasi valgrind lld git g++ clang wget which diffutils
19
28
- name : Checkout source code
20
29
uses : actions/checkout@v2
21
30
with :
38
47
git clone https://github.com/rust-bitcoin/rust-lightning
39
48
cd rust-lightning
40
49
git checkout 0.0.118-bindings
50
+ - name : Pin memchr
51
+ if : " matrix.distro == 'debian:bullseye'"
52
+ run : |
41
53
# Pin memchr until we can remove it
54
+ cd rust-lightning
42
55
cargo update -p memchr --precise "2.5.0" --verbose
43
56
- name : Fix Github Actions to not be broken
44
57
run : git config --global --add safe.directory /__w/ldk-c-bindings/ldk-c-bindings
0 commit comments