1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-08-01 04:57:44 +00:00

Merge pull request #78 from kamadorueda/kamadorueda

feat: isolate queues
This commit is contained in:
Kevin Amado 2022-02-12 13:26:45 -05:00 committed by GitHub
commit f4ed680daa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,30 +1,34 @@
steps: steps:
- label: build - label: build
command: command:
- nix3 build - nix build
- label: cache - label: cache
if: build.branch == "main"
agents:
queue: private
artifacts: artifacts:
- aarch64-unknown-linux-musl - aarch64-unknown-linux-musl
- x86_64-unknown-linux-gnu - x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl - x86_64-unknown-linux-musl
if: build.branch == "main"
command: command:
- echo +++ - echo +++
- nix3 build --out-link aarch64-unknown-linux-musl .#aarch64-unknown-linux-musl - nix build --out-link aarch64-unknown-linux-musl .#aarch64-unknown-linux-musl
- cachix push alejandra aarch64-unknown-linux-musl - cachix push alejandra aarch64-unknown-linux-musl
- nix3 build --out-link x86_64-unknown-linux-gnu .#x86_64-unknown-linux-gnu - nix build --out-link x86_64-unknown-linux-gnu .#x86_64-unknown-linux-gnu
- cachix push alejandra x86_64-unknown-linux-gnu - cachix push alejandra x86_64-unknown-linux-gnu
- nix3 build --out-link x86_64-unknown-linux-musl .#x86_64-unknown-linux-musl - nix build --out-link x86_64-unknown-linux-musl .#x86_64-unknown-linux-musl
- cachix push alejandra x86_64-unknown-linux-musl - cachix push alejandra x86_64-unknown-linux-musl
- nix3 develop --profile develop --command true - nix develop --profile develop --command true
- cachix push alejandra develop - cachix push alejandra develop
- label: coverage - label: coverage
if: build.branch == "main" if: build.branch == "main"
agents:
queue: private
command: command:
- echo +++ Fetch - echo +++ Fetch
- git branch -D main - git branch -D main
@ -47,14 +51,14 @@ steps:
- git clone --depth 1 https://github.com/nixos/nixpkgs - git clone --depth 1 https://github.com/nixos/nixpkgs
- echo --- Formatting - before - echo --- Formatting - before
- nix3 run github:kamadorueda/alejandra -- nixpkgs 2>/dev/null - nix run github:kamadorueda/alejandra -- nixpkgs 2>/dev/null
- git -C nixpkgs add . - git -C nixpkgs add .
- git -C nixpkgs commit -m formatting-before -q - git -C nixpkgs commit -m formatting-before -q
- git -C nixpkgs branch formatting-before - git -C nixpkgs branch formatting-before
- git -C nixpkgs reset --hard master~1 - git -C nixpkgs reset --hard master~1
- echo --- Formatting - after - echo --- Formatting - after
- nix3 run . -- nixpkgs 2>/dev/null - nix run . -- nixpkgs 2>/dev/null
- git -C nixpkgs diff formatting-before > formatting-before-vs-after.patch.txt - git -C nixpkgs diff formatting-before > formatting-before-vs-after.patch.txt
- label: closure diff - label: closure diff
@ -70,7 +74,7 @@ steps:
- nix-env --query --available --attr-path --drv-path --file nixpkgs --xml > closure-before.txt - nix-env --query --available --attr-path --drv-path --file nixpkgs --xml > closure-before.txt
- echo --- Formatting - echo --- Formatting
- nix3 run . -- nixpkgs 2>/dev/null - nix run . -- nixpkgs 2>/dev/null
- echo --- Closure @ after - echo --- Closure @ after
- nix-env --query --available --attr-path --drv-path --file nixpkgs --xml > closure-after.txt - nix-env --query --available --attr-path --drv-path --file nixpkgs --xml > closure-after.txt
@ -85,4 +89,4 @@ steps:
- label: flake check - label: flake check
command: command:
- echo +++ - echo +++
- nix3 flake check - nix flake check