Commit Graph

163 Commits

Author SHA1 Message Date
Tim Stack
c1a43d5dce [msys-build] add crypt32 lib... 2023-12-11 13:37:23 -08:00
Tim Stack
e9dbe4117f [build] tweak macos link 2023-09-25 09:28:28 -07:00
Tim Stack
6fdb56cd4e [lss] handle invalid row number 2023-08-28 09:54:10 -07:00
Suresh Sundriyal
7e9bdfbfcd Revert "[build] Use cURL instaed of git to get lnav from the repository."
This reverts commit 3f33d9d17a.
2023-08-03 01:00:37 -07:00
Suresh Sundriyal
1b2e8acb9b [build] Fix the action description. 2023-08-02 23:10:44 -07:00
Suresh Sundriyal
51f8f8299c [build] Upload lnav binary after the workflow. 2023-08-02 22:43:32 -07:00
Suresh Sundriyal
d2d17ed7f0 [build] Updaate github checkout action.
Seems like `checkout@v2` is being deprecated. Update to v3.
2023-07-23 00:38:21 -07:00
Suresh Sundriyal
3a45802d7d Revert "[build] Link the built binaries from the previous layers."
This reverts commit eb0cdd2486.
2023-07-22 13:39:06 -07:00
Suresh Sundriyal
e005ac0d50 Revert "[build] Compile ncurses without gpm support."
This reverts commit 5d87712fa8.
2023-07-22 13:38:50 -07:00
Suresh Sundriyal
eb0cdd2486 [build] Link the built binaries from the previous layers. 2023-07-22 13:08:34 -07:00
Suresh Sundriyal
3507118371 [build] Stop linking libdl with curl and libssh2. 2023-07-22 13:08:34 -07:00
Suresh Sundriyal
5d87712fa8 [build] Compile ncurses without gpm support. 2023-07-22 13:08:34 -07:00
Tim Stack
239f717638 Revert "[build] update cosmo version"
This reverts commit 23a711041a.
2023-07-14 09:15:59 -07:00
Tim Stack
23a711041a [build] update cosmo version 2023-07-14 06:41:42 -07:00
Tim Stack
b5e19ef3b0 [tests] add some tests for recent additions
Add missing SQLite JSON functions to the help
Fix some DB UI issues
2023-07-13 21:56:22 -07:00
Suresh Sundriyal
3f33d9d17a [build] Use cURL instaed of git to get lnav from the repository. 2023-07-13 15:39:22 -07:00
Suresh Sundriyal
192f2de374 [build] Build ncurses without unnecessary artifacts. 2023-07-13 15:36:52 -07:00
Suresh Sundriyal
5490fee155 [build] Create Docker images with latest alpine. 2023-07-13 15:35:21 -07:00
Suresh Sundriyal
7904b5fdd4 [build] Do a multi-stage Docker build. 2023-07-12 23:03:36 -07:00
Suresh Sundriyal
992d14dcb1 [build] Remove --with-default-terminfo-dir directive.
This seems to be settting the install path for the terminfo. As a result
the terminfo doesn't seem to be written in to fake.root.
2023-07-12 19:47:48 -07:00
Suresh Sundriyal
bc42ea0c07 [build] Install ncurses packages on the build machine.
Ncurses requires the terminfo database and infocmp to be installed on
the build machine to configure the fallback entries.
2023-07-12 19:08:11 -07:00
Suresh Sundriyal
1fb471f4ba [build] Remove apk update.
Since we are passing in the `--no-cache` option to `apk add`; `apk
update` unnecessarily adds a local index; increasing the size of the
container image.
2023-07-12 17:38:09 -07:00
Suresh Sundriyal
0ece2e4ac6 [build] Update readline version. 2023-07-12 16:17:21 -07:00
Suresh Sundriyal
ed72362b50 [build] Remove libexecinfo dependency on musl builds.
muslc does not expose the frame related information to execinfo.
Compiling with libexecinfo on muslc builds doesn't really serve any purpose.
2023-07-12 16:07:19 -07:00
Suresh Sundriyal
c86081adcb [workflow] Reduce the frequency of md link checker workflow. 2023-07-12 14:35:17 -07:00
Suresh Sundriyal
3e6a695f68 [buid] Disable shared libraries on a few more components. 2023-07-12 10:02:55 -07:00
Suresh Sundriyal
7053efabb6 [build] Only compile shared versions of the library. 2023-07-11 16:17:55 -07:00
Suresh Sundriyal
969bc582a2 [build] Trim down Dockerfile
Remove the unnecessary packages and the ones that are already installed
as part of dependencies and meta-packages.

Also compile whatever we explicitly link against.
2023-07-11 10:06:41 -07:00
Suresh Sundriyal
b1c7fad50d [templates] Update release version in issues template. 2023-07-09 18:49:28 -07:00
Suresh Sundriyal
addc5fbca6 [build] Create shallow clones while doing local images. 2023-07-09 18:49:28 -07:00
Suresh Sundriyal
022a73d0ff [build/bins] Update paths-ignore
Ignore updates to container and issue changes.
2023-07-09 18:49:19 -07:00
Suresh Sundriyal
ff0b112728 [build] Optimize the Dockerfile
Optimize the Dockerfile according to the best practices described here:
https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
2023-07-09 09:24:06 -07:00
Suresh Sundriyal
8628bba7e5 [build] Use registry cache to speed up container image builds
Use the registry cache as described here:
- https://docs.docker.com/build/ci/github-actions/cache/
- https://docs.docker.com/build/cache/
2023-07-09 09:23:13 -07:00
Suresh Sundriyal
22d4d6242d [build/concurrency] Only allow one musl-build-image job.
Two musl-build-image jobs can be triggered by two commits done within a
short amount of time. Since building the image times can vary; the job
with the previou commit might finish later; updating the docker hub with
an older commit.

This uses the `concurrency` directive to fix the issue. If another job
is running; they get cancelled and only the latest one spawned is run.
2023-07-08 23:05:21 -07:00
Suresh Sundriyal
881c19963b [build] Fix the ignore paths.
Try the syntax suggested here:
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-excluding-paths
2023-07-08 23:01:25 -07:00
Suresh Sundriyal
a3f55472ba [build] Replace the deprecated ghaction-docker-buildx
ghaction-docker-buildx has been merged with official docker action.
2023-07-08 20:45:42 -07:00
Suresh Sundriyal
1ec9fc8e22 [build] Remove unnecessary entries in the Dockerfile.
Cmake isn't used in the build script and make is installed on
the container image using apk and doesn't need to be compiled from
source.
2023-07-08 18:17:58 -07:00
Suresh Sundriyal
f4e666543d [build] Use strategy matrix to run arm builds. 2023-07-08 10:25:17 -07:00
Suresh Sundriyal
b22edd5a26 [build] Fix up aarch64 workflow.
Fix up the aarch4 workflow to use the docker-run-action and some minor
cleanup.
2023-07-08 09:31:19 -07:00
Suresh Sundriyal
a79689c286 [build] Use docker-run-action
Use docker-run-action to have more control of the emulated docker
container.
2023-07-08 09:31:19 -07:00
Suresh Sundriyal
0e2199f650 [build] Add support for armv7l & aarch64 builds. 2023-07-08 09:31:19 -07:00
Suresh Sundriyal
2489a79c24 [build] Use the newer musl container image.
Use the newer multi-platform musl container image and the correct
platform.
2023-07-08 09:31:12 -07:00
Tim Stack
44d8e0d2af [build] use TARGETPLATFORM instead 2023-07-07 19:23:40 -07:00
Tim Stack
c8fa534c7d [build] change the FROM in the Dockerfile 2023-07-07 19:02:19 -07:00
Tim Stack
bb0460ade5 [build] fix buildx cwd 2023-07-07 18:21:34 -07:00
Tim Stack
9c9bdfd5ff [build] automate making the lnav-build image 2023-07-07 18:19:37 -07:00
Suresh Sundriyal
9fe7f61f3f [container] Allow building a container for multiple platforms.
Take in the architecture as a build argument in the Dockerfile.

The various images can be built by passing in the ARCH build argument
while building the images:

```
* docker image build --build-arg ARCH=arm32v7 -t ... (arm32v7)
* docker image build --build-arg ARCH=arm64v8 -t ... (aarch64)
* docker image build  -t ... (amd64)
```

Re: #558
2023-07-07 13:27:50 -07:00
Suresh Sundriyal
00c03950fe [actions] Modify entrypoint.
Modify entrypoint to work in the absence of a `GITHUB_WORKSPACE`
environment variable.

This allows the containers to work locally.
2023-07-07 13:13:15 -07:00
Tim Stack
e3f4330377 [build] add --platform to Dockerfiles 2023-07-03 13:54:50 -07:00
Tim Stack
3fefbbc821 [build] fix some final release glitches 2023-07-02 21:16:02 -07:00