-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (62 loc) · 2.53 KB
/
ssh_session.yml
File metadata and controls
66 lines (62 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: SSH session
on:
workflow_dispatch:
inputs:
platform:
description: "target platform"
required: false
default: "macos-latest"
type: string
jobs:
ssh-session:
runs-on: ${{ github.event.inputs.platform }}
steps:
- name: Install nix
uses: cachix/install-nix-action@v16
- name: Setup cachix
uses: cachix/cachix-action@v10
with:
name: holochain-ci
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
installCommand: |
nix-env -if https://github.com/cachix/cachix/tarball/master \
--substituters 'https://cache.nixos.org https://cachix.cachix.org' \
--trusted-public-keys 'cachix.cachix.org-1:eWNHQldwUO7G2VkjpnjDbWwy4KQ/HNxht7H4SSoMckM= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY='
- name: Fetch cargo related state and build files
uses: steveeJ-forks/actions-cache/restore@main
with:
path: |
/tmp/holochain_repo/.cargo/bin/
/tmp/holochain_repo/.cargo/registry/index/
/tmp/holochain_repo/.cargo/registry/cache/
/tmp/holochain_repo/.cargo/git/db/
/tmp/holochain_repo/target/
key: ${{ runner.os }}-test-${{ matrix.testCommand.name }}-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-test-cargo-test-slow
${{ runner.os }}-test
${{ runner.os }}-prepare
required: false
- name: Checkout repository
uses: actions/checkout@v2.4.0
- name: Move cargo related state and build files
run: |
if [[ -e /tmp/holochain_repo/.cargo ]]; then
mv -f /tmp/holochain_repo/.cargo ./
fi
if [[ -e /tmp/holochain_repo/target ]]; then
mv -f /tmp/holochain_repo/target/ ./
fi
- name: Set NIX_PATH (FIXME)
run: echo NIX_PATH=nixpkgs=$(./scripts/nix_path.sh) >> $GITHUB_ENV
- name: Setup upterm session
uses: lhotari/action-upterm@v1
env:
HRA_GITHUB_TOKEN: ${{ secrets.HRA_GITHUB_TOKEN}}
HRA_MATTERMOST_TOKEN: ${{ secrets.HRA_MATTERMOST_TOKEN }}
with:
## limits ssh access and adds the ssh public key for the user which triggered the workflow
limit-access-to-actor: true
## limits ssh access and adds the ssh public keys of the listed GitHub users
limit-access-to-users: steveeJ,jost-s,freesig,neonphog,thedavidmeister,maackle