```
cargo build --quiet --example cln-plugin-startup
error: failed to run custom build command for `cln-grpc v0.4.0 (/home/runner/work/lightning/lightning/cln-grpc)`
Caused by:
process didn't exit successfully: `/home/runner/work/lightning/lightning/target/debug/build/cln-grpc-1c0900b8d6f448d4/build-script-build` (exit status: 101)
--- stdout
cargo:rerun-if-changed=proto/node.proto
cargo:rerun-if-changed=proto
--- stderr
thread 'main' panicked at cln-grpc/build.rs:7:10:
called `Result::unwrap()` on an `Err` value: Custom { kind: NotFound, error: "Could not find `protoc`. If `protoc` is installed, try setting the `PROTOC` environment variable to the path of the `protoc` binary. Try installing `protobuf-compiler` or `protobuf` using your package manager. It is also available at https://github.com/protocolbuffers/protobuf/releases For more information: https://docs.rs/prost-build/#sourcing-protoc" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
gmake: *** [cln-rpc/Makefile:15: target/debug/examples/cln-plugin-startup] Error 101
```
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
80 lines
2.2 KiB
YAML
80 lines
2.2 KiB
YAML
name: FreeBSD Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "master"
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
testfreebsd:
|
|
runs-on: ubuntu-22.04
|
|
name: Build and test on FreeBSD
|
|
timeout-minutes: 120
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
bitcoind-version: ["27.1"]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Test in FreeBSD
|
|
id: test
|
|
uses: vmactions/freebsd-vm@v1
|
|
with:
|
|
usesh: true
|
|
sync: rsync
|
|
copyback: false
|
|
prepare: |
|
|
pkg install -y \
|
|
bash \
|
|
wget \
|
|
python310 \
|
|
gmake \
|
|
git \
|
|
python \
|
|
postgresql16-server \
|
|
autoconf \
|
|
automake \
|
|
libtool \
|
|
bash \
|
|
gettext \
|
|
sqlite3 \
|
|
lowdown \
|
|
pkgconf \
|
|
jq \
|
|
protobuf \
|
|
curl
|
|
|
|
python3.10 -m ensurepip
|
|
python3.10 -m pip install --upgrade pip
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
|
|
|
|
|
|
run: |
|
|
PATH=/root/.local/bin:$PATH:/root/.cargo/bin; export PATH
|
|
pip install --user -U wheel pip
|
|
pip3 install --user poetry
|
|
poetry install
|
|
|
|
git clone https://github.com/lightning/bolts.git ../bolts
|
|
# fatal: unsafe repository ('/Users/runner/work/lightning/lightning' is owned by someone else)
|
|
git config --global --add safe.directory `pwd`
|
|
for d in libsodium libwally-core gheap jsmn libbacktrace lowdown; do git config --global --add safe.directory `pwd`/external/$d; done
|
|
git submodule update --init --recursive
|
|
|
|
./configure CC="$CC" --disable-valgrind
|
|
|
|
cat config.vars
|
|
|
|
cat << EOF > pytest.ini
|
|
[pytest]
|
|
addopts=-p no:logging --color=yes --timeout=1800 --timeout-method=thread --test-group-random-seed=42 --junitxml=report.xml --json-report --json-report-file=report.json --json-report-indent=2
|
|
markers =
|
|
slow_test: marks tests as slow (deselect with '-m "not slow_test"')
|
|
EOF
|
|
|
|
# Just run a "quick" test without memory checking
|
|
poetry run gmake
|
|
|