@@ -10,49 +10,33 @@ jobs:
1010 test :
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v2
13+ - uses : actions/checkout@v3
1414
15- - name : Get yarn cache
16- id : yarn-cache
17- run : echo "::set-output name=dir::$(yarn cache dir)"
18-
19- - uses : actions/cache@v2
20- name : Cache node modules of yarn
15+ - uses : actions/setup-node@v3
2116 with :
22- path : ${{ steps.yarn-cache.outputs.dir }}
23- key : ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
24- restore-keys : |
25- ${{ runner.os }}-yarn-
26-
27- - name : ACTIONS_ALLOW_UNSECURE_COMMANDS
28- id : ACTIONS_ALLOW_UNSECURE_COMMANDS
29- run : echo 'ACTIONS_ALLOW_UNSECURE_COMMANDS=true' >> $GITHUB_ENV
17+ node-version : 18
18+ cache : ' yarn'
3019
31- - name : add cr
32- run : |
33- mkdir -p $GITHUB_WORKSPACE/bin
34- wget -O $GITHUB_WORKSPACE/bin/cr https://github.com/calcit-lang/calcit/releases/download/0.6.4/cr
35- chmod +x $GITHUB_WORKSPACE/bin/cr
36- echo "::add-path::$GITHUB_WORKSPACE/bin"
20+ - uses : supplypike/setup-bin@v3
21+ with :
22+ uri : ' https://github.com/calcit-lang/calcit/releases/download/0.6.26/cr'
23+ name : ' cr'
24+ version : ' 0.6.26'
3725
38- - name : " prepare modules"
39- run : >
40- mkdir -p ~/.config/calcit/modules/ && cd ~/.config/calcit/modules/
41- && git clone https://github.com/calcit-lang/lilac.git
42- && git clone https://github.com/calcit-lang/memof.git
43- && git clone https://github.com/Respo/respo.calcit.git
44- && git clone https://github.com/Respo/reel.calcit.git
45- && git clone https://github.com/Respo/respo-markdown.calcit.git
46- && git clone https://github.com/Respo/respo-ui.calcit.git
26+ - uses : supplypike/setup-bin@v3
27+ with :
28+ uri : ' https://github.com/calcit-lang/calcit/releases/download/0.6.26/caps'
29+ name : ' caps'
30+ version : ' 0.6.26'
4731
4832 - name : " compiles to js"
4933 run : >
50- cr --emit-js --once
34+ caps --ci && cr --emit-js --once
5135 && yarn && yarn vite build --base=./
5236
5337 - name : Deploy to server
5438 id : deploy
55- uses : Pendect/action-rsyncer@v1.1 .0
39+ uses : Pendect/action-rsyncer@v2.0 .0
5640 env :
5741 DEPLOY_KEY : ${{secrets.rsync_private_key}}
5842 with :
0 commit comments