Skip to content

Commit

Permalink
Merge pull request wasmerio#381 from wasmerio/fix-examples-ci
Browse files Browse the repository at this point in the history
Fix CI for examples
  • Loading branch information
Michael Bryan authored Dec 21, 2023
2 parents d3e80dc + 675c77b commit 795b2af
Show file tree
Hide file tree
Showing 3 changed files with 628 additions and 250 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
NODE_VERSION: "21"

jobs:
check:
name: Compile and Test
Expand All @@ -19,7 +22,8 @@ jobs:
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: ${{ env.NODE_VERSION }}
cache: "npm"
- name: Setup Rust
uses: dsherret/rust-toolchain-file@v1
- name: Install Nextest
Expand Down Expand Up @@ -49,7 +53,8 @@ jobs:
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: ${{ env.NODE_VERSION }}
cache: "npm"
- name: Setup Rust
uses: dsherret/rust-toolchain-file@v1
- name: Install wasm-pack
Expand All @@ -64,22 +69,22 @@ jobs:
run: npm run build
- name: Build the wasmer.sh Example
run: |
npm install
npm ci
npm run build
working-directory: "examples/wasmer.sh"
- name: Build the Markdown Editor Example
run: |
npm install
npm ci
npm run build
working-directory: "examples/markdown-editor"
- name: Build the (Improved) Markdown Editor Example
run: |
npm install
npm ci
npm run build
working-directory: "examples/markdown-editor-improved"
- name: Build the ffmpeg demo
run: |
npm install
npm ci
npm run build
working-directory: "examples/ffmpeg-react"

Expand Down
Loading

0 comments on commit 795b2af

Please sign in to comment.