From 35b713d0f09576a25ad36816e8f799c0c34530f2 Mon Sep 17 00:00:00 2001 From: yjf2002ghty <47345902+yjf2002ghty@users.noreply.github.com> Date: Sun, 2 Jun 2024 19:41:02 +0800 Subject: [PATCH] Create make_js.yml --- .github/workflows/make_js.yml | 43 +++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/make_js.yml diff --git a/.github/workflows/make_js.yml b/.github/workflows/make_js.yml new file mode 100644 index 000000000..f522ea5b1 --- /dev/null +++ b/.github/workflows/make_js.yml @@ -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/*