Skip to content

Commit 159b505

Browse files
ci: Fix for FreeBSD workflow
Changelog-None.
1 parent 219623c commit 159b505

File tree

1 file changed

+12
-45
lines changed

1 file changed

+12
-45
lines changed

.github/workflows/bsd.yml

+12-45
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- "master"
77
pull_request:
8+
workflow_dispatch:
89

910
jobs:
1011
testfreebsd:
@@ -30,7 +31,7 @@ jobs:
3031
gmake \
3132
git \
3233
python \
33-
postgresql12-server \
34+
postgresql16-server \
3435
autoconf \
3536
automake \
3637
libtool \
@@ -42,49 +43,15 @@ jobs:
4243
4344
python3.8 -m ensurepip
4445
python3.8 -m pip install --upgrade pip
45-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly-2021-08-3z1
46-
47-
cd /tmp/ || exit 1
48-
wget https://bitcoincore.org/bin/bitcoin-core-${{ matrix.bitcoind-version }}/bitcoin-${{ matrix.bitcoind-version }}-x86_64-linux-gnu.tar.gz
49-
tar -xf bitcoin-${{ matrix.bitcoind-version }}-x86_64-linux-gnu.tar.bz2
50-
sudo mv bitcoin-${{ matrix.bitcoind-version }}/bin/* /usr/local/bin
51-
rm -rf bitcoin-${{ matrix.bitcoind-version }}-x86_64-linux-gnu.tar.gz bitcoin-${{ matrix.bitcoind-version }}
46+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly-2024-11-28
5247
5348
run: |
54-
PATH=/root/.local/bin:$PATH
55-
pip install --user -U wheel pip
56-
pip install --user -U -r requirements.txt
57-
58-
# Install utilities that aren't dependencies, but make
59-
# running tests easier/feasible on CI (and pytest which
60-
# keeps breaking the rerunfailures plugin).
61-
pip install --user -U \
62-
blinker \
63-
flake8 \
64-
mako \
65-
pytest-sentry \
66-
pytest-test-groups==1.0.3 \
67-
pytest-custom-exit-code==0.3.0 \
68-
pytest-json-report
69-
70-
git clone https://github.com/lightning/bolts.git ../bolts
71-
# fatal: unsafe repository ('/Users/runner/work/lightning/lightning' is owned by someone else)
72-
git config --global --add safe.directory `pwd`
73-
git submodule update --init --recursive
74-
75-
./configure CC="$CC" --disable-valgrind
76-
77-
cat config.vars
78-
79-
cat << EOF > pytest.ini
80-
[pytest]
81-
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
82-
markers =
83-
slow_test: marks tests as slow (deselect with '-m "not slow_test"')
84-
EOF
85-
86-
# Just run a "quick" test without memory checking
87-
gmake
88-
89-
# Clean up to maximize rsync's chances of succeeding
90-
gmake clean
49+
pwd
50+
ls -lah
51+
whoami
52+
env
53+
freebsd-version
54+
sysctl hw.model
55+
sysctl hw.ncpu
56+
sysctl hw.physmem
57+
sysctl hw.usermem

0 commit comments

Comments
 (0)