Remove todos

Update .gitlab-ci.yml file

Update .gitlab-ci.yml file

Update .gitlab-ci.yml file
This commit is contained in:
DefectingCat
2023-05-06 17:48:59 +08:00
parent 336f090a49
commit 021e90af62
2 changed files with 6 additions and 16 deletions

View File

@ -4,29 +4,20 @@ stages:
build:linux-gnu-amd64: build:linux-gnu-amd64:
stage: build stage: build
image: rust image: rust:latest
script: script:
- rustup target add x86_64-unknown-linux-musl
- rustup target add x86_64-unknown-linux-gnu
- rustup target add x86_64-pc-windows-gnu
- cargo build --release - cargo build --release
artifacts: artifacts:
paths: paths:
- target/release/rua-list - target/release/rua-list
build:linux-musl-amd64:
stage: build
image: sseemayer/rust-musl-builder-mingw:latest
script:
- cargo build --target=x86_64-unknown-linux-musl --release
artifacts:
paths:
- target/release/x86_64-unknown-linux-musl/rua-list
build:windows-amd64: build:windows-amd64:
stage: build stage: build
image: sseemayer/rust-musl-builder-mingw:latest image: rust:latest
script: script:
- apt update -y && apt upgrade -y apt install -y g++-mingw-w64-x86-64
- rustup target add 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 --target=x86_64-pc-windows-gnu --release
artifacts: artifacts:
paths: paths:
@ -46,7 +37,7 @@ pages:
image: alpine image: alpine
dependencies: dependencies:
- build:linux-gnu-amd64 - build:linux-gnu-amd64
- build:linux-musl-amd64 # - build:linux-musl-amd64
- rustdoc - rustdoc
script: script:
- mkdir -p public - mkdir -p public

View File

@ -96,7 +96,6 @@ pub async fn headers_parser(port: usize) {
} }
}; };
let header: Vec<_> = header.split("\r\n").collect(); let header: Vec<_> = header.split("\r\n").collect();
dbg!(&header);
let first_line = header.first().unwrap(); let first_line = header.first().unwrap();
let header = &header[1..header.len() - 2]; let header = &header[1..header.len() - 2];