mirror of
https://github.com/RGBCube/alejandra
synced 2025-07-30 12:07:46 +00:00
feat: push artifacts
This commit is contained in:
parent
4af8da0b79
commit
85f1ce4ddd
2 changed files with 11 additions and 3 deletions
|
@ -4,12 +4,18 @@ steps:
|
|||
- nix3 build
|
||||
|
||||
- label: cache
|
||||
artifacts:
|
||||
- aarch64-unknown-linux-musl
|
||||
- x86_64-unknown-linux-gnu
|
||||
- x86_64-unknown-linux-musl
|
||||
if: build.branch == "main"
|
||||
command:
|
||||
- echo +++
|
||||
- nix3 build
|
||||
- nix3 build --out-link aarch64-unknown-linux-musl .#aarch64-unknown-linux-musl
|
||||
- cachix push alejandra result
|
||||
- nix3 build .#packages.x86_64-linux.musl
|
||||
- nix3 build --out-link x86_64-unknown-linux-gnu .#x86_64-unknown-linux-gnu
|
||||
- cachix push alejandra result
|
||||
- nix3 build --out-link x86_64-unknown-linux-musl .#x86_64-unknown-linux-musl
|
||||
- cachix push alejandra result
|
||||
|
||||
- nix3 develop --profile develop --command true
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
description = "The Uncompromising Nix Code Formatter";
|
||||
|
||||
inputs = {
|
||||
fenix.url = "github:nix-community/fenix";
|
||||
fenix.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
@ -9,6 +10,7 @@
|
|||
|
||||
nixpkgs.url = "github:nixos/nixpkgs";
|
||||
};
|
||||
|
||||
outputs = inputs: let
|
||||
build = host: target: let
|
||||
nixpkgs = import inputs.nixpkgs {
|
||||
|
@ -17,7 +19,7 @@
|
|||
"aarch64-apple-darwin" = inputs.nixpkgs.lib.systems.examples.aarch64-darwin;
|
||||
"aarch64-unknown-linux-musl".config = "aarch64-unknown-linux-musl";
|
||||
"x86_64-apple-darwin" = null;
|
||||
"x86_64-unknown-linux-gnu".config = "x86_64-unknown-linux-gnu";
|
||||
"x86_64-unknown-linux-gnu" = null;
|
||||
"x86_64-unknown-linux-musl".config = "x86_64-unknown-linux-musl";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue