about summary refs log tree commit diff
path: root/src/ci/docker/run.sh
AgeCommit message (Collapse)AuthorLines
2025-07-15Fix handling of SCRIPT_ARG in docker imagesNikita Popov-8/+4
Instead of making this a build parameter, pass the SCRIPT as an environment variable. To this purpose, normalize on always referring to a script in `/scripts`. For i686-gnu-nopt-2 I had to create a separate script, because Docker seems to be really terrible at command line argument parsing, so it's not possible to pass an environment variable that contains whitespace.
2025-07-11Fix fallback for CI_JOB_NAMENikita Popov-1/+1
If CI_JOB_NAME is not specified, it's supposed to fall back to the image name, which is `$image`, not `$IMAGE`. Failing to set the correct CI_JOB_NAME causes failures when running `dist-ohos-*` images locally.
2025-05-20Use Docker cache from the current repositoryJakub Beránek-3/+2
This is needed to make the cache work after moving CI from the `rust-lang-ci` org to `rust-lang`.
2025-04-23CI: use aws codebuild for job dist-arm-linuxMarcoIeni-1/+1
2025-03-27Add CI metadata to bootstrap metricsJakub Beránek-0/+2
This will allow us to provide links to CI workflows, jobs and summaries in the post-merge analysis report.
2025-03-14Pass `CI_JOB_DOC_URL` to DockerJakub Beránek-0/+1
2025-02-14Do not pass empty AWS keys to sccache in PR buildsJakub Beránek-2/+8
2025-01-21ci: use ghcr buildkit imageMarcoIeni-2/+7
2024-12-31ci: Cleanup docker build logs in CIranger-ross-1/+2
2024-12-03CI: use free runners for i686-gnu jobsMarcoIeni-13/+22
2024-11-13fix REGISTRY_USERNAME to reuse cache between auto and pr jobsklensy-1/+3
2024-10-08handle CI rustc incompatible runnersonur-ozkan-0/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-07-17Commonize `uname -m` results for `aarch64` in docker runnerTrevor Gross-4/+7
`uname -m` on Linux reports `aarch64`, but on MacOS reports `arm64`. Commonize this to `aarch64`. With this fix, it is now possible to run aarch64 CI docker images on Arm MacOS.
2024-07-10Fix local download of Docker cachesJakub Beránek-1/+1
2024-07-04Make CI more agnostic of the owning GitHub organizationJakub Beránek-2/+1
This should make it possible to switch running `auto` and `try` builds from `rust-lang-ci` to `rust-lang`.
2024-05-28remove legacy rustsrc folderRémy Rakic-1/+0
2024-05-03Allow reusing CI Docker cache when running CI images locallyJakub Beránek-2/+10
2024-05-03Calculate the Docker hash key also locallyJakub Beránek-31/+29
2024-05-03Do not include Docker version in caching keyJakub Beránek-2/+0
We are now using Docker caching directly rather than downloading archives from S3, so it should not be needed. This should unblock reusing the cache locally.
2024-04-16Change the output artifact path to `$root_dir/obj/$image` when running locallyDianQK-3/+7
2024-04-09Only output to `GITHUB_STEP_SUMMARY` in a CI environmentDianQK-1/+3
2024-04-09Use `isCI` in `run.sh`DianQK-3/+3
2024-04-01Pass RUST_BACKTRACE when running docker.James Farrell-0/+1
2024-03-15CI: cache PR CI Docker buildsJakub Beránek-12/+29
2024-02-09Print image input file and checksum in CI onlyDianQK-3/+4
2024-01-28Print image input file and Docker versionJakub Beránek-0/+5
2024-01-22Cache CI Docker images in ghcr registryJakub Beránek-57/+52
2023-12-24allow devs to turn-off read-only modeonur-ozkan-1/+9
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-12-20if source is git, make /checkout dir safe for gitonur-ozkan-3/+12
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-11-30Fix cg_gcc CI runGuillaume Gomez-5/+0
2023-11-29Re-enable `rustc_codegen_gcc` tests in CIJosh Stone-3/+3
2023-11-04pass `CODEGEN_BACKENDS` to dockerRémy Rakic-0/+1
2023-11-03Revert "Auto merge of #117328 - lqd:cranelift-rocket, r=Mark-Simulacrum"Ralf Jung-1/+0
This reverts commit 1dfb6b162be402d8ca37e8aad4f58898b44e3a15, reversing changes made to bcb5798dd890a691644af9d371f3bd7fcc465584. That commit broke generating nightly rustc docs. Revert it until we can figure out how to have both, cranelift and docs.
2023-11-03Set some environment variables value only if ENABLE_GCC_CODEGEN is setGuillaume Gomez-1/+14
2023-11-02Rename `SKIP_CODEGEN_TESTS` into `ENABLE_GCC_CODEGEN`Guillaume Gomez-1/+1
2023-11-02Run codegen tests outside if not llvm-15Guillaume Gomez-0/+1
2023-10-28pass `CODEGEN_BACKENDS` to dockerRémy Rakic-0/+1
2023-10-15Fix podman detection in CI scriptsNilstrieb-1/+1
When docker-podman compat was set up in a way that causes "docker" to be the argv[0] of podman, the previous detection did not work. This was for example the case in the compat package from nixpkgs. This checks the output and should work everywhere.
2023-10-02Add artifact size and step duration summaries from `opt-dist` to github job ↵Jakub Beránek-0/+6
summary
2023-08-17CI: add more debug logging to Docker cachingJakub Beránek-4/+10
2023-08-12CI: fix Docker layer cachingJakub Beránek-0/+11
2023-08-02Add more context to `quit_if_file_exists` in `configure.py`Trevor Gross-0/+1
Currently, having a dirty `obj/` directory is sufficient to abort CI tests. This results in errors like the following: ``` ... == end clock drift check == sccache: Starting the server... configure: error: Existing 'config.toml' detected. == clock drift check == ... ``` This is subtle and doesn't give a good idea as to what causes the issue. With this patch, the error becomes more prominent and a resolution is suggested: ``` == end clock drift check == sccache: Starting the server... configure: ERROR: Existing 'config.toml' detected. Exiting Is objdir '/home/tmgross/projects/rust/obj' clean? == clock drift check == ```
2023-07-14Add even more GHA log groupsjyn-1/+3
This also adds a dynamic check that we don't emit nested groups, since GHA currently doesn't support them.
2023-07-06Auto merge of #112779 - Kobzol:ci-merge-llvm-14, r=pietroalbinibors-0/+1
CI: merge x86_64-gnu-llvm-14 and x86_64-gnu-llvm-14-stage1 CI jobs Another attempt to shorten CI job times. Suggested by `@the8472` [here](https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/CI.20usage/near/367172221).
2023-06-19CI: merge x86_64-gnu-llvm-14 and x86_64-gnu-llvm-14-stage1 CI jobsJakub Beránek-0/+1
2023-06-15cleanup more azure leftoversklensy-2/+0
2023-06-01Do not build components unneeded for perf bot in try buildsJakub Beránek-0/+1
2023-04-30Set the AWS region.Eric Huss-0/+1
2022-08-23Use `--userns=keep-id` when "docker" is really podmanJosh Stone-1/+10
Rootless podman creates a separate user namespace, where an inner `LOCAL_USER_ID` will map to a different subuid range on the host. The "keep-id" mode maps the current UID directly into the container. This makes `src/ci/docker/run.sh` work better for testing container images on systems running podman, where "docker" is just a shim.
2021-11-01Ignore files copied from previous stage when generating hash.Hans Kratz-1/+2