-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.15 KB
/
test.yml
File metadata and controls
49 lines (42 loc) · 1.15 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Test
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: docker/setup-buildx-action@v3
- name: Build WASM image
uses: docker/build-push-action@v6
with:
context: .
target: wasm
tags: hackbg/fadroma-simplicity:build
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Compile WASM (debug)
run: |
docker run --rm \
-v "$PWD:/build:rw" \
hackbg/fadroma-simplicity:build \
"just build-wasm-debug"
- name: Build test image
uses: docker/build-push-action@v6
with:
context: .
target: test
tags: hackbg/fadroma-simplicity:test
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run tests
run: |
docker run --rm \
-v "$PWD:/fadroma/platform/SimplicityHL:rw" \
hackbg/fadroma-simplicity:test \
"cd platform/SimplicityHL/ && src/test.ts"