Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate web and native workflows #61

Merged
merged 1 commit into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
name: Lint Builds
name: Lint C++ Builds
'on':
push:
branches:
- '**'
paths:
# It would be nice if I could specify this per-job, but I'm not making a whole new file just to avoid running
# clang for web-only changes.
- src/**
- wasm/*
- .clang-format
- .github/workflows/lint-build.yml
- .github/workflows/lint-cpp-builds.yml
workflow_dispatch: ~
jobs:
build-native-mac:
Expand Down Expand Up @@ -48,26 +45,3 @@ jobs:
shell: pwsh
run: |
cl .\src\*.cpp /EHsc /DVERSION=0.0.0 /DNDEBUG /std:c++20 /MTd /analyze /W4 /WX /we5219
lint-npm:
runs-on: ubuntu-latest
name: Lint with JS Tools
steps:
- uses: actions/checkout@v4
- name: npm lint
shell: bash
run: |
cd wasm
npm ci --no-fund
npm run lint
verify-wasm-build:
runs-on: ubuntu-latest
name: Verify wasm build
steps:
- uses: actions/checkout@v4
- uses: numworks/setup-emscripten@bbc4f5e15974bc13e69fdadecfd1858ecb1c4dbb
- name: Run build script
shell: bash
run: |
cd wasm
npm ci --omit dev --no-fund
./build_wasm.sh lint
35 changes: 35 additions & 0 deletions .github/workflows/lint-web-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Lint Web Build
'on':
push:
branches:
- '**'
paths:
- src/**
- wasm/*
- .clang-format
- .github/workflows/lint-web-build.yml
workflow_dispatch: ~
jobs:
lint-npm:
runs-on: ubuntu-latest
name: Lint with JS Tools
steps:
- uses: actions/checkout@v4
- name: npm lint
shell: bash
run: |
cd wasm
npm ci --no-fund
npm run lint
verify-wasm-build:
runs-on: ubuntu-latest
name: Verify wasm build
steps:
- uses: actions/checkout@v4
- uses: numworks/setup-emscripten@bbc4f5e15974bc13e69fdadecfd1858ecb1c4dbb
- name: Run build script
shell: bash
run: |
cd wasm
npm ci --omit dev --no-fund
./build_wasm.sh lint
Loading