Add in ci/cd
This commit is contained in:
parent
1bf84a10b1
commit
f0bf75585c
22
.cargo/config.toml
Normal file
22
.cargo/config.toml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# On Windows
|
||||||
|
# ```
|
||||||
|
# cargo install -f cargo-binutils
|
||||||
|
# rustup component add llvm-tools-preview
|
||||||
|
# ```
|
||||||
|
[target.x86_64-pc-windows-msvc]
|
||||||
|
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
|
||||||
|
[target.x86_64-pc-windows-gnu]
|
||||||
|
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
|
||||||
|
|
||||||
|
# On Linux:
|
||||||
|
# - Ubuntu, `sudo apt-get install lld clang`
|
||||||
|
# - Arch, `sudo pacman -S lld clang`
|
||||||
|
[target.x86_64-unknown-linux-gnu]
|
||||||
|
rustflags = ["-C", "linker=clang", "-C", "link-arg=-fuse-ld=lld"]
|
||||||
|
|
||||||
|
# On MacOS, `brew install michaeleisel/zld/zld`
|
||||||
|
[target.x86_64-apple-darwin]
|
||||||
|
rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/zld"]
|
||||||
|
|
||||||
|
[target.aarch64-apple-darwin]
|
||||||
|
rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/zld"]
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,6 +1,7 @@
|
|||||||
/target
|
/target
|
||||||
.vscode
|
.vscode
|
||||||
.env
|
.env
|
||||||
|
.gitlab-ci-local
|
||||||
|
|
||||||
# Added by cargo
|
# Added by cargo
|
||||||
#
|
#
|
||||||
|
1
.gitlab-ci-local-env
Normal file
1
.gitlab-ci-local-env
Normal file
@ -0,0 +1 @@
|
|||||||
|
PRIVILEGED=true
|
23
.gitlab-ci.yml
Normal file
23
.gitlab-ci.yml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
image: "estusdev/rust-ci"
|
||||||
|
|
||||||
|
default:
|
||||||
|
before_script:
|
||||||
|
- rustc --version && cargo --version
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- test
|
||||||
|
|
||||||
|
test-code:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- cargo test --verbose
|
||||||
|
|
||||||
|
lint-code:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- cargo clippy -- -D warnings
|
||||||
|
|
||||||
|
format-code:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- cargo fmt -- --check
|
Loading…
Reference in New Issue
Block a user