| 1 | #!/usr/bin/env bash |
| 2 | set -euo pipefail |
| 3 | |
| 4 | repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" |
| 5 | ci_tools="${ZIPELO_CI_TOOLS:-$repo_root/tests/ci/tools}" |
| 6 | mkdir -p "$ci_tools/downloads" "$ci_tools/mingw" |
| 7 | ci_tools="$(cd "$ci_tools" && pwd)" |
| 8 | |
| 9 | # 도구를 프로젝트 안에 풀며 시스템 패키지는 설치하지 않음. |
| 10 | ( |
| 11 | cd "$ci_tools/downloads" |
| 12 | apt-get download \ |
| 13 | gcc-mingw-w64-x86-64-posix \ |
| 14 | g++-mingw-w64-x86-64-posix \ |
| 15 | gcc-mingw-w64-x86-64-posix-runtime \ |
| 16 | gcc-mingw-w64-base \ |
| 17 | binutils-mingw-w64-x86-64 \ |
| 18 | binutils-mingw-w64-base \ |
| 19 | mingw-w64-x86-64-dev \ |
| 20 | mingw-w64-common |
| 21 | for package in ./*.deb; do |
| 22 | dpkg-deb -x "$package" "$ci_tools/mingw" |
| 23 | done |
| 24 | ) |
| 25 | RUSTUP_HOME="$ci_tools/rustup" rustup toolchain install 1.99.1 \ |
| 26 | --profile minimal --no-self-update --target x86_64-pc-windows-gnu |