Commit graph

54 commits

Author SHA1 Message Date
Oliver Gugger
24fb56c115
GitHub: build nightly docker image from master
With the experimental branch now merged into master, we can remove the
TODO and actually build the nightly images from master.
2025-02-04 11:58:26 +01:00
Elle Mouton
536b41156c
.github: add CI step to run the sqlc check 2025-01-29 16:37:20 +02:00
Oliver Gugger
415e589c63
GitHub: cancel jobs for previous pushes of PR
This takes over two more settings we have in the lnd repo. The first is
to cancel existing CI runs for the same PR if it is pushed again before
the previous run has completed.

The second is just for consistency, to make sure all shells are bash
shells.
2025-01-23 10:15:43 +01:00
Oliver Gugger
2f72da0490
GitHub: fix permission denied in lint CI step
This attempts to fix the following error that sometimes occurs on the
GitHub runners:

 go: github.com/lightninglabs/lightning-terminal imports
	github.com/lightningnetwork/lnd/kvdb imports
	github.com/lightningnetwork/lnd/kvdb/etcd imports
	go.etcd.io/etcd/server/v3/embed: mkdir /home/runner/go/pkg/mod/cache/download/go.etcd.io/etcd/server: permission denied

The suspicion is that the lint step that runs as root within docker
changes the permissions of some of the module cache directories.
So by simply changing the order of operations, this should be fixed.
2025-01-23 10:10:56 +01:00
Oliver Gugger
4a3a628b83
GitHub: add Golang cross compilation check 2025-01-23 09:26:40 +01:00
Oliver Gugger
f8881cc1a5
GitHub: add key-prefix and use-build-cache to setup-go action
This allows us to control the cache key and whether we want to cache the
Go build cache (which can grow very large).
2025-01-23 09:18:06 +01:00
Oliver Gugger
474080fa31
GitHub: update actions/checkout to v4 2025-01-23 09:18:05 +01:00
Elle Mouton
d40e027df4
.github: bump upload-artifact action to v4 2025-01-10 08:47:14 +02:00
Elle Mouton
69aee75377
.github: use matrix for unit tests
Later on we will want to run the unit tests against different backends.
When that is the case, we can just add a new unit_type to this matrix
instead of needing to repeat all the same set-up steps.
2025-01-07 12:34:56 +02:00
Oliver Gugger
f50fb91ed6
GitHub: upload logs on failure 2024-11-07 09:41:17 +01:00
Oliver Gugger
65144f2c97
GitHub+docker: update to Go 1.22.6 2024-10-23 11:50:41 +02:00
Oliver Gugger
81daa30ac8
.github: clear build cache between image builds
To fix the issue that currently prevents the second image (with the /lit
path prefix) to be built and pushed (both for releases and nightly
builds), we clear the build cache between builds.
2024-08-21 18:15:28 +02:00
Name
2c6075328f
GitHub: add nightly schedule to Docker CD workflow
Added a daily schedule to the Docker workflow to automate builds and
pushes of the `daily-testing` image. This change introduces a new cron
job that runs every day at midnight (UTC) and triggers the workflow.
2024-08-14 09:59:45 +02:00
Oliver Gugger
85a89b52b7
GitHub: split git tag and image tag
This commit allows us to have different values for the git tag that is
checked out (RELEASE_VERSION) and the image tag that we push
(IMAGE_TAG).
2024-08-14 09:21:12 +02:00
Oliver Gugger
cf9aaf32c0
GitHub: rename env variables
This commit renames the environment variables to be more accurate and
less confusing.
2024-08-14 09:19:52 +02:00
Elle Mouton
3f4b4f378e
scripts+.github: add release notes updated check 2024-06-11 11:24:59 -04:00
Viktor Tigerström
6d2e90a835
GitHub+Dockerfile: bump Go version to v1.22.3 2024-06-06 13:45:18 -04:00
Oliver Gugger
bca54ef83d
GitHub: re-enable the linter
The linter was disabled before due to a bug. Since the bug was likely
caused by an issue with a go module in a dependency project which was
updated in the meantime, we attempt to re-enable the linter in the CI
now.
2024-01-03 11:14:51 +01:00
jamaljsr
81850ca309
multi: update to go 1.21 2023-11-03 13:39:34 -05:00
Oliver Gugger
27f1fd3e44
github: disable linter
We run into an issue with the linter that couldn't be fixed yet:

level=error msg="Running error: 1 error occurred:\n\t* can't run linter goanalysis_metalinter: buildir: failed to load package loopdb: could not load export data: no export data for \"github.com/lightninglabs/loop/loopdb\"\n\n"

We disable the linter for now until we find out what the problem is.
2023-03-29 20:34:40 +02:00
positiveblue
c267ef64eb
multi: update lnd dependency to v0.16.0-beta.rc3
- Bump lnd and other module dependencies.
- Bump Go build version & RPCs
- Refactor itests to use the new lnd itest framework.
2023-03-15 08:36:23 -07:00
Elle Mouton
69516ec675
litrpc: add lit-autopilot protos
In this commit we add all the proto methods and messages that we will
need for the initial autopilot implementation.
2023-01-27 06:47:11 +02:00
Oliver Gugger
ce6ce3c8d0
GitHub: extract common steps 2023-01-05 09:36:14 +01:00
Elle Mouton
64e3108284
github: only run commit check on PR events 2022-11-22 16:43:15 +07:00
Elle Mouton
d2b843f491
github+scripts: check commits compile 2022-11-02 11:56:26 +02:00
Oliver Gugger
98b68a631f
github: run linter and mod-check in CI 2022-10-19 10:57:18 +02:00
Elle Mouton
3e23ae3001
Makefile+github: run unit tests
Currently only the unit-race check and the integration tests are run.
This commit ensures that the unit tests are also run.
2022-09-23 10:32:36 +02:00
Oliver Gugger
eb5782b923
make+GitHub: fix and run unit tests 2022-09-15 13:03:03 +02:00
Elle Mouton
544a024c06
multi: update to go 1.18 2022-09-14 14:18:03 +02:00
jamaljsr
f2d82eabb1
chore: exclude dependabot version updates 2022-08-03 22:14:46 -04:00
jamaljsr
ce24d598ac
chore: instruct dependabot to ignore devDependencies 2022-08-02 22:07:06 -04:00
jamaljsr
0233f27f33
build: update NodeJS to v16 in CI builds 2022-04-04 09:50:46 -04:00
Oliver Gugger
73f51e32a3
docker+GitHub: bump golang to v1.17.6 2022-02-08 15:33:19 +01:00
Oliver Gugger
3fc65556c5
itest: copy integration test framework from lnd 2022-02-08 15:33:16 +01:00
Oliver Gugger
81e893f7b5
multi: add litrpc package 2021-11-24 13:44:25 -05:00
Oliver Gugger
af0ffed16f
GitHub: fix build arg enumeration
Apparently multiple build args need to be specified on multiple lines,
otherwise they'll be seen as a single arg.
2021-11-02 09:08:45 +01:00
Oliver Gugger
8e422d058e
multi: create second image with path prefix
We want to allow users to use LiT under a custom path to make it easier
to integrate LiT in bundled software such as BTCPayServer. Because the
custom path prefix must be known at build time, we create an additional
docker image that uses the static /lit path as the prefix.
2021-11-01 12:27:41 +01:00
Oliver Gugger
a6a1127cf4
multi: use Docker for proto compilation
To remove the need for a dev to install a specific version of protoc we
now use a docker image for compiling the protos.
2021-07-16 13:23:27 +02:00
Oliver Gugger
b581952dff
Merge pull request #201 from lightninglabs/issue-template
GitHub: add issue templates
2021-03-10 19:53:07 +01:00
Oliver Gugger
1c3477a734
GitHub: add issue templates 2021-03-10 12:06:14 +01:00
Oliver Gugger
52f2480060
GitHub: add check for compiling CLI binaries 2021-03-03 10:02:56 +01:00
Oliver Gugger
b1d820c5ca
multi: update golang version to 1.16.0
To be able to use the new go:embed directive, we first need to update to
version 1.16.0.
2021-03-03 10:02:55 +01:00
jamaljsr
6fbf2777d2
ci: force LF line endings on backend builds 2021-01-27 11:11:21 -05:00
Oliver Gugger
91b36b2e1d
GitHub: use vendored actions for steps with sensitive info
To avoid leaking any sensitive information like Docker Hub credentials
because of compromised actions repositories, we use our own, vendored
actions for all steps that potentially touch sensitive information.
2021-01-25 14:00:47 +01:00
Oliver Gugger
b027ccc025
GitHub: only build docker images for 64bit ARM
To disincentivize users of 32bit machines to use lnd, we removed the
ARMv7 (32bit) target for docker images there. It therefore doesn't make
sense to provide LiT images for 32bit machines either.
2020-12-14 13:06:21 +01:00
jamaljsr
ca81d2dc19 ci: remove protoc setup from CI builds 2020-12-11 10:59:12 -05:00
Oliver Gugger
953b0cb698
GitHub: specify docker image platforms 2020-12-10 11:04:21 +01:00
Oliver Gugger
35d5d6b462
multi: check compiled protos in GH actions
To make sure the compiled protos in the git repository are always up to
date, we add a GitHub action that checks them by compiling and diffing
the files.
2020-12-10 11:04:20 +01:00
Oliver Gugger
886d148ccb
GitHub: add workflow for building tagged docker images
We add a GitHub workflow that is triggered whenever a new version tag is
pushed. It will trigger a docker image build for that version and
automatically push it to the specified repo.
2020-11-25 16:00:35 +01:00
jamaljsr
a58a3922cd ci: add yarn cache to backend CI build 2020-07-29 08:43:07 -04:00