-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit 'e12308dd63f0ad27b22dcdb3da89c411eebcad2b' into ca-drv-e…
…xotic
- Loading branch information
Showing
95 changed files
with
1,130 additions
and
423 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 |
---|---|---|
|
@@ -8,52 +8,62 @@ jobs: | |
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
CACHIX_NAME: nix-ci | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- uses: cachix/install-nix-action@v12 | ||
- uses: cachix/cachix-action@v8 | ||
- uses: cachix/install-nix-action@v13 | ||
- run: echo CACHIX_NAME="$(echo $GITHUB_REPOSITORY-install-tests | tr "[A-Z]/" "[a-z]-")" >> $GITHUB_ENV | ||
- uses: cachix/cachix-action@v9 | ||
with: | ||
name: '${{ env.CACHIX_NAME }}' | ||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
#- run: nix flake check | ||
- run: nix-build -A checks.$(if [[ `uname` = Linux ]]; then echo x86_64-linux; else echo x86_64-darwin; fi) | ||
check_cachix: | ||
name: Cachix secret present for installer tests | ||
runs-on: ubuntu-latest | ||
outputs: | ||
secret: ${{ steps.secret.outputs.secret }} | ||
steps: | ||
- name: Check for Cachix secret | ||
id: secret | ||
env: | ||
_CACHIX_SECRETS: ${{ secrets.CACHIX_SIGNING_KEY }}${{ secrets.CACHIX_AUTH_TOKEN }} | ||
run: echo "::set-output name=secret::${{ env._CACHIX_SECRETS != '' }}" | ||
installer: | ||
if: github.event_name == 'push' | ||
needs: tests | ||
needs: [tests, check_cachix] | ||
if: github.event_name == 'push' && needs.check_cachix.outputs.secret == 'true' | ||
runs-on: ubuntu-latest | ||
env: | ||
CACHIX_NAME: nix-ci | ||
outputs: | ||
installerURL: ${{ steps.prepare-installer.outputs.installerURL }} | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- uses: cachix/install-nix-action@v12 | ||
- uses: cachix/cachix-action@v8 | ||
- run: echo CACHIX_NAME="$(echo $GITHUB_REPOSITORY-install-tests | tr "[A-Z]/" "[a-z]-")" >> $GITHUB_ENV | ||
- uses: cachix/install-nix-action@v13 | ||
- uses: cachix/cachix-action@v9 | ||
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: | ||
if: github.event_name == 'push' | ||
needs: installer | ||
needs: [installer, check_cachix] | ||
if: github.event_name == 'push' && needs.check_cachix.outputs.secret == 'true' | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
CACHIX_NAME: nix-ci | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: cachix/install-nix-action@master | ||
- run: echo CACHIX_NAME="$(echo $GITHUB_REPOSITORY-install-tests | tr "[A-Z]/" "[a-z]-")" >> $GITHUB_ENV | ||
- uses: cachix/install-nix-action@v13 | ||
with: | ||
install_url: '${{needs.installer.outputs.installerURL}}' | ||
install_options: '--tarball-url-prefix https://${{ env.CACHIX_NAME }}.cachix.org/serve' | ||
install_options: "--tarball-url-prefix https://${{ env.CACHIX_NAME }}.cachix.org/serve" | ||
- run: nix-instantiate -E 'builtins.currentTime' --eval | ||
|
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 |
---|---|---|
|
@@ -37,7 +37,7 @@ then you need to ensure that the `PATH` of non-interactive login shells | |
contains Nix. | ||
|
||
> **Warning** | ||
> | ||
> | ||
> If you are building via the Nix daemon, it is the Nix daemon user | ||
> account (that is, `root`) that should have SSH access to the remote | ||
> machine. If you can’t or don’t want to configure `root` to be able to | ||
|
@@ -52,7 +52,7 @@ example, the following command allows you to build a derivation for | |
```console | ||
$ uname | ||
Linux | ||
|
||
$ nix build \ | ||
'(with import <nixpkgs> { system = "x86_64-darwin"; }; runCommand "foo" {} "uname > $out")' \ | ||
--builders 'ssh://mac x86_64-darwin' | ||
|
@@ -103,7 +103,7 @@ default, set it to `-`. | |
```nix | ||
requiredSystemFeatures = [ "kvm" ]; | ||
``` | ||
will cause the build to be performed on a machine that has the `kvm` | ||
feature. | ||
|
@@ -112,6 +112,10 @@ default, set it to `-`. | |
features appear in the derivation’s `requiredSystemFeatures` | ||
attribute.. | ||
8. The (base64-encoded) public host key of the remote machine. If omitted, SSH | ||
will use its regular known-hosts file. Specifically, the field is calculated | ||
via `base64 -w0 /etc/ssh/ssh_host_ed25519_key.pub`. | ||
For example, the machine specification | ||
[email protected] i686-linux /home/nix/.ssh/id_scratchy_auto 8 1 kvm | ||
|
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 was deleted.
Oops, something went wrong.
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,11 +1,11 @@ | ||
$(buildprefix)%.o: %.cc | ||
@mkdir -p "$(dir $@)" | ||
$(trace-cxx) $(CXX) -o $@ -c $< $(GLOBAL_CXXFLAGS_PCH) $(GLOBAL_CXXFLAGS) $(CXXFLAGS) $($@_CXXFLAGS) -MMD -MF $(call filename-to-dep, $@) -MP | ||
$(trace-cxx) $(CXX) -o $@ -c $< $(CPPFLAGS) $(GLOBAL_CXXFLAGS_PCH) $(GLOBAL_CXXFLAGS) $(CXXFLAGS) $($@_CXXFLAGS) -MMD -MF $(call filename-to-dep, $@) -MP | ||
|
||
$(buildprefix)%.o: %.cpp | ||
@mkdir -p "$(dir $@)" | ||
$(trace-cxx) $(CXX) -o $@ -c $< $(GLOBAL_CXXFLAGS_PCH) $(GLOBAL_CXXFLAGS) $(CXXFLAGS) $($@_CXXFLAGS) -MMD -MF $(call filename-to-dep, $@) -MP | ||
$(trace-cxx) $(CXX) -o $@ -c $< $(CPPFLAGS) $(GLOBAL_CXXFLAGS_PCH) $(GLOBAL_CXXFLAGS) $(CXXFLAGS) $($@_CXXFLAGS) -MMD -MF $(call filename-to-dep, $@) -MP | ||
|
||
$(buildprefix)%.o: %.c | ||
@mkdir -p "$(dir $@)" | ||
$(trace-cc) $(CC) -o $@ -c $< $(GLOBAL_CFLAGS) $(CFLAGS) $($@_CFLAGS) -MMD -MF $(call filename-to-dep, $@) -MP | ||
$(trace-cc) $(CC) -o $@ -c $< $(CPPFLAGS) $(GLOBAL_CFLAGS) $(CFLAGS) $($@_CFLAGS) -MMD -MF $(call filename-to-dep, $@) -MP |
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.