-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ofborg also does this. Should be run on `lib/*` dirs Signed-off-by: John Titor <[email protected]>
- Loading branch information
1 parent
048fa4f
commit 6da0724
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: "Building Nixpkgs lib-tests" | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
pull_request_target: | ||
paths: | ||
- 'lib/**' | ||
jobs: | ||
get-merge-commit: | ||
uses: ./.github/workflows/get-merge-commit.yml | ||
|
||
nixpkgs-lib-tests: | ||
name: nixpkgs-lib-tests | ||
runs-on: ubuntu-latest | ||
needs: get-merge-commit | ||
steps: | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
if: needs.get-merge-commit.outputs.mergedSha | ||
with: | ||
# pull_request_target checks out the base branch by default | ||
ref: ${{ needs.get-merge-commit.outputs.mergedSha }} | ||
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30 | ||
with: | ||
# explicitly enable sandbox | ||
extra_nix_config: sandbox = true | ||
- name: Building Nixpkgs lib-tests | ||
run: | | ||
nix-build --arg pkgs "(import ./ci/. {}).pkgs" ./lib/tests/release.nix |