1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-30 12:07:46 +00:00

refac: split ci/cd into pieces

This commit is contained in:
Kevin Amado 2025-04-10 17:05:03 -06:00
parent cb66042a0c
commit 993fdd2ff6
2 changed files with 31 additions and 37 deletions

31
buildkite-cd.yaml Normal file
View file

@ -0,0 +1,31 @@
steps:
- label: build
agents:
queue: private
artifacts:
- alejandra-*
command:
- echo +++
- nix build .#alejandra-binaries
- nix-store
--query
--include-outputs $(nix-store --query --deriver result)
--requisites |
grep -v '\.drv$$' |
cachix push alejandra
- cp -L result/* .
- label: coverage
agents:
queue: private
command:
- echo +++ Fetch
- git branch -D main
- git branch main
- git checkout main
- echo --- Load environment
- direnv allow
- eval "$(direnv export bash)"
- echo +++ Run tests
- cd src/alejandra
- cargo tarpaulin --coveralls "$${COVERALLS_REPO_TOKEN}"