dtmt/.ci/pipelines/pr.yml
Lucas Schwiderski c63aee4aef
All checks were successful
lint/clippy Checking for common mistakes and opportunities for code improvement
build/msvc Build for the target platform: msvc
build/linux Build for the target platform: linux
feat(ci): Parameterize build task output
Potentially useful when using the task for release artifact building
later.
2023-04-05 15:46:29 +02:00

51 lines
937 B
YAML

---
# The actual CI pipeline that is run per branch
resources:
- name: repo
type: git
source:
uri: https://git.sclu1034.dev/bitsquid_dt/dtmt
branch: ((pr.head.ref))
jobs:
- name: clippy
plan:
- get: repo
trigger: true
- load_var: ref
file: repo/.git/ref
- task: check
file: repo/.ci/tasks/clippy.yml
vars:
ref: ((.:ref))
gitea_api_key: ((gitea_api_key))
- name: build-msvc
plan:
- get: repo
trigger: true
- load_var: ref
file: repo/.git/ref
- task: build
file: repo/.ci/tasks/build.yml
vars:
target: msvc
output: artifact
ref: ((.:ref))
gitea_api_key: ((gitea_api_key))
- name: build-linux
plan:
- get: repo
trigger: true
- load_var: ref
file: repo/.git/ref
- task: build
file: repo/.ci/tasks/build.yml
vars:
target: linux
output: artifact
ref: ((.:ref))
gitea_api_key: ((gitea_api_key))