Skip to content

Commit cb2cded

Browse files
authored
Merge pull request #18 from calcit-lang/workflow-updates
doing several workflow updates
2 parents a27643c + c24a9f2 commit cb2cded

File tree

6 files changed

+503
-514
lines changed

6 files changed

+503
-514
lines changed

.github/workflows/upload.yaml

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,23 @@ jobs:
1414

1515
- uses: actions/setup-node@v3
1616
with:
17-
node-version: 16
18-
cache: yarn
17+
node-version: 18
18+
cache: 'yarn'
1919

20-
- name: ACTIONS_ALLOW_UNSECURE_COMMANDS
21-
id: ACTIONS_ALLOW_UNSECURE_COMMANDS
22-
run: echo 'ACTIONS_ALLOW_UNSECURE_COMMANDS=true' >> $GITHUB_ENV
23-
24-
- name: add cr
25-
run: |
26-
mkdir -p $GITHUB_WORKSPACE/bin
27-
wget -O $GITHUB_WORKSPACE/bin/cr https://github.com/calcit-lang/calcit/releases/download/0.6.19/cr
28-
chmod +x $GITHUB_WORKSPACE/bin/cr
29-
echo "::add-path::$GITHUB_WORKSPACE/bin"
30-
31-
- name: "prepare modules"
32-
run: >
33-
mkdir -p ~/.config/calcit/modules/ && cd ~/.config/calcit/modules/
34-
&& git clone https://github.com/calcit-lang/lilac.git
35-
&& git clone https://github.com/calcit-lang/memof.git
36-
&& git clone https://github.com/Respo/respo.calcit.git
37-
&& git clone https://github.com/Respo/reel.calcit.git
38-
&& git clone https://github.com/Respo/respo-markdown.calcit.git
39-
&& git clone https://github.com/Respo/respo-ui.calcit.git
20+
- uses: supplypike/setup-bin@v3
21+
with:
22+
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.7.13/cr'
23+
name: 'cr'
24+
version: '0.7.13'
4025

26+
- uses: supplypike/setup-bin@v3
27+
with:
28+
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.7.13/caps'
29+
name: 'caps'
30+
version: '0.7.13'
4131
- name: "compiles to js"
4232
run: >
43-
cr --emit-js --once
33+
caps --ci && cr --emit-js --once
4434
&& yarn && yarn vite build --base=./
4535
4636
- name: Deploy to server

0 commit comments

Comments
 (0)