-
Notifications
You must be signed in to change notification settings - Fork 7
60 lines (55 loc) · 1.42 KB
/
run.yml
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
name: Run non-interactive demo
on:
push:
branches:
- main
pull_request:
jobs:
readme:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run the README code parts
run: bin/test-readme
named_steps:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Clone sdk
run: |
mkdir dfn
cd dfn
git clone https://github.com/dfinity/sdk.git
cd sdk
echo SDK_COMMIT=$(git rev-parse HEAD) >> $GITHUB_ENV
- name: Get cached sdk binary
id: sdk_nns_install_cache
uses: actions/cache@v2
with:
path: |
$PWD/dfn/sdk/target/debug/
key: "dfx-${{ env.SDK_COMMIT }}-v001"
- name: Build sdk-nns-install binary
if: steps.sdk_nns_install_cache.outputs.cache-hit != 'true'
run: |
cd $PWD/dfn/sdk
cargo build
- name: Install sdk
run: |
mkdir -p bin
cp dfn/sdk/target/debug/dfx bin/dfx
echo $PWD/bin/ >> $GITHUB_ENV
#
# - name: Set path
# run: |
# echo $PWD/bin/ >>> $GITHUB_ENV
#
# - name: Set up environment variables
# run: cp .demo-init-local .demo-env
#
# - name: Start dfx server
# run: dfx start --clean --background
# - name: Install NNS
# run: dfx nns install