Compare commits

...
3 Commits
Author SHA1 Message Date
izzy 6daa8223b2 ci: must login to ghcr before pushing base image 2025-05-09 23:10:35 +01:00
izzy 4a58d6eae0 chore: enable lto for production builds (#341) 2025-05-09 23:04:37 +01:00
izzy a8a2e491b0 ci: reduce threads available to build 2025-05-09 22:59:51 +01:00
3 changed files with 16 additions and 16 deletions
+9 -9
View File
@@ -48,15 +48,6 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# Build the image
- name: Build base image
uses: docker/build-push-action@v4
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/${{ github.repository_owner }}/base:latest
# Authenticate with Docker Hub and GHCR
- name: Login to DockerHub
uses: docker/login-action@v2
@@ -72,6 +63,15 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Build the image
- name: Build base image
uses: docker/build-push-action@v4
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/${{ github.repository_owner }}/base:latest
# revoltchat/server
- name: Docker meta
id: meta-delta
+3 -3
View File
@@ -16,6 +16,6 @@ redis23 = { package = "redis", version = "0.23.3", git = "https://github.com/rev
# I'm 99% sure this is overloading the GitHub worker
# hence builds have been failing since, let's just
# disable it for now. In the future, we could use this
# if we were rolling our own CI.
# [profile.release]
# lto = true
# if we were rolling our own CI (that is now).
[profile.release]
lto = true
+4 -4
View File
@@ -56,9 +56,9 @@ deps() {
tee crates/core/result/src/lib.rs
if [ -z "$TARGETARCH" ]; then
cargo build -j 24 --locked --release
cargo build -j 10 --locked --release
else
cargo build -j 24 --locked --release --target "${BUILD_TARGET}"
cargo build -j 10 --locked --release --target "${BUILD_TARGET}"
fi
}
@@ -77,9 +77,9 @@ apps() {
crates/core/result/src/lib.rs
if [ -z "$TARGETARCH" ]; then
cargo build -j 24 --locked --release
cargo build -j 10 --locked --release
else
cargo build -j 24 --locked --release --target "${BUILD_TARGET}"
cargo build -j 10 --locked --release --target "${BUILD_TARGET}"
mv target _target && mv _target/"${BUILD_TARGET}" target
fi
}