mirror of
https://github.com/DefectingCat/rua-list
synced 2025-07-15 16:51:31 +00:00
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:
@ -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
|
||||||
|
Reference in New Issue
Block a user