mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 02:23:54 +00:00
4e6b5639ac
Before the get-merge-commit was put into a separate workflow job, it ran as a step, which then required skipping all subsequent steps individually. This is not necessary anymore, because entire workflow jobs can be skipped. This commit consistently applies that change throughout all workflows.
31 lines
911 B
YAML
31 lines
911 B
YAML
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
|
|
if: needs.get-merge-commit.outputs.mergedSha
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
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
|