summary refs log tree commit diff
path: root/src/ci/scripts
AgeCommit message (Collapse)AuthorLines
2020-03-21ci: use python from the correct pathPietro Albini-2/+3
Apparently the old path we were using for Python 2 on Windows was not documented, and eventually got removed. This switches our CI to use the correct path.
2020-02-19Rollup merge of #68863 - pietroalbini:azure-macos-10.15, r=Mark-SimulacrumDylan DPC-16/+1
ci: switch macOS builders to 10.15 Azure Pipelines is deprecating the macOS 10.13 image we're currently running, [and they plan to remove them](https://devblogs.microsoft.com/devops/removing-older-images-in-azure-pipelines-hosted-pools/) on March 23, 2020. This PR switches our macOS builders to macOS 10.15. r? @Mark-Simulacrum
2020-02-18Clean out some default-installed directoriesMark Rousskov-0/+16
This helps us have enough disk space for our builders to be able to complete successfully. For now, the choices are ad-hoc and 'definitely not needed'. This should never fail the build, as everything our build needs should be inside Docker.
2020-02-17ci: switch macOS builders to 10.15Pietro Albini-16/+1
2019-12-30ci: fix wrong sysroot in macos 10.15 onwardsPietro Albini-0/+9
In their infinite wisdom, Apple decided that (starting from macOS 10.15 onwards) /usr/include is not the location we should all search in for our beloved C headers. Instead, we should look inside the extremely intuitive and easily guessable new path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include Because why not.
2019-12-30ci: install binutils in msys2Pietro Albini-1/+2
2019-12-24Use the chocolatey CDN directly to avoid the flaky APIAidan Hobson Sayers-6/+10
2019-12-22temporary retry around msys2 installMark Rousskov-4/+6
2019-11-22ci: guess some environment variables based on builder name and osPietro Albini-0/+31
Some environment variables (like DEPLOY or DEPLOY_ALT for dist builders, or IMAGE on Linux builders) are set on a lot of builders, and whether they should be present or not can be detected automatically based on the builder name and the platform. This commit simplifies the CI configuration by automatically setting those environment variables.
2019-11-22ci: add support for GitHub Actions in the CI scriptsPietro Albini-4/+4
2019-11-12ci: move validate-toolstate.sh in the mingw-check imagePietro Albini-18/+0
The task was already run just there, so this cleans things up.
2019-11-12ci: extract collecting cpu stats into a scriptPietro Albini-0/+9
2019-11-12ci: extract running the build into a scriptPietro Albini-0/+21
2019-11-12ci: extract validate-toolstate into a scriptPietro Albini-0/+18
2019-11-12ci: remove the MSYS_BITS env varPietro Albini-11/+21
2019-11-12ci: remove the MINGW_DIR and MINGW_ARCHIVE env varsPietro Albini-3/+12
2019-11-12ci: replace MINGW_URL with CUSTOM_MINGW=1Pietro Albini-4/+4
This commit replaces the mirrors base URL contained in the MINGW_URL with a CUSTOM_MINGW=1 environment variable. The mirrors base URL will be fetched instead through the MIRRORS_BASE environment variable, defined in src/ci/shared.sh.
2019-11-07Update clang to build LLVM to 9.0.0Alex Crichton-11/+12
This also ensure that we're using the same clang version for all our major platforms instead of 8.0 on Linux and 7.0 on OSX/Windows.
2019-10-31Rollup merge of #65955 - pietroalbini:master-revert-msys2-hack, ↵Mazdak Farrokhzad-16/+0
r=Mark-Simulacrum ci: revert msys2 ca-certificates hack The hack was added because upstream msys2 broke the ca-certificates package, but since then it has been fixed. This reverts CI to use the upstream package. Part of #65767
2019-10-31Rollup merge of #65274 - pietroalbini:ci-upload-toolstate, r=alexcrichtonMazdak Farrokhzad-0/+41
Upload toolstates.json to rust-lang-ci2 This PR does two things: * Following up with https://github.com/rust-lang/rust/pull/65202, it migrates deploying artifacts to CI in a script. Both uploading release artifacts and CPU stats were merged into the same script, designing it to be easily extended. * Uploads the toolstate JSON to `rust-lang-ci2` along with the release artifacts, both for Linux and Windows. This is needed because @RalfJung wants to stop shipping MIRI when its tests are failing, and the toolstate repo doesn't have entries for each commit. Having the toolstate data (just for that specific commit) on `rust-lang-ci2` will simplify the code a lot. r? @alexcrichton cc @RalfJung
2019-10-30ci: move toolstates.json to /tmp/toolstate/ and docker mount itPietro Albini-1/+1
Before this commit toolstates.json was stored in /tmp and it wasn't mounted outside the build container. That caused uploading the file in the upload-artifacts task to fail, as the file was missing on the host. Mounting /tmp/toolstates.json alone is not the best approach: if the file is missing when the container is started the Docker engine will create a *directory* named /tmp/toolstates.json. The Docker issue could be solved by pre-creating an empty file named /tmp/toolstates.json, but doing that could cause problems if bootstrap fails to generate the file and the toolstate scripts receive an empty JSON. The approach I took in this commit is to instead mount a /tmp/toolstate directory inside Docker, and create the toolstates.json file in it. That also required a small bootstrap change to ensure the directory is created if it's missing.
2019-10-30ci: revert msys2 ca-certificates hackPietro Albini-16/+0
The hack was added because upstream msys2 broke the ca-certificates package, but since then it has been fixed. This reverts CI to use the upstream package.
2019-10-29Apply suggestions from lzutaoPietro Albini-1/+1
Co-Authored-By: lzutao <taolzu@gmail.com>
2019-10-29Apply suggestions from lzutaoPietro Albini-3/+3
Co-Authored-By: lzutao <taolzu@gmail.com>
2019-10-29ci: upload toolstates.json to rust-lang-ci2Pietro Albini-0/+5
Uploading the toolstate data for each commit will help our release tooling understand which components are failing, to possibly skip shipping broken tools to users.
2019-10-29ci: extract uploading artifacts into a scriptPietro Albini-0/+36
2019-10-29ci: extract job skipping logic into a scriptPietro Albini-0/+20
2019-10-28ci: fix wrong path for wix being setPietro Albini-2/+2
2019-10-28ci: fix execution condition for install-clangPietro Albini-1/+1
2019-10-25ci: fix tidyPietro Albini-0/+1
2019-10-25ci: fix installation condition for MinGWPietro Albini-5/+5
I mistakenly inverted the "variable is not set" check in bash.
2019-10-25ci: split install-msys2 step into two separate scriptsPietro Albini-14/+25
2019-10-25ci: fix wrong path being set in install-msys2.shPietro Albini-1/+1
2019-10-25ci: fix innosetup installationPietro Albini-1/+1
2019-10-25ci: reuse the mirrors base url from shared.sh in scriptsPietro Albini-7/+5
2019-10-25ci: fix tidyPietro Albini-5/+10
2019-10-25ci: use shared.sh in scripts/install-awscli.shPietro Albini-1/+3
2019-10-25ci: extract verifying line endings into a scriptPietro Albini-0/+24
2019-10-25ci: extract checking out submodules into a scriptPietro Albini-0/+17
2019-10-25ci: extract enabling ipv6 on docker into a scriptPietro Albini-0/+14
2019-10-25ci: extract installing ninja into a scriptPietro Albini-0/+16
2019-10-25ci: extract installing mingw into a scriptPietro Albini-0/+44
2019-10-25ci: extract installing msys2 into a scriptPietro Albini-0/+40
2019-10-25ci: extract disabling git crlf handling into a scriptPietro Albini-0/+13
2019-10-25ci: extract parts of windows-build-deps into scriptsPietro Albini-0/+50
2019-10-25ci: extract switching xcode into a scriptPietro Albini-0/+13
2019-10-25ci: extract installing clang into a scriptPietro Albini-0/+42
2019-10-25ci: extract installing sccache into a scriptPietro Albini-0/+20
2019-10-25ci: extract dumping the environment into a scriptPietro Albini-0/+19
2019-10-25ci: move install-awscli.sh into scripts/Pietro Albini-0/+35