Skip to content

feat: add CI

feat: add CI #4

Workflow file for this run

name: Project build
on: [ pull_request ]
jobs:
build:
name: Build the project
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Setup Emscripten SDK
uses: mymindstorm/setup-emsdk@v14
- name: Checkout the repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Print used libsodium revision
run: |
git -C libsodium rev-parse HEAD
- name: Build libsodium for WASM
run: ./scripts/build-libsodium.sh
- name: Package the project
run: |
mkdir gha-dist
npm pack . --pack-destination gha-dist/
- name: Upload the package as an artifact
uses: actions/upload-artifact@v4
with:
name: packaged-tarball
path:
gha-dist/*.tgz