Skip to content

Merge pull request #3 from Respo/border #12

Merge pull request #3 from Respo/border

Merge pull request #3 from Respo/border #12

Workflow file for this run

name: check
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup Moonbit
uses: hustcer/setup-moonbit@v1
# with:
# version: "nightly"
# - uses: actions/setup-node@v4
# with:
# node-version: 20
# cache: "yarn"
- name: moon check
run: moon update && moon version && moon check --target js
# - name: moon info
# run: |
# moon info
# git diff --exit-code
- name: moon test
run: |
moon build --target js --debug
# - name: "compiles to js"
# run: yarn && yarn vite build --base=./
# - name: moon bundle
# run: moon bundle
# - name: check core size
# run: ls -alh `find ./target/bundle -name *.core`
# - name: format diff
# run: |
# moon fmt
# git diff
# - name: Deploy to server
# id: deploy
# uses: Pendect/action-rsyncer@v2.0.0
# env:
# DEPLOY_KEY: ${{secrets.rsync_private_key}}
# with:
# flags: "-avzr --progress"
# options: ""
# ssh_options: ""
# src: "dist/*"
# dest: "rsync-user@tiye.me:/web-assets/repo/${{ github.repository }}"
# - name: Display status from deploy
# run: echo "${{ steps.deploy.outputs.status }}"