forked from webgpu/webgpu-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 836 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Build
on:
pull_request:
branches:
- main
push:
branches:
- nextjs # Testing the workflow on this branch.
jobs:
build:
runs-on: ubuntu-latest
env:
BASE_PATH: /webgpu-samples
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
with:
persist-credentials: false
- uses: actions/setup-node@v2-beta
with:
node-version: "18.x"
- uses: actions/cache@v2
with:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}
- name: Install and Build 🔧
run: |
export REPOSITORY_NAME=${{ github.repository }}
npm ci
npm run-script lint
npm run-script build
npm run-script export