Commit Graph

138 Commits

Author SHA1 Message Date
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
Tim Stack
c575ba0a50 [build] fix rpm spec version 2023-07-01 07:19:32 -07:00
Tim Stack
0d40656ff6 [build] fix rpmbuild condition 2023-06-30 22:52:30 -07:00
Tim Stack
dd1bb8e25c [build] don't push to packagecloud always 2023-06-30 21:42:36 -07:00
Tim Stack
643dcdb6c8 [build] make rpm on tag 2023-06-30 21:39:39 -07:00
Tim Stack
bb6e525146 [build] fix rpm path 2023-06-30 15:02:07 -07:00
Tim Stack
acf8265e4b [build] fix branch name 2023-06-30 14:42:48 -07:00
Tim Stack
973f6dbf01 [build] try again to push to packagecloud 2023-06-30 14:41:12 -07:00
Tim Stack
37413a993f [build] push to packagecloud.io 2023-06-30 14:04:24 -07:00
Tim Stack
a43e4f1a69 [build] remove scl repo 2023-06-30 10:44:34 -07:00
Tim Stack
3470a7683f [build] use fork of rpmbuild 2023-06-30 10:22:19 -07:00
Tim Stack
a605700a91 [build] fix gcc version 2023-06-30 10:07:49 -07:00
Tim Stack
48dd6b89ac [build] rpm tweaks 2023-06-30 09:58:19 -07:00
Tim Stack
a669ade607 [build] try to build an rpm 2023-06-30 09:50:55 -07:00
Tim Stack
522f2a2b03 [NEWS] mention improvement to JSON log detection 2023-06-29 05:53:36 -07:00
Tim Stack
c82bcf2b90 [build] add zstd-dev to alpine 2023-06-24 06:29:24 -07:00
Tim Stack
ef6946852a [muslbuild] link lz4 2023-06-15 08:40:38 -07:00
Tim Stack
d3d25bae4c [muslbuild] install more stuff 2023-06-15 07:48:09 -07:00
Tim Stack
e6f5a95a80 [release] add zstd to alpine and some other release tweaks 2023-06-15 06:16:01 -07:00
Tim Stack
5d5fb67d8c [release] tweak curl config again 2023-06-14 22:45:13 -07:00
Tim Stack
4a00433bec [release] skip brew curl 2023-06-14 21:59:06 -07:00
Tim Stack
7713eb8242 [release] get prefix from brew 2023-06-14 21:40:19 -07:00
Tim Stack
06f259a03f [release] fix configure for macos 2023-06-14 21:36:11 -07:00
Tim Stack
cc6b953595 [release] upload config.log for debugging 2023-06-14 21:30:27 -07:00
Tim Stack
2d5835897d [release] add more packages 2023-06-14 16:21:08 -07:00
Tim Stack
34900a94c4 [release] try to build macos binary 2023-06-14 16:15:10 -07:00