Skip to content

Commit

Permalink
Merge pull request #10 from Memkits/updates
Browse files Browse the repository at this point in the history
workflow updates
  • Loading branch information
csvwolf authored Jun 12, 2023
2 parents eb9d13c + 8a04282 commit 2c79ffa
Show file tree
Hide file tree
Showing 4 changed files with 219 additions and 260 deletions.
48 changes: 16 additions & 32 deletions .github/workflows/upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,49 +10,33 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
name: Cache node modules of yarn
- uses: actions/setup-node@v3
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: ACTIONS_ALLOW_UNSECURE_COMMANDS
id: ACTIONS_ALLOW_UNSECURE_COMMANDS
run: echo 'ACTIONS_ALLOW_UNSECURE_COMMANDS=true' >> $GITHUB_ENV
node-version: 18
cache: 'yarn'

- name: add cr
run: |
mkdir -p $GITHUB_WORKSPACE/bin
wget -O $GITHUB_WORKSPACE/bin/cr https://github.com/calcit-lang/calcit/releases/download/0.6.1/cr
chmod +x $GITHUB_WORKSPACE/bin/cr
echo "::add-path::$GITHUB_WORKSPACE/bin"
- uses: supplypike/setup-bin@v3
with:
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.7.0-a7/cr'
name: 'cr'
version: '0.7.0-a7'

- name: "prepare modules"
run: >
mkdir -p ~/.config/calcit/modules/ && cd ~/.config/calcit/modules/
&& git clone https://github.com/calcit-lang/lilac.git
&& git clone https://github.com/calcit-lang/memof.git
&& git clone https://github.com/Respo/respo.calcit.git
&& git clone https://github.com/Respo/reel.calcit.git
&& git clone https://github.com/Respo/respo-markdown.calcit.git
&& git clone https://github.com/Respo/respo-ui.calcit.git
- uses: supplypike/setup-bin@v3
with:
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.7.0-a7/caps'
name: 'caps'
version: '0.7.0-a7'

- name: "compiles to js"
run: >
cr --emit-js --once
caps --ci && cr --emit-js --once
&& yarn && yarn vite build --base=./
- name: Deploy to server
id: deploy
uses: Pendect/action-rsyncer@v1.1.0
uses: Pendect/action-rsyncer@v2.0.0
env:
DEPLOY_KEY: ${{secrets.rsync_private_key}}
with:
Expand Down
8 changes: 8 additions & 0 deletions package.cirru
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{}
:dependencies $ {}
|calcit-lang/lilac |main
|calcit-lang/memof |main
|Respo/respo.calcit |main
|Respo/reel.calcit |main
|Respo/respo-markdown.calcit |main
|Respo/respo-ui.calcit |main
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
},
"author": "jiyinyiyong",
"dependencies": {
"@calcit/procs": "^0.6.1"
"@calcit/procs": "^0.7.0-a7"
},
"license": "MIT",
"devDependencies": {
"bottom-tip": "^0.1.3",
"vite": "^3.2.7"
"bottom-tip": "^0.1.5",
"vite": "^4.3.9"
}
}
Loading

0 comments on commit 2c79ffa

Please sign in to comment.