mirror of
https://github.com/bahdotsh/wrkflw.git
synced 2025-12-16 03:37:49 +01:00
This commit adds full support for GitLab CI/CD pipelines: - Add GitLab CI pipeline models with complete spec support (jobs, stages, artifacts, cache, etc.) - Implement GitLab CI/CD pipeline parsing and validation - Add schema validation against GitLab CI JSON schema - Support automatic pipeline type detection based on filename and content - Add GitLab-specific CLI commands and flags - Implement pipeline conversion for executor compatibility - Add validation for common GitLab CI configuration issues - Update CLI help text to reflect GitLab CI/CD support - Support listing both GitHub and GitLab pipeline files This expands wrkflw to be a multi-CI tool that can validate and execute both GitHub Actions workflows and GitLab CI/CD pipelines locally.
33 lines
670 B
YAML
33 lines
670 B
YAML
.build-template:
|
|
stage: build
|
|
script:
|
|
- cargo build --release
|
|
artifacts:
|
|
paths:
|
|
- target/release/
|
|
expire_in: 1 week
|
|
cache:
|
|
key:
|
|
files:
|
|
- Cargo.lock
|
|
paths:
|
|
- ${CARGO_HOME}
|
|
- target/
|
|
|
|
# Normal build job
|
|
build:
|
|
extends: .build-template
|
|
rules:
|
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
- if: $CI_COMMIT_BRANCH == "main"
|
|
|
|
# Debug build with additional flags
|
|
debug-build:
|
|
extends: .build-template
|
|
script:
|
|
- cargo build --features debug
|
|
variables:
|
|
RUSTFLAGS: "-Z debug-info=2"
|
|
rules:
|
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $DEBUG_BUILD == "true"
|
|
when: manual |