Commit Graph

74 Commits (5cc53c9e14ef5319f2dd8f88aa58d6e966cfdb20)

Author SHA1 Message Date
Charles Hall 5cc53c9e14
push oci image and x86_64-*-gnu build to bin cache
This will allow most Nix users to use the `default` package and without
having to build from source. And also allows any weirdos to get the OCI
image from the Nix binary cache if they want. No idea why that would be
desireable though lol
5 months ago
Charles Hall 6ae776218c
add our own binary cache
The machine I'm hosting this on doesn't have incredible upload speeds
but it should be good enough?
5 months ago
Charles Hall bd2b146d5d
add crane binary cache
This way we don't need to build e.g. crane-utils every time.
5 months ago
Charles Hall f7cc4fb3bb
state artifacts' targets and rename artifacts
This will make it more obvious what's what and be more internally
consistent.
5 months ago
Charles Hall 0b7ed5adc9
add debian package building in ci
This uses a separate step and docker image, which I'm not a huge fan of.
At least I could get this to work for now, but I won't be shocked when
it breaks later. I know, I know, fixing this kind of problem is the
exact reason I bothered to do this, but I was really struggling to do
better here. Maybe I can take a second pass at this later.

Also, this explicitly names the caches, because without this, various
things related to linking will break.
5 months ago
Charles Hall 4de54db305
redo docker image and build it in ci 5 months ago
Charles Hall 7e66d2e2c0
use nix and engage to manage ci 5 months ago
Charles Hall ffd03a256b
remove workflow rules
I don't think these are actually necessary? At least in my own testing,
I haven't seen duplicate pipelines for a single commit when converting
from just a branch to a merge request.
5 months ago
Charles Hall 9d592d60d2
remove dockerlint step because it does nothing
It's configured to let the pipeline pass even if there are warnings or
errors, i.e. it's pointless.
5 months ago
Charles Hall 25ceb5ebd8
remove commented out ci step
If you want it back, just look at the git history.
5 months ago
Jonas Zohren c4824a6ebc ci: Fix "0 B" image size display
works around gitlab issue https://gitlab.com/gitlab-org/gitlab/-/issues/388865#workaround
1 year ago
Jonas Zohren 26b8605fa0 ci: Adjust to current docker 1 year ago
Jonas Zohren a3a9b60abc chore(ci): Adjust to rust version bumps 1 year ago
Jonas Zohren a4261aac76 * Fix Debian builds by actually including the whole `debian` directory into deb creation
* Fix CI by explicitly setting hostname of docker in docker service
* Fix Docker build by bumping the Rust version to 1.69
* Fix cargo check in CI by bumping the Rust version to 1.69
1 year ago
The one with the braid f01b96588d fix: adjust CI config to runner requirements
- make use of more stable BTRFS driver
- set default pull policy to `if-not-present`

Signed-off-by: The one with the braid <the-one@with-the-braid.cf>
1 year ago
Jonas Zohren b37876f3b2 fix(ci): Only build in (remote host) docker and switch to glibc 2 years ago
Jonas Zohren 71cffcd537
feat(ci): Split clippy into own fallible job
For some reason, the clippy build does not work.
This change allows the cargo:test job to still succeed
and the pipeline to pass
2 years ago
Jonas Zohren 61277452af
chore(docker): Bump alpine (base image) version 2 years ago
Jonas Zohren 5a9462c9ab fix(ci): Fix musl builds
This pins the image to use for cross to a working image's sha256
2 years ago
Jonas Zohren ad6eb92bbd
feat(ci): Add dependency audit to CI tests 2 years ago
Jonas Zohren 8f063c99d5
chore(ci): Split up tests 2 years ago
Jonas Zohren b21a44ca4c
feat(ci): Lint dockerfiles with hadolint 2 years ago
Jonas Zohren 2645494582
fix(ci): Also run CI for git tags 2 years ago
Jonas Zohren 77f4b68c8e
fix(ci): Also create versioned docker image 2 years ago
Jonas Zohren 826b077e21
fix(ci): Always build debug version for sytest 2 years ago
Jonas Zohren fa4099b138 Use prebuilt CI-containers from https://gitlab.com/jfowl/conduit-containers
Also run all builds on approved MRs
2 years ago
Maxim De Clercq ff16729976
fix: correct RUSTC_WRAPPER path in cross container 2 years ago
Maxim De Clercq 067fcfc0e4
fix: remove trailing slash from shared path 2 years ago
Maxim De Clercq 77ad4cb8f8
fix: use readelf for checking static compilation 2 years ago
Maxim De Clercq 64c25ea4a1
fix: always print ELF information 2 years ago
Maxim De Clercq 219dfbabd5
fix: pass RUSTC_WRAPPER to the cross container and enforce static builds 2 years ago
Maxim De Clercq fd67cd7450
feat: support targetting i686 2 years ago
Maxim De Clercq cd9902637d
feat: use rustembedded/cross images and use static relocation model to fix cross-compile 2 years ago
Maxim De Clercq a021680591
fix: make sure libatomic is always linked because it's skipped on arm targets 2 years ago
Maxim De Clercq 3e9abfedb4
fix: make sure libstdc++ is linked statically when cross-compiling 2 years ago
Maxim De Clercq bfef94f5f4
fix: linking against libatomic is no longer required since the library path is fixed 2 years ago
Maxim De Clercq d94f3c1e9a
fix: make sure cc-rs and bindgen use the correct paths when cross-compiling 2 years ago
Jonas Platte 8d81c1c072
Use MSRV for build CI jobs
The test job will use the latest stable so all stable lints are included.
2 years ago
Jonas Zohren 10f1da12bf CI: Fix cargo-test 2 years ago
Jonas Zohren f67785caaf Fix(ci): Disable CARGO_HOME caching 2 years ago
Jonas Zohren adb518fa0d
CI: Use curl instead of wget
The rust docker image already comes with curl, no need to install wget.
3 years ago
Jonas Zohren f91216dd3c
CI: Optionally use sccache for compilation
This moves compiler caching for incremental builds away from GitLab
caching the whole target/ folder to caching each code unit in S3.
This aleviates the need to zip and unzip and just caches on the fly.

This feature is optional and gated behind the SCCACHE_BIN_URL env
3 years ago
Jonas Zohren 9bfc7b34b6 Fixes for !225 3 years ago
Jonas Zohren 2fff720df3 CI: New Multiarch builds and Docker images + cargo clippy/test output now integrated into GitLab 3 years ago
Jonas Zohren e8d998cedf fix(ci): Convince kaniko that it is indeed running in a container by --force-ing it. 3 years ago
Jonas Zohren ab472e9b7c fix(ci): Fix aarch64 build
gcc-8-aarch64-linux-gnu is not available in debian 11 (which the rust image uses), so update to gcc-10

Signed-off-by: Jonas Zohren <git-pbkyr@jzohren.de>
3 years ago
Jonas Zohren 422bd09e32 Remove the "register an account with element" test
Broke due to a timeout and Timo does not like broken tests.
Less testing means less failing tests.

Also, hopefully sytest is less broken now.
3 years ago
Jonas Zohren a1f51440e2 chore(CI): Adjust CI for master and next branch development model
- Build release builds for branches "master" and "next"
- Push docker images under different tags, depending on why the pipeline started
  - branch master: push to `latest`
  - branch next: push to `next`
  - tag: push to `$TAG_NAME`

Signed-off-by: Jonas Zohren <git-pbkyr@jzohren.de>
3 years ago
Jonas Zohren 3357bbec1e chore: Also run CI on git tags, not only new commits.
Signed-off-by: Jonas Zohren <git-pbkyr@jzohren.de>
3 years ago
Daniel Wiesenberg a08ea15695 Use `$CI_COMMIT_SHORT_SHA` for `GIT_REF`
Using `$CI_COMMIT_REF_NAME` means we get `master` for every image build,
which is not very useful/informative. Using `$CI_COMMIT_SHORT_SHA`,
on the other hand, makes it possible to see exactly from which commit an
image was built.
3 years ago