Merged in the modern lammps.js work by Alex Zhilkin #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Cache emsdk | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/emsdk | |
| key: emsdk-${{ runner.os }}-${{ hashFiles('emsdk_manifest.txt') }} | |
| - name: Install emsdk | |
| run: | | |
| if [ ! -d "$HOME/emsdk" ]; then | |
| git clone https://github.com/emscripten-core/emsdk.git "$HOME/emsdk" | |
| fi | |
| cd "$HOME/emsdk" | |
| ./emsdk install 3.1.51 | |
| ./emsdk activate 3.1.51 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| - name: Install deps | |
| run: npm ci | |
| - name: Build & test | |
| run: | | |
| source "$HOME/emsdk/emsdk_env.sh" | |
| npm test |