-
Notifications
You must be signed in to change notification settings - Fork 138
feat: upgrade lightning from 10.25.0 to 11.1.0 — Issue #726 #806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,34 +13,37 @@ jobs: | |
| ci_to_main: | ||
| runs-on: ubuntu-latest | ||
| container: | ||
| image: 'ubuntu:24.04' | ||
| # node:20-bookworm provides Node 20 from the official Node image (no | ||
| # NodeSource, no distro-apt Node), and MongoDB 8.0 installs from the | ||
| # officially supported Debian bookworm repo. This keeps both Node and | ||
| # MongoDB on supported, reproducible sources at the same time. | ||
| image: 'node:20-bookworm' | ||
| steps: | ||
| - name: Update apt and install required packages | ||
| run: | | ||
| apt update --yes | ||
| apt install --yes sudo | ||
| apt-get update --yes | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ToRyVand what's the point of this change? please don't stage irrelevant hunks
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not stray — these hunks are the switch:
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. apt-get is more script-stable than apt? first time I hear about this
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fair — it surprised me too.
|
||
| apt-get install --yes sudo curl git | ||
|
|
||
| sudo apt install --yes --no-install-recommends npm | ||
| # Dependencies required to compile the canvas package from source | ||
| sudo apt-get install --yes --no-install-recommends \ | ||
| build-essential pkg-config libcairo2-dev libpango1.0-dev \ | ||
| libjpeg-dev libgif-dev librsvg2-dev | ||
|
|
||
| sudo apt install --yes git | ||
| # one time fix to avoid permission problems later on | ||
| git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
|
|
||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Import MongoDB's public key for the package management system | ||
| run: | | ||
| sudo apt install --yes --no-install-recommends curl gnupg | ||
| sudo rm -f /etc/ssl/certs/ca-bundle.crt | ||
| sudo apt reinstall --yes ca-certificates | ||
| sudo update-ca-certificates | ||
| curl -fsSL https://pgp.mongodb.com/server-6.0.asc | \ | ||
| sudo gpg -o /usr/share/keyrings/mongodb-server-6.0.gpg \ | ||
| sudo apt-get install --yes --no-install-recommends curl gnupg | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ToRyVand same here |
||
| curl -fsSL https://pgp.mongodb.com/server-8.0.asc | \ | ||
| sudo gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg \ | ||
| --dearmor | ||
|
|
||
| - name: Install MongoDB | ||
| run: | | ||
| echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-6.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list | ||
| echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list | ||
| sudo apt-get update | ||
| sudo apt-get install -y mongodb-org | ||
| - name: Check Mongo version | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I disagree about this change. You want CI to resemble as much as possible to the setup that users of lnp2pbot (in this case, the users that run a community with it) will use, i.e. a Linux distro. "node20-bookworm" is a blackbox, what Linux distro is that? You're also not in control anymore of what the owners of "node" put into that. You change your CI to that and is the easiest route for stopping to catch issues that a normal CI would catch when using ubuntu images.