Jonas Zohren
8fe42115a6
ci: Update some docker settings
2023-10-18 13:10:36 +00:00
Jonas Zohren
3b999ce82a
ci: Test docker build on fsinfo runner
2023-10-18 12:24:45 +00:00
Jonas Zohren
c4824a6ebc
ci: Fix "0 B" image size display
...
works around gitlab issue https://gitlab.com/gitlab-org/gitlab/-/issues/388865#workaround
2023-07-04 21:13:11 +00:00
Jonas Zohren
26b8605fa0
ci: Adjust to current docker
2023-06-26 22:26:33 +02:00
Jonas Zohren
a3a9b60abc
chore(ci): Adjust to rust version bumps
2023-06-10 15:35:22 +00:00
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
2023-05-21 20:41:08 +00:00
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>
2023-01-19 07:42:23 +01:00
Jonas Zohren
b37876f3b2
fix(ci): Only build in (remote host) docker and switch to glibc
2022-11-02 12:12:48 +01:00
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
2022-10-10 14:13:18 +02:00
Jonas Zohren
61277452af
chore(docker): Bump alpine (base image) version
2022-03-18 18:44:05 +01:00
Jonas Zohren
5a9462c9ab
fix(ci): Fix musl builds
...
This pins the image to use for cross to a working image's sha256
2022-03-08 21:52:57 +00:00
Jonas Zohren
ad6eb92bbd
feat(ci): Add dependency audit to CI tests
2022-02-19 12:19:06 +01:00
Jonas Zohren
8f063c99d5
chore(ci): Split up tests
2022-02-18 22:29:55 +01:00
Jonas Zohren
b21a44ca4c
feat(ci): Lint dockerfiles with hadolint
2022-02-15 20:01:38 +01:00
Jonas Zohren
2645494582
fix(ci): Also run CI for git tags
2022-02-15 11:17:46 +01:00
Jonas Zohren
77f4b68c8e
fix(ci): Also create versioned docker image
2022-02-15 11:17:32 +01:00
Jonas Zohren
826b077e21
fix(ci): Always build debug version for sytest
2022-02-04 18:43:13 +01:00
Jonas Zohren
fa4099b138
Use prebuilt CI-containers from https://gitlab.com/jfowl/conduit-containers
...
Also run all builds on approved MRs
2022-02-01 23:51:38 +00:00
Maxim De Clercq
ff16729976
fix: correct RUSTC_WRAPPER path in cross container
2022-01-26 00:02:03 +01:00
Maxim De Clercq
067fcfc0e4
fix: remove trailing slash from shared path
2022-01-23 22:51:02 +01:00
Maxim De Clercq
77ad4cb8f8
fix: use readelf for checking static compilation
2022-01-23 22:51:02 +01:00
Maxim De Clercq
64c25ea4a1
fix: always print ELF information
2022-01-23 18:38:33 +01:00
Maxim De Clercq
219dfbabd5
fix: pass RUSTC_WRAPPER to the cross container and enforce static builds
2022-01-23 17:31:12 +01:00
Maxim De Clercq
fd67cd7450
feat: support targetting i686
2022-01-23 15:58:19 +01:00
Maxim De Clercq
cd9902637d
feat: use rustembedded/cross images and use static relocation model to fix cross-compile
2022-01-23 14:41:39 +01:00
Maxim De Clercq
a021680591
fix: make sure libatomic is always linked because it's skipped on arm targets
2022-01-22 01:14:36 +01:00
Maxim De Clercq
3e9abfedb4
fix: make sure libstdc++ is linked statically when cross-compiling
2022-01-22 00:14:19 +01:00
Maxim De Clercq
bfef94f5f4
fix: linking against libatomic is no longer required since the library path is fixed
2022-01-21 17:26:25 +01:00
Maxim De Clercq
d94f3c1e9a
fix: make sure cc-rs and bindgen use the correct paths when cross-compiling
2022-01-21 17:06:15 +01:00
Jonas Platte
8d81c1c072
Use MSRV for build CI jobs
...
The test job will use the latest stable so all stable lints are included.
2022-01-20 13:23:58 +01:00
Jonas Zohren
10f1da12bf
CI: Fix cargo-test
2022-01-16 20:57:23 +00:00
Jonas Zohren
f67785caaf
Fix(ci): Disable CARGO_HOME caching
2022-01-13 22:24:47 +00:00
Jonas Zohren
adb518fa0d
CI: Use curl instead of wget
...
The rust docker image already comes with curl, no need to install wget.
2021-12-14 11:16:40 +01:00
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
2021-12-14 11:16:02 +01:00
Jonas Zohren
9bfc7b34b6
Fixes for !225
2021-11-25 22:36:44 +00:00
Jonas Zohren
2fff720df3
CI: New Multiarch builds and Docker images + cargo clippy/test output now integrated into GitLab
2021-11-21 17:34:08 +00:00
Jonas Zohren
e8d998cedf
fix(ci): Convince kaniko that it is indeed running in a container by --force-ing it.
2021-09-14 20:44:11 +00:00
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>
2021-09-14 12:32:07 +02:00
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.
2021-09-14 09:44:15 +00:00
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>
2021-09-02 17:17:51 +02:00
Jonas Zohren
3357bbec1e
chore: Also run CI on git tags, not only new commits.
...
Signed-off-by: Jonas Zohren <git-pbkyr@jzohren.de>
2021-09-02 09:17:25 +02:00
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.
2021-08-31 18:03:44 +02:00
Jonas Zohren
b6e755f67e
Only apply max. optimizations in CI builds.
...
The average german man has a life expectancy of 78.7 years, or 689884.2 hours.
Assuming that Timo is 20 years old, he has rougly 514564.2 hours left on planet earth.
Also assuming that cross release builds took him 25 minutes before,
but 2-2.5x of that with the current release compilation config he wasted roughly an hour waiting for it to complete.
If he continued to work on Conduit for 20 more years (or 175320 hours),
and makes a release compilation about once per day, this means 7305 hours or 304 days wasted waiting for the rust compiler.
By cutting that back down to the original settings, he get's 182 days of his life back.
That's about 0.63% of his remaining life.
182 joyful days he can spend with family and loved ones.
2021-08-22 21:05:32 +00:00
Jonas Zohren
9c3a8edcae
Use full optimizations for master and faster config else
...
Signed-off-by: Jonas Zohren <git-pbkyr@jzohren.de>
2021-08-14 21:41:27 +02:00
Daniel Wiesenberg
fcd127aadc
Also push docker image to docker hub
2021-07-30 17:15:44 +02:00
Jonas Zohren
0a8dadb797
Add hardcoded artifacts.expose_as to show them in MRs
2021-07-19 20:39:58 +02:00
Jonas Zohren
678ce0abc6
CI: Create docker image with musl binary
2021-07-19 20:39:58 +02:00
Jonas Zohren
d6b37480e7
CI: Fix package upload
2021-07-19 10:00:44 +00:00
Jonas Zohren
130b9841da
CI: Add sytest
2021-07-19 08:47:31 +00:00
Jonas Zohren
2babff1e41
CI: Test registration with element web
2021-07-19 08:23:04 +00:00