File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,10 @@ jobs:
132132 run : sudo apt-get update; sudo apt-get install -y inxi git
133133 - name : Print runner system info
134134 run : sudo inxi -c0 --width -1 --basic --memory-short
135+ - uses : webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
136+ with :
137+ ssh-private-key : |
138+ ${{ secrets.BUILDER_SSH_KEY }}
135139 - name : Checkout
136140 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
137141 with :
@@ -152,9 +156,8 @@ jobs:
152156 git log --oneline -n$(( COMMITS + CONTEXT ))
153157 - name : Install nix
154158 uses : cachix/install-nix-action@02a151ada4993995686f9ed4f1be7cfbb229e56f # v31
155- - name : Prepare build
159+ - name : Prepare remote builds
156160 run : |
157- sh -c "umask 377; echo '${{ secrets.BUILDER_SSH_KEY }}' >builder_key"
158161 sudo sh -c "echo '${{ vars.BUILDER_SSH_KNOWN_HOST }}' >>/etc/ssh/ssh_known_hosts"
159162 - name : Build ${{ matrix.arch }}.${{ matrix.target }}
160163 run : |
@@ -169,6 +172,5 @@ jobs:
169172 nix run --inputs-from .# nixpkgs#nix-fast-build -- \
170173 --flake .#packages.${{ matrix.arch }}.${{ matrix.target }} \
171174 --remote "$BUILDER" \
172- --remote-ssh-option IdentityFile builder_key \
173175 --option accept-flake-config true \
174176 --no-download --skip-cached --no-nom
You can’t perform that action at this time.
0 commit comments