update ci image

Update .gitlab-ci.yml file

Update .gitlab-ci.yml file

Update .gitlab-ci.yml file

Update .gitlab-ci.yml file
This commit is contained in:
DefectingCat
2023-05-09 15:19:17 +08:00
parent 507e392f69
commit af55be9eca

View File

@ -15,13 +15,21 @@ build:windows-amd64:
stage: build stage: build
image: rust:latest image: rust:latest
script: script:
- apt update -y && apt upgrade -y apt install -y g++-mingw-w64-x86-64 - mkdir $HOME/.cargo
- echo "[source.crates-io]" >> $HOME/.cargo/config
- echo "replace-with = 'ustc'" >> $HOME/.cargo/config
- echo "" >> $HOME/.cargo/config
- echo "[source.ustc]" >> $HOME/.cargo/config
- echo "registry = \"sparse+https://mirrors.ustc.edu.cn/crates.io-index/\"" >> $HOME/.cargo/config
- apt update
- apt install -y g++-mingw-w64-x86-64
- rustup target add x86_64-unknown-linux-musl
- rustup target add x86_64-pc-windows-gnu - rustup target add x86_64-pc-windows-gnu
- rustup toolchain install stable-x86_64-pc-windows-gnu - rustup toolchain install stable-x86_64-pc-windows-gnu
- cargo build --target=x86_64-pc-windows-gnu --release - cargo build --release --target x86_64-pc-windows-gnu
artifacts: artifacts:
paths: paths:
- target/release/x86_64-pc-windows-gnu/rua-list - target/x86_64-pc-windows-gnu/release/rua-list.exe
rustdoc: rustdoc:
stage: build stage: build