-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 1006 Bytes
/
ci.yml
File metadata and controls
33 lines (33 loc) · 1006 Bytes
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
---
name: CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.4
- name: Install dependencies
run: |
sudo -n apt-get -qq update
sudo -n apt-get -qq install -y nasm
npm install -g wasm-pack typedoc typescript
- name: Install NodeJS
uses: actions/setup-node@v4
- run: node --version
- name: Run tests
run: ./ci/test.sh
bench:
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Checkout
uses: actions/checkout@v4.1.4
- name: Enable unprivileged userfaultfd
run: echo 1 | sudo tee /proc/sys/vm/unprivileged_userfaultfd
- name: Enable unprivileged user namespaces
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
- name: Install Rust toolchain
run: rustup default 1.91.0-x86_64-unknown-linux-gnu
- name: Run benchmarks (CoreVM)
run: ./ci/bench.sh