projects
/
ldk-c-bindings
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b5ccb17
)
Test bindings on Fedora in addition to Debian
author
Matt Corallo
<git@bluematt.me>
Thu, 16 Nov 2023 05:24:23 +0000
(
05:24
+0000)
committer
Matt Corallo
<git@bluematt.me>
Thu, 16 Nov 2023 15:49:56 +0000
(15:49 +0000)
.github/workflows/build.yml
patch
|
blob
|
history
diff --git
a/.github/workflows/build.yml
b/.github/workflows/build.yml
index d754a902de32ec496f60afe463f247173e9d5ea6..4eccfd06bf8cfc33f2f6e154be9ffe6245b06e0c 100644
(file)
--- a/
.github/workflows/build.yml
+++ b/
.github/workflows/build.yml
@@
-4,18
+4,27
@@
on: [push, pull_request]
jobs:
check_bindings:
jobs:
check_bindings:
+ strategy:
+ fail-fast: false
+ matrix:
+ # Ubuntu's version of rustc uses its own LLVM instead of being a real native package.
+ # This leaves us with an incompatible LLVM version when linking. Instead, use a real OS.
+ distro: [ "debian:bullseye", "fedora:39" ]
runs-on: ubuntu-latest
runs-on: ubuntu-latest
- # Ubuntu's version of rustc uses its own LLVM instead of being a real native package.
- # This leaves us with an incompatible LLVM version when linking. Instead, use a real OS.
- container: debian:bullseye
+ container: ${{ matrix.distro }}
env:
TOOLCHAIN: stable
steps:
- name: Install native Rust toolchain, Valgrind, and build utilitis
env:
TOOLCHAIN: stable
steps:
- name: Install native Rust toolchain, Valgrind, and build utilitis
+ if: "matrix.distro == 'debian:bullseye'"
run: |
apt-get update
apt-get -y dist-upgrade
apt-get -y install cargo libstd-rust-dev-wasm32 valgrind lld git g++ clang wget
run: |
apt-get update
apt-get -y dist-upgrade
apt-get -y install cargo libstd-rust-dev-wasm32 valgrind lld git g++ clang wget
+ - name: Install native Rust toolchain, Valgrind, and build utilitis
+ if: "matrix.distro == 'fedora:39'"
+ run: |
+ dnf -y install cargo rust-std-static-wasm32-wasi valgrind lld git g++ clang wget which diffutils
- name: Checkout source code
uses: actions/checkout@v2
with:
- name: Checkout source code
uses: actions/checkout@v2
with:
@@
-38,7
+47,11
@@
jobs:
git clone https://github.com/rust-bitcoin/rust-lightning
cd rust-lightning
git checkout 0.0.118-bindings
git clone https://github.com/rust-bitcoin/rust-lightning
cd rust-lightning
git checkout 0.0.118-bindings
+ - name: Pin memchr
+ if: "matrix.distro == 'debian:bullseye'"
+ run: |
# Pin memchr until we can remove it
# Pin memchr until we can remove it
+ cd rust-lightning
cargo update -p memchr --precise "2.5.0" --verbose
- name: Fix Github Actions to not be broken
run: git config --global --add safe.directory /__w/ldk-c-bindings/ldk-c-bindings
cargo update -p memchr --precise "2.5.0" --verbose
- name: Fix Github Actions to not be broken
run: git config --global --add safe.directory /__w/ldk-c-bindings/ldk-c-bindings