-
Notifications
You must be signed in to change notification settings - Fork 250
Expand file tree
/
Copy pathag-solo-xs.yml.DISABLED
More file actions
83 lines (78 loc) · 2.46 KB
/
ag-solo-xs.yml.DISABLED
File metadata and controls
83 lines (78 loc) · 2.46 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: ag-solo on xs
# xs builds are a bit more expensive, so only run them on PRs that target
# master
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
xs-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: cache node modules
uses: actions/cache@v1
with:
path: ~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: yarn install
run: yarn install
- name: yarn build
run: yarn build
- name: install moddable linux CLI SDK ag08
run: |
cd $HOME
curl -L https://github.com/dckc/moddable/releases/download/ag08/moddable-linux-sdk.tgz | tar xzf -
- name: install tape-xs ag03
# ISSUE: merge into agoric-sdk?
run: |
cd $HOME
curl -L https://github.com/agoric-labs/tape-xs/archive/ag03.tar.gz | tar xzf -
mv tape-xs-ag03 tape-xs
cd tape-xs
yarn install
- name: create /usr/local/bin/noflake
run: |
nf=/usr/local/bin/noflake
sudo tee "$nf" <<\EOF >/dev/null
#! /bin/sh
# noflake: rerun a command until it doesn't flake out
CMD=${1+"$@"}
FLAKE_STATUS=2
RETRIES=3
status=$FLAKE_STATUS
tries=0
while test $tries -le $RETRIES -a $status -eq $FLAKE_STATUS; do
tries=`expr $tries + 1`
echo 1>&2 "noflake: try number $tries of: $CMD"
$CMD
status=$?
echo 1>&2 "noflake: exit status $status"
done
exit $status
EOF
sudo chmod +x "$nf"
- name: test eventual-send on xs
run: |
export MODDABLE=$HOME/moddable
export PATH=$MODDABLE/build/bin/lin/release:$PATH
export TAPE=$HOME/tape-xs
cd packages/eventual-send
node -r esm $TAPE/bin/tape-xs-build.js $PWD test/test*.js
noflake mcconfig -m -p x-cli-lin test-xs-manifest.json
$MODDABLE/build/bin/lin/release/eventual-send
- name: test marshal on xs
run: |
export MODDABLE=$HOME/moddable
export PATH=$MODDABLE/build/bin/lin/release:$PATH
export TAPE=$HOME/tape-xs
cd packages/marshal
node -r esm $TAPE/bin/tape-xs-build.js $PWD test/test*.js
noflake mcconfig -m -p x-cli-lin test-xs-manifest.json
$MODDABLE/build/bin/lin/release/marshal