-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into indexed-store-pat…
…h-outputs
- Loading branch information
Showing
439 changed files
with
23,965 additions
and
36,376 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,7 @@ | ||
**Release Notes** | ||
Please include relevant [release notes](https://github.com/NixOS/nix/blob/master/doc/manual/src/release-notes/rl-next.md) as needed. | ||
|
||
|
||
**Testing** | ||
|
||
If this issue is a regression or something that should block release, please consider including a test either in the [testsuite](https://github.com/NixOS/nix/tree/master/tests) or as a [hydraJob]( https://github.com/NixOS/nix/blob/master/flake.nix#L396) so that it can be part of the [automatic checks](https://hydra.nixos.org/jobset/nix/master). |
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,26 @@ | ||
name: Backport | ||
on: | ||
pull_request_target: | ||
types: [closed, labeled] | ||
jobs: | ||
backport: | ||
name: Backport Pull Request | ||
if: github.repository_owner == 'NixOS' && github.event.pull_request.merged == true && (github.event_name != 'labeled' || startsWith('backport', github.event.label.name)) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
# required to find all branches | ||
fetch-depth: 0 | ||
- name: Create backport PRs | ||
# should be kept in sync with `version` | ||
uses: zeebe-io/[email protected] | ||
with: | ||
# Config README: https://github.com/zeebe-io/backport-action#backport-action | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
github_workspace: ${{ github.workspace }} | ||
pull_description: |- | ||
Bot-based backport to `${target_branch}`, triggered by a label in #${pull_number}. | ||
# should be kept in sync with `uses` | ||
version: v0.0.5 |
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 |
---|---|---|
@@ -1,28 +1,32 @@ | ||
name: "Test" | ||
name: "CI" | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
|
||
tests: | ||
needs: [check_cachix] | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
|
||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v2.3.4 | ||
- uses: actions/checkout@v2.4.0 | ||
with: | ||
fetch-depth: 0 | ||
- uses: cachix/install-nix-action@v14 | ||
- uses: cachix/install-nix-action@v16 | ||
- run: echo CACHIX_NAME="$(echo $GITHUB_REPOSITORY-install-tests | tr "[A-Z]/" "[a-z]-")" >> $GITHUB_ENV | ||
- uses: cachix/cachix-action@v10 | ||
if: needs.check_cachix.outputs.secret == 'true' | ||
with: | ||
name: '${{ env.CACHIX_NAME }}' | ||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
- run: nix-build -A checks.$(nix-instantiate --eval -E '(builtins.currentSystem)') | ||
- run: nix --experimental-features 'nix-command flakes' flake check -L | ||
|
||
check_cachix: | ||
name: Cachix secret present for installer tests | ||
runs-on: ubuntu-latest | ||
|
@@ -34,25 +38,27 @@ jobs: | |
env: | ||
_CACHIX_SECRETS: ${{ secrets.CACHIX_SIGNING_KEY }}${{ secrets.CACHIX_AUTH_TOKEN }} | ||
run: echo "::set-output name=secret::${{ env._CACHIX_SECRETS != '' }}" | ||
|
||
installer: | ||
needs: [tests, check_cachix] | ||
if: github.event_name == 'push' && needs.check_cachix.outputs.secret == 'true' | ||
runs-on: ubuntu-latest | ||
outputs: | ||
installerURL: ${{ steps.prepare-installer.outputs.installerURL }} | ||
steps: | ||
- uses: actions/checkout@v2.3.4 | ||
- uses: actions/checkout@v2.4.0 | ||
with: | ||
fetch-depth: 0 | ||
- run: echo CACHIX_NAME="$(echo $GITHUB_REPOSITORY-install-tests | tr "[A-Z]/" "[a-z]-")" >> $GITHUB_ENV | ||
- uses: cachix/install-nix-action@v14 | ||
- uses: cachix/install-nix-action@v16 | ||
- uses: cachix/cachix-action@v10 | ||
with: | ||
name: '${{ env.CACHIX_NAME }}' | ||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
- id: prepare-installer | ||
run: scripts/prepare-installer-for-github-actions | ||
|
||
installer_test: | ||
needs: [installer, check_cachix] | ||
if: github.event_name == 'push' && needs.check_cachix.outputs.secret == 'true' | ||
|
@@ -61,10 +67,42 @@ jobs: | |
os: [ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2.3.4 | ||
- uses: actions/checkout@v2.4.0 | ||
- run: echo CACHIX_NAME="$(echo $GITHUB_REPOSITORY-install-tests | tr "[A-Z]/" "[a-z]-")" >> $GITHUB_ENV | ||
- uses: cachix/install-nix-action@v14 | ||
- uses: cachix/install-nix-action@v16 | ||
with: | ||
install_url: '${{needs.installer.outputs.installerURL}}' | ||
install_options: "--tarball-url-prefix https://${{ env.CACHIX_NAME }}.cachix.org/serve" | ||
- run: nix-instantiate -E 'builtins.currentTime' --eval | ||
|
||
docker_push_image: | ||
needs: [check_cachix, tests] | ||
if: >- | ||
github.event_name == 'push' && | ||
github.ref_name == 'master' && | ||
needs.check_cachix.outputs.secret == 'true' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- uses: cachix/install-nix-action@v16 | ||
- run: echo CACHIX_NAME="$(echo $GITHUB_REPOSITORY-install-tests | tr "[A-Z]/" "[a-z]-")" >> $GITHUB_ENV | ||
- run: echo NIX_VERSION="$(nix-instantiate --eval -E '(import ./default.nix).defaultPackage.${builtins.currentSystem}.version' | tr -d \")" >> $GITHUB_ENV | ||
- uses: cachix/cachix-action@v10 | ||
if: needs.check_cachix.outputs.secret == 'true' | ||
with: | ||
name: '${{ env.CACHIX_NAME }}' | ||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
- run: nix --experimental-features 'nix-command flakes' build .#dockerImage -L | ||
- run: docker load -i ./result/image.tar.gz | ||
- run: docker tag nix:$NIX_VERSION nixos/nix:$NIX_VERSION | ||
- run: docker tag nix:$NIX_VERSION nixos/nix:master | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- run: docker push nixos/nix:$NIX_VERSION | ||
- run: docker push nixos/nix:master |
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,16 @@ | ||
name: Hydra status | ||
on: | ||
schedule: | ||
- cron: "12,42 * * * *" | ||
workflow_dispatch: | ||
jobs: | ||
check_hydra_status: | ||
name: Check Hydra status | ||
if: github.repository_owner == 'NixOS' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- run: bash scripts/check-hydra-status.sh | ||
|
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
2.4 | ||
2.8.0 |
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
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
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
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(import (fetchTarball https://github.com/edolstra/flake-compat/archive/master.tar.gz) { | ||
(import (fetchTarball "https://github.com/edolstra/flake-compat/archive/master.tar.gz") { | ||
src = ./.; | ||
}).defaultNix |
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
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
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
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
Oops, something went wrong.