flesh/.gitlab-ci.yml
Ava Hahn 906cb16355 POSIX conditional compilation:
* All features related to POSIX environments (env vars, shell stuff) gated by feature flags
* Dependencies optional per feature flags
* new CI target for non-POSIX build
* new CI target for release binary artifact

Signed-off-by: Ava Hahn [ava@sunnypup.io](mailto:ava@sunnypup.io)
2023-05-26 06:41:18 +00:00

35 lines
579 B
YAML

default:
image: rust:latest
compile-with-posix-features:
stage: build
script:
- cargo build
compile-without-posix-features:
stage: build
script:
- cargo build --no-default-features
compile-release:
stage: build
script:
- cargo build --release
artifacts:
paths:
- target/release/relish
only:
variables:
- $CI_COMMIT_TAG =~ /^v\d+.\d+.\d+-?.*$/
except:
- branches
unit-tests:
stage: test
script:
- cargo test
userlib-tests:
stage: test
script:
- cargo run snippets/userlib.rls snippets/userlib-tests.rls