aboutsummaryrefslogtreecommitdiff
path: root/libc/ci/azure-install-rust.yml
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2020-04-04 14:39:19 -0700
committerDaniel Mueller <deso@posteo.net>2020-04-04 14:39:19 -0700
commitd0d9683df8398696147e7ee1fcffb2e4e957008c (patch)
tree4baa76712a76f4d072ee3936c07956580b230820 /libc/ci/azure-install-rust.yml
parent203e691f46d591a2cc8acdfd850fa9f5b0fb8a98 (diff)
downloadnitrocli-d0d9683df8398696147e7ee1fcffb2e4e957008c.tar.gz
nitrocli-d0d9683df8398696147e7ee1fcffb2e4e957008c.tar.bz2
Remove vendored dependencies
While it appears that by now we actually can get successful builds without Cargo insisting on Internet access by virtue of using the --frozen flag, maintaining vendored dependencies is somewhat of a pain point. This state will also get worse with upcoming changes that replace argparse in favor of structopt and pull in a slew of new dependencies by doing so. Then there is also the repository structure aspect, which is non-standard due to the way we vendor dependencies and a potential source of confusion. In order to fix these problems, this change removes all the vendored dependencies we have. Delete subrepo argparse/:argparse Delete subrepo base32/:base32 Delete subrepo cc/:cc Delete subrepo cfg-if/:cfg-if Delete subrepo getrandom/:getrandom Delete subrepo lazy-static/:lazy-static Delete subrepo libc/:libc Delete subrepo nitrokey-sys/:nitrokey-sys Delete subrepo nitrokey/:nitrokey Delete subrepo rand/:rand
Diffstat (limited to 'libc/ci/azure-install-rust.yml')
-rw-r--r--libc/ci/azure-install-rust.yml82
1 files changed, 0 insertions, 82 deletions
diff --git a/libc/ci/azure-install-rust.yml b/libc/ci/azure-install-rust.yml
deleted file mode 100644
index 31b0714..0000000
--- a/libc/ci/azure-install-rust.yml
+++ /dev/null
@@ -1,82 +0,0 @@
-steps:
- - bash: |
- set -ex
- toolchain=$TOOLCHAIN
- if [ "$toolchain" = "" ]; then
- toolchain=nightly
- fi
- if command -v rustup; then
- # Uncomment when rustup on Azure is updated
- #rustup set profile minimal
- rustup update --force $toolchain
- rustup default $toolchain
- else
- curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $toolchain --profile=minimal
- echo "##vso[task.prependpath]$HOME/.cargo/bin"
- fi
- displayName: Install rust (unix)
- condition: ne( variables['Agent.OS'], 'Windows_NT' )
- - script: |
- @echo on
- if not defined TOOLCHAIN set TOOLCHAIN=nightly
- :: Uncomment when rustup on Azure is updated
- ::rustup set profile minimal
- rustup update --no-self-update %TOOLCHAIN%-%TARGET%
- rustup default %TOOLCHAIN%-%TARGET%
- displayName: Install rust (windows)
- condition: eq( variables['Agent.OS'], 'Windows_NT' )
- - script: |
- set -ex
- if [ -n "${TARGET}" ]; then
- rustup target add $TARGET
- fi
- condition: ne( variables['Agent.OS'], 'Windows_NT' )
- displayName: Install target (unix)
- - script: |
- @echo on
- if defined TARGET rustup target add %TARGET%
- condition: eq( variables['Agent.OS'], 'Windows_NT' )
- displayName: Install target (windows)
- - script: |
- @echo on
- if "%ARCH%" == "i686" choco install mingw --x86 --force
- condition: eq( variables['Agent.OS'], 'Windows_NT' )
- displayName: Install MinGW32 (windows)
- - bash: |
- set -ex
- gcc -print-search-dirs
- find "C:\ProgramData\Chocolatey" -name "crt2*"
- find "C:\ProgramData\Chocolatey" -name "dllcrt2*"
- find "C:\ProgramData\Chocolatey" -name "libmsvcrt*"
- condition: eq( variables['Agent.OS'], 'Windows_NT' )
- displayName: Find GCC libraries (windows)
- - bash: |
- set -ex
- if [[ -n ${ARCH_BITS} ]]; then
- for i in crt2.o dllcrt2.o libmingwex.a libmsvcrt.a ; do
- cp -f "/C/ProgramData/Chocolatey/lib/mingw/tools/install/mingw${ARCH_BITS}/${ARCH}-w64-mingw32/lib/$i" "`rustc --print sysroot`/lib/rustlib/${TARGET}/lib"
- done
- fi
- condition: eq( variables['Agent.OS'], 'Windows_NT' )
- displayName: Fix MinGW (windows)
- - bash: |
- set -ex
- rustc -Vv
- cargo -V
- rustup -Vv
- rustup show
- which rustc
- which cargo
- which rustup
- displayName: Query rust and cargo versions
- - script: |
- @echo on
- where gcc
- condition: eq( variables['Agent.OS'], 'Windows_NT' )
- displayName: Query gcc path
- - bash: |
- set -ex
- cargo generate-lockfile
- cargo generate-lockfile --manifest-path libc-test/Cargo.toml
- displayName: Generate lockfiles
-