Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 26 additions & 8 deletions .github/workflows/upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,39 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: 24
cache: 'yarn'
package-manager-cache: false

- uses: calcit-lang/setup-cr@0.0.8
- name: Enable Corepack
run: |
corepack enable
corepack prepare yarn@4.12.0 --activate
yarn --version

- name: "compiles to js"
run: >
caps --ci && cr -1 js
&& yarn && yarn vite build --base=./
- uses: calcit-lang/setup-cr@0.0.9

- name: "install modules"
run: caps --ci

- name: "validate snapshot and compile"
run: |
cr calcit.cirru edit format
git diff --exit-code -- calcit.cirru
cr calcit.cirru --check-only
cr calcit.cirru analyze check-types --summary-only --format json
cr calcit.cirru analyze weak-types --only schema-dynamic,code-dynamic --intent unresolved --summary-only --format json
cr calcit.cirru analyze deprecated --summary-only --format json
cr calcit.cirru js
yarn install --immutable
yarn vite build --base=./

- name: Deploy to server
id: deploy
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: Pendect/action-rsyncer@v2.0.0
env:
DEPLOY_KEY: ${{secrets.rsync_private_key}}
Expand All @@ -37,4 +54,5 @@ jobs:
dest: 'rsync-user@tiye.me:/web-assets/repo/${{ github.repository }}'

- name: Display status from deploy
if: steps.deploy.outcome != 'skipped'
run: echo "${{ steps.deploy.outputs.status }}"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@
js-out/
node_modules/
dist/
.pnp.*
.yarn/*.gz

.DS_Store
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
2,282 changes: 383 additions & 1,899 deletions calcit.cirru

Large diffs are not rendered by default.

333 changes: 0 additions & 333 deletions compact.cirru

This file was deleted.

Loading
Loading