Compare commits
3 Commits
faef9a6b2f
...
9ca2ca24e5
| Author | SHA1 | Date | |
|---|---|---|---|
|
9ca2ca24e5
|
|||
|
e18bf2cc88
|
|||
|
a9baa84ff2
|
@@ -1,39 +0,0 @@
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
|
||||
before_script:
|
||||
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
|
||||
- eval $(ssh-agent -s)
|
||||
- mv "$SSH_DEPLOY_KEY" gitlab_deploy_key # copies the file from the variable.
|
||||
- chmod 600 gitlab_deploy_key
|
||||
- ssh-add gitlab_deploy_key
|
||||
- mkdir -p ~/.ssh
|
||||
- '[[ -f /.dockerenv ]] && echo -e "Host gitlab.com\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
||||
- echo "$KNOWN_HOSTS" >> ~/.ssh/known_hosts
|
||||
|
||||
build:
|
||||
stage: build
|
||||
image: rust:1.85
|
||||
script:
|
||||
- cargo build --release
|
||||
artifacts:
|
||||
paths:
|
||||
- target/release/songparser
|
||||
expire_in: 1 week
|
||||
cache:
|
||||
key: "cargo-cache"
|
||||
paths:
|
||||
- target/
|
||||
- ~/.cargo/
|
||||
|
||||
test:
|
||||
stage: test
|
||||
image: rust:latest
|
||||
script:
|
||||
- cargo test
|
||||
cache:
|
||||
key: "cargo-cache"
|
||||
paths:
|
||||
- target/
|
||||
- ~/.cargo/
|
||||
937
Cargo.lock
generated
937
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -7,7 +7,7 @@ rust-version = "1.94"
|
||||
[dependencies]
|
||||
tokio = { version = "1.51", features = ["full"] }
|
||||
futures = { version = "0.3.32" }
|
||||
reqwest = { version = "0.13.2", features = ["json", "stream", "multipart"] }
|
||||
reqwest = { version = "0.12.28", features = ["json", "stream", "multipart"] }
|
||||
serde = { version = "1.0.228", features = ["derive"] }
|
||||
serde_json = { version = "1.0.149" }
|
||||
time = { version = "0.3.47", features = ["macros", "serde"] }
|
||||
|
||||
Reference in New Issue
Block a user