Skip to content

Commit

Permalink
Create make_js.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yjf2002ghty authored Jun 2, 2024
1 parent 8642787 commit 35b713d
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/make_js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Make_js

on:
push:
branches: [ make_js ]
pull_request:
branches: [ make_js ]

env:
EM_VERSION: 1.39.16
EM_CACHE_FOLDER: 'emsdk-cache'

jobs:
test:
runs-on: ubuntu-20.04

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v4
- name: Setup cache
id: cache-system-libraries
uses: actions/cache@v2
with:
path: ${{env.EM_CACHE_FOLDER}}
key: emsdk-${{env.EM_VERSION}}-${{ runner.os }}
- uses: mymindstorm/setup-emsdk@v7
with:
version: ${{env.EM_VERSION}}
actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Build ffishjs-es6
working-directory: src
run: make -f Makefile_js build es6=yes
- uses: actions/upload-artifact@v4
with:
name: ffishjs
path: tests/js/*

0 comments on commit 35b713d

Please sign in to comment.