summaryrefslogtreecommitdiffhomepage
path: root/ci/ci-rust-script.sh
diff options
context:
space:
mode:
authorLinus Färnstrand <faern@faern.net>2021-11-17 11:42:20 +0100
committerLinus Färnstrand <linus@mullvad.net>2021-11-30 15:02:32 +0100
commitb644c8cf449c06e5d317a8413851975fd0cc8c79 (patch)
treedc847d061479432893241a7133942537b92dd2b6 /ci/ci-rust-script.sh
parent351c116c0eb9f1512b06a4bb0c100da3d5fb3a1c (diff)
downloadmullvadvpn-b644c8cf449c06e5d317a8413851975fd0cc8c79.tar.xz
mullvadvpn-b644c8cf449c06e5d317a8413851975fd0cc8c79.zip
Remove unused ci-rust-script.sh script
Diffstat (limited to 'ci/ci-rust-script.sh')
-rwxr-xr-xci/ci-rust-script.sh51
1 files changed, 0 insertions, 51 deletions
diff --git a/ci/ci-rust-script.sh b/ci/ci-rust-script.sh
deleted file mode 100755
index 10f09bb9c6..0000000000
--- a/ci/ci-rust-script.sh
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/usr/bin/env bash
-
-set -eux
-
-RUST_TOOLCHAIN_CHANNEL=$1
-export RUSTFLAGS="--deny warnings"
-
-source env.sh
-
-case "$(uname -s)" in
- Linux*|Darwin*)
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
- -y --default-toolchain none --profile minimal
- ;;
- MINGW*|MSYS_NT*)
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
- ./rustup-init.exe -y --default-toolchain none --profile minimal --default-host x86_64-pc-windows-msvc
- # See https://github.com/rust-lang/rustup.rs/issues/2082
- RUST_TOOLCHAIN_CHANNEL="$RUST_TOOLCHAIN_CHANNEL-x86_64-pc-windows-msvc"
- ;;
-esac
-export PATH="$HOME/.cargo/bin/:$PATH"
-
-# Install the toolchain together with rustfmt. Here -c backtracks to last version where
-# the component was available.
-time rustup toolchain install $RUST_TOOLCHAIN_CHANNEL --no-self-update -c rustfmt
-
-case "$(uname -s)" in
- MINGW*|MSYS_NT*)
- export PATH="/c/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/MSBuild/Current/Bin/amd64/:$PATH"
- time ./build-windows-modules.sh --dev-build
- ;;
-esac
-
-# Build wireguard-go
-# On Windows, it relies on having msbuild.exe in your path.
-./wireguard/build-wireguard-go.sh
-
-time cargo build --locked --verbose
-time cargo test --locked --verbose
-
-if [[ "${RUST_TOOLCHAIN_CHANNEL}" == "nightly" && "$(uname -s)" == "Linux" ]]; then
- rustfmt --version;
- cargo fmt -- --check --unstable-features;
-fi
-
-if ! git diff-index --quiet HEAD; then
- echo "!!! Working directory is dirty !!!";
- git diff-index HEAD
- exit 1;
-fi