Skip to content

Commit

Permalink
feat(ci): update ci and add wasm build
Browse files Browse the repository at this point in the history
  • Loading branch information
6cdh committed Apr 12, 2024
1 parent 184e759 commit 8f9dff3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Build
on:
push:
branches:
- main
jobs:
wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up tree sitter
uses: tree-sitter/setup-action/cli@v1
- name: wasm build
run: tree-sitter build -w -o tree-sitter-scheme.wasm
23 changes: 8 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,11 @@ jobs:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Set up the repo
uses: tree-sitter/[email protected]
with:
node-version: ${{vars.NODE_VERSION}}
- uses: actions/checkout@v4
- name: Set up tree sitter
uses: tree-sitter/setup-action/cli@v1
- name: Run tests
uses: tree-sitter/[email protected]
with:
test-library: ${{runner.os == 'Linux'}}
corpus-files: corpus/*
uses: tree-sitter/parser-test-action@v2

# chez:
# runs-on: ubuntu-latest
Expand All @@ -34,15 +30,12 @@ jobs:
sicp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
- run: npm install
- uses: actions/checkout@v4
- name: Set up tree sitter
uses: tree-sitter/setup-action/cli@v1
- name: Download sicp code
run: |
mkdir -p sicp && cd sicp
curl https://mitp-content-server.mit.edu/books/content/sectbyfn/books_pres_0/6515/sicp.zip/code/allcode.tar.gz -O
tar xvf allcode.tar.gz
- run: npx tree-sitter parse sicp/*.scm -qt

- run: tree-sitter parse sicp/*.scm -qt

0 comments on commit 8f9dff3

Please sign in to comment.