Compare commits
merge into: warricksothr:master
warricksothr:develop
warricksothr:master
pull from: warricksothr:develop
warricksothr:develop
warricksothr:master
9 Commits
Author | SHA1 | Message | Date |
---|---|---|---|
Drew Short | bc90d6a7bf |
Code cleanup
* Whitespace removal * Followed IDE recommended simplifications |
7 years ago |
Drew Short | 4a1a83cca7 |
Adding methods to identify similar images in a list of paths
|
8 years ago |
Drew Short | ee9c8d15ea |
Updated the windows runner to try again
|
8 years ago |
Drew Short | 08dc5b450b |
Removing build step for Windows as gitlab is having issues transfering dependencies
|
8 years ago |
Drew Short | 284a308d7f |
Properly referencing environment variables in Windows
|
8 years ago |
Drew Short | 8778fce771 |
Fixing spelling mistake
|
8 years ago |
Drew Short | a331d20fe4 |
Rebuilding CI build definition
|
8 years ago |
Drew Short | 2d2a3352e5 |
Adding windows build target
|
8 years ago |
Drew Short | 24dd147fd4 |
Adding a build step
|
8 years ago |
9 changed files with 412 additions and 128 deletions
-
238.gitlab-ci.yml
-
2Cargo.toml
-
22src/cache.rs
-
7src/hash/ahash.rs
-
2src/hash/dhash.rs
-
24src/hash/mod.rs
-
51src/hash/phash.rs
-
183src/lib.rs
-
11src/main.rs
@ -1,42 +1,260 @@ |
|||||
stages: |
stages: |
||||
|
- build |
||||
- test |
- test |
||||
|
- release |
||||
|
|
||||
test stable: |
|
||||
|
build:linux:stable: |
||||
|
image: scorpil/rust:stable |
||||
|
stage: build |
||||
|
script: |
||||
|
- rustc -Vv |
||||
|
- cargo -Vv |
||||
|
- cargo build |
||||
|
only: |
||||
|
- master |
||||
|
- develop |
||||
|
tags: |
||||
|
- docker |
||||
|
artifacts: |
||||
|
expire_in: 4 hours |
||||
|
paths: |
||||
|
- target/debug/ |
||||
|
allow_failure: false |
||||
|
|
||||
|
test:linux:stable: |
||||
image: scorpil/rust:stable |
image: scorpil/rust:stable |
||||
stage: test |
stage: test |
||||
script: |
script: |
||||
- rustc -V |
|
||||
- cargo -V |
|
||||
|
- rustc -Vv |
||||
|
- cargo -Vv |
||||
- cargo test |
- cargo test |
||||
only: |
only: |
||||
- master |
- master |
||||
|
- develop |
||||
|
tags: |
||||
|
- docker |
||||
|
dependencies: |
||||
|
- build:linux:stable |
||||
|
allow_failure: false |
||||
|
|
||||
|
release:linux:stable: |
||||
|
image: scorpil/rust:stable |
||||
|
stage: release |
||||
|
script: |
||||
|
- rustc -Vv |
||||
|
- cargo -Vv |
||||
|
- cargo build --release |
||||
|
artifacts: |
||||
|
expire_in: 4 weeks |
||||
|
paths: |
||||
|
- target/release/*.so |
||||
|
- target/release/pihash |
||||
|
only: |
||||
|
- master |
||||
|
- develop |
||||
tags: |
tags: |
||||
- docker |
- docker |
||||
allow_failure: false |
allow_failure: false |
||||
|
|
||||
test beta: |
|
||||
|
build:linux:beta: |
||||
|
image: scorpil/rust:beta |
||||
|
stage: build |
||||
|
script: |
||||
|
- rustc -Vv |
||||
|
- cargo -Vv |
||||
|
- cargo build |
||||
|
only: |
||||
|
- master |
||||
|
- develop |
||||
|
tags: |
||||
|
- docker |
||||
|
artifacts: |
||||
|
expire_in: 4 hours |
||||
|
paths: |
||||
|
- target/debug/ |
||||
|
allow_failure: true |
||||
|
|
||||
|
test:linux:beta: |
||||
image: scorpil/rust:beta |
image: scorpil/rust:beta |
||||
stage: test |
stage: test |
||||
script: |
script: |
||||
- rustc -V |
|
||||
- cargo -V |
|
||||
|
- rustc -Vv |
||||
|
- cargo -Vv |
||||
- cargo test |
- cargo test |
||||
only: |
only: |
||||
- master |
- master |
||||
|
- develop |
||||
tags: |
tags: |
||||
- docker |
- docker |
||||
|
dependencies: |
||||
|
- build:linux:beta |
||||
allow_failure: true |
allow_failure: true |
||||
|
|
||||
test nightly: |
|
||||
|
build:linux:nightly: |
||||
|
image: scorpil/rust:nightly |
||||
|
stage: build |
||||
|
script: |
||||
|
- rustc -Vv |
||||
|
- cargo -Vv |
||||
|
- cargo build |
||||
|
only: |
||||
|
- develop |
||||
|
tags: |
||||
|
- docker |
||||
|
artifacts: |
||||
|
expire_in: 4 hours |
||||
|
paths: |
||||
|
- target/debug/ |
||||
|
allow_failure: true |
||||
|
|
||||
|
test:linux:nightly: |
||||
image: scorpil/rust:nightly |
image: scorpil/rust:nightly |
||||
stage: test |
stage: test |
||||
script: |
script: |
||||
- rustc -V |
|
||||
- cargo -V |
|
||||
|
- rustc -Vv |
||||
|
- cargo -Vv |
||||
- cargo test |
- cargo test |
||||
only: |
only: |
||||
- master |
|
||||
|
- develop |
||||
|
tags: |
||||
|
- docker |
||||
|
dependencies: |
||||
|
- build:linux:nightly |
||||
|
allow_failure: true |
||||
|
|
||||
|
release:linux:nightly: |
||||
|
image: scorpil/rust:nightly |
||||
|
stage: release |
||||
|
script: |
||||
|
- rustc -Vv |
||||
|
- cargo -Vv |
||||
|
- cargo build --release |
||||
|
artifacts: |
||||
|
expire_in: 1 week |
||||
|
paths: |
||||
|
- target/release/*.so |
||||
|
- target/release/pihash |
||||
|
only: |
||||
|
- develop |
||||
tags: |
tags: |
||||
- docker |
- docker |
||||
allow_failure: true |
allow_failure: true |
||||
|
|
||||
|
build:windows:stable: |
||||
|
stage: build |
||||
|
variables: |
||||
|
RUST_TOOLCHAIN: stable-x86_64-pc-windows-gnu |
||||
|
script: |
||||
|
- rustup update |
||||
|
- rustup run %RUST_TOOLCHAIN% rustc -Vv |
||||
|
- rustup run %RUST_TOOLCHAIN% cargo -Vv |
||||
|
- rustup run %RUST_TOOLCHAIN% cargo build |
||||
|
artifacts: |
||||
|
expire_in: 4 hours |
||||
|
paths: |
||||
|
- target/debug/ |
||||
|
only: |
||||
|
- master |
||||
|
- develop |
||||
|
tags: |
||||
|
- rust |
||||
|
- windows |
||||
|
allow_failure: false |
||||
|
|
||||
|
test:windows:stable: |
||||
|
stage: test |
||||
|
variables: |
||||
|
RUST_TOOLCHAIN: stable-x86_64-pc-windows-gnu |
||||
|
script: |
||||
|
- rustup update |
||||
|
- rustup run %RUST_TOOLCHAIN% rustc -Vv |
||||
|
- rustup run %RUST_TOOLCHAIN% cargo -Vv |
||||
|
- rustup run %RUST_TOOLCHAIN% cargo test |
||||
|
only: |
||||
|
- master |
||||
|
- develop |
||||
|
tags: |
||||
|
- rust |
||||
|
- windows |
||||
|
dependencies: |
||||
|
- build:windows:stable |
||||
|
allow_failure: false |
||||
|
|
||||
|
release:windows:stable: |
||||
|
stage: release |
||||
|
variables: |
||||
|
RUST_TOOLCHAIN: stable-x86_64-pc-windows-gnu |
||||
|
script: |
||||
|
- rustup run %RUST_TOOLCHAIN% rustc -Vv |
||||
|
- rustup run %RUST_TOOLCHAIN% cargo -Vv |
||||
|
- rustup run %RUST_TOOLCHAIN% cargo build --release |
||||
|
artifacts: |
||||
|
expire_in: 4 weeks |
||||
|
paths: |
||||
|
- target/release/*.dll |
||||
|
- target/release/pihash.exe |
||||
|
only: |
||||
|
- master |
||||
|
- develop |
||||
|
tags: |
||||
|
- rust |
||||
|
- windows |
||||
|
allow_failure: false |
||||
|
|
||||
|
build:windows:nightly: |
||||
|
stage: build |
||||
|
variables: |
||||
|
RUST_TOOLCHAIN: nightly-x86_64-pc-windows-gnu |
||||
|
script: |
||||
|
- rustup update |
||||
|
- rustup run %RUST_TOOLCHAIN% rustc -Vv |
||||
|
- rustup run %RUST_TOOLCHAIN% cargo -Vv |
||||
|
- rustup run %RUST_TOOLCHAIN% cargo build |
||||
|
artifacts: |
||||
|
expire_in: 4 hours |
||||
|
paths: |
||||
|
- target/debug/ |
||||
|
only: |
||||
|
- develop |
||||
|
tags: |
||||
|
- rust |
||||
|
- windows |
||||
|
allow_failure: true |
||||
|
|
||||
|
test:windows:nightly: |
||||
|
stage: test |
||||
|
variables: |
||||
|
RUST_TOOLCHAIN: nightly-x86_64-pc-windows-gnu |
||||
|
script: |
||||
|
- rustup update |
||||
|
- rustup run %RUST_TOOLCHAIN% rustc -Vv |
||||
|
- rustup run %RUST_TOOLCHAIN% cargo -Vv |
||||
|
- rustup run %RUST_TOOLCHAIN% cargo test |
||||
|
only: |
||||
|
- develop |
||||
|
tags: |
||||
|
- rust |
||||
|
- windows |
||||
|
dependencies: |
||||
|
- build:windows:nightly |
||||
|
allow_failure: true |
||||
|
|
||||
|
release:windows:nightly: |
||||
|
stage: release |
||||
|
variables: |
||||
|
RUST_TOOLCHAIN: nightly-x86_64-pc-windows-gnu |
||||
|
script: |
||||
|
- rustup run %RUST_TOOLCHAIN% rustc -Vv |
||||
|
- rustup run %RUST_TOOLCHAIN% cargo -Vv |
||||
|
- rustup run %RUST_TOOLCHAIN% cargo build --release |
||||
|
artifacts: |
||||
|
expire_in: 1 week |
||||
|
paths: |
||||
|
- target/release/*.dll |
||||
|
- target/release/pihash.exe |
||||
|
only: |
||||
|
- develop |
||||
|
tags: |
||||
|
- rust |
||||
|
- windows |
||||
|
allow_failure: false |
Write
Preview
Loading…
Cancel
Save
Reference in new issue