Skip to content

Commit b290c26

Browse files
author
Michael-F-Bryan
committed
Split examples out into its own CI job
1 parent 6d39349 commit b290c26

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

.github/workflows/ci.yml

+28-2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,28 @@ jobs:
4040
run: npm run build:dev
4141
- name: Integration Tests
4242
run: npm run test
43+
44+
examples:
45+
name: Build Examples
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v2
49+
- name: Install Node
50+
uses: actions/setup-node@v3
51+
with:
52+
node-version: 16
53+
- name: Setup Rust
54+
uses: dsherret/rust-toolchain-file@v1
55+
- name: Install wasm-pack
56+
uses: taiki-e/install-action@wasm-pack
57+
- name: Install wasm-strip and wasm-opt
58+
run: sudo apt-get update && sudo apt-get install -y wabt binaryen
59+
- name: Rust Cache
60+
uses: Swatinem/rust-cache@v2
61+
- name: Install JS Dependencies
62+
run: npm ci
63+
- name: Build Package
64+
run: npm run build
4365
- name: Build the wasmer.sh Example
4466
run: |
4567
npm ci
@@ -104,13 +126,17 @@ jobs:
104126
workflow-times:
105127
name: Workflow Timings
106128
runs-on: ubuntu-latest
107-
needs: check
129+
needs:
130+
- check
131+
- examples
108132
steps:
109133
- name: Time Reporter
110134
uses: Michael-F-Bryan/[email protected]
111135
with:
112136
token: ${{ secrets.GITHUB_TOKEN }}
113-
jobs: Compile and Test
137+
jobs: |
138+
Compile and Test
139+
Build Examples
114140
message: |
115141
Make sure you keep an eye on build times!
116142

0 commit comments

Comments
 (0)