Skip to content

Commit

Permalink
Add a CI that checks that all packages build correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
knazarov committed May 8, 2024
1 parent 1736564 commit 92302f4
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Nix 3rd party CI

on:
push:
branches:
- master
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
ensure_cluster_builds_linux:
runs-on: ["self-hosted", "aws_autoscaling"]
environment: prod
name: Linux CI
steps:
- name: checkout local actions
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: build
run: nix build -L
9 changes: 9 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
hashtree = hashtree;
intx = intx;
});
# The "all" package will build all packages. Convenient for CI,
# so that "nix build" will check that all packages are correct.
# The packages that have no changes will not be rebuilt, and instead
# fetched from the cache.
all = pkgs.symlinkJoin {
name = "all";
paths = [ intx hashtree sszpp ];
};
default = all;
};

overlays.default = final: prev: packages;
Expand Down

0 comments on commit 92302f4

Please sign in to comment.