Commit Graph

98 Commits (all-the-lints)

Author SHA1 Message Date
Matthias Ahouansou eec9b9ed87
chore: bump nix 2 months ago
Matthias Ahouansou 358164f49d
ci: only cache attic when nix is available 2 months ago
Matthias Ahouansou d97f5aa3b8 Merge branch 'ci/fastzip' into 'next'
ci: faster cache and artifact handling

See merge request famedly/conduit!664
2 months ago
Samuel Meenzen 5570f5f3da
ci: faster cache and artifact handling 2 months ago
Matthias Ahouansou 3ecf835b50
ci: cache attic on artifacts job 2 months ago
Matthias Ahouansou 0b217232ac
ci: push attic to binary cache, update nix script 2 months ago
Timo Kösters 3b7c001350
ci: use attic.conduit.rs 2 months ago
Charles Hall 6800e5fd18
build book in ci, deploy it to gitlab pages 4 months ago
Samuel Meenzen 4af691d737
fix(ci): avoid duplicate pipelines 4 months ago
Samuel Meenzen 0d2f1348da
feat: run ci on demand to prevent unnecessary job executions 4 months ago
Charles Hall ae69da635b
allow overriding the attic endpoint
And also the public key so that pulling from the new endpoint will work.

This allows other people to host their own attic instances and configure
their (CI) environment to override the default endpoint so e.g. they can
take advantage of a binary cache without having write access to the
official one.

I didn't actually test this change but I think it should work.

Also why'd I format the script like that, ew lol
4 months ago
Charles Hall d411e9037c
upload all devshell inputs to the cache
This will also include attic, so we don't need to explicitly do this
in `./bin/nix-build-and-cache` anymore, which is good because that
script gets called a good number of times and doing that repeatedly was
a bit of a waste.
4 months ago
Charles Hall d5a9c6ac32
use nix-built binary to produce debian package
Currently just for `x86_64-unknown-linux-musl`. Theoretically, we can
use this same mechanism for `aarch64-unknown-linux-musl`. Practically,
I'm not sure just this will even work.
4 months ago
Charles Hall 4e09c9e58a
build all nix-based artifacts in a single job
This will reduce the amount of full builds that need to be done by runs
that don't have write access to the nix binary cache.
4 months ago
Charles Hall 6281c64c33
upgrade nixos/nix image 4 months ago
Charles Hall 4f352a711a
add trailing newline to file
Please fix your editor configuration...
4 months ago
Samuel Meenzen 1c6a4b1b24 feat(ci): push oci-image to docker hub 5 months ago
Samuel Meenzen d6c57f9b2e Publish oci image to the gitlab registry 5 months ago
Charles Hall a43bde69fa
pass pkgsCrossStatic to mkOciImage, not pkgsHost
This fixes a bug where the aarch64 OCI image had metadata saying it was
an x86_64 OCI image. On top of that, I think the metadata was actually
right (aside from Conduit's binary): since all other packages were being
pulled from `pkgsHost`, an OCI image cross compiled for aarch64 from a
different architecture would result in unexecutable binaries (e.g. tini)
since they were compiled for the completely wrong architecture.
5 months ago
Charles Hall 9453dbc740
update rust toolchain
It comes with a bunch of new lints (yay!) so I fixed them all so CI will
keep working.

Also apparently something about linking changed because I had to change
the checks for deciding the linker flags for static x86_64 builds to
keep working.
5 months ago
Charles Hall 7c1a3e41d9
add package to build an aarch64 oci image
And build it as an artifact in CI.
5 months ago
Charles Hall 0e8e4f1083
add static cross to aarch64-unknown-linux-musl 5 months ago
Charles Hall 81ae579b25
add static cross to x86_64-unknown-linux-musl 5 months ago
Charles Hall 52954f7a11
use fromToolchainFile
I *think* this will make it easier to pull in extra rustc targets.
5 months ago
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