Skip to content

Commit

Permalink
Merge pull request #73 from kamadorueda/kamadorueda
Browse files Browse the repository at this point in the history
feat: push artifacts
  • Loading branch information
kamadorueda committed Feb 12, 2022
2 parents 4af8da0 + 85f1ce4 commit 62347ab
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 8 additions & 2 deletions buildkite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 --out-link x86_64-unknown-linux-gnu .#x86_64-unknown-linux-gnu
- cachix push alejandra result
- nix3 build .#packages.x86_64-linux.musl
- nix3 build --out-link x86_64-unknown-linux-musl .#x86_64-unknown-linux-musl
- cachix push alejandra result

- nix3 develop --profile develop --command true
Expand Down
4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
description = "The Uncompromising Nix Code Formatter";

inputs = {
fenix.url = "github:nix-community/fenix";
fenix.inputs.nixpkgs.follows = "nixpkgs";
Expand All @@ -9,6 +10,7 @@

nixpkgs.url = "github:nixos/nixpkgs";
};

outputs = inputs: let
build = host: target: let
nixpkgs = import inputs.nixpkgs {
Expand All @@ -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";
};
};
Expand Down

0 comments on commit 62347ab

Please sign in to comment.