Skip to content

Commit d29a08f

Browse files
committed
Add a make check rule and run it from the CI script.
1 parent 757c262 commit d29a08f

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,11 @@ jobs:
4545
# Upload the dist folder. Give it a name according to the OS it was built for.
4646
name: ${{ format( 'dist-{0}.tgz', matrix.os) }}
4747
path: dist
48+
check:
49+
name: Check
50+
runs-on: ubuntu-latest
51+
steps:
52+
- uses: actions/checkout@v1
53+
with:
54+
submodules: true
55+
- run: make check

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ DEBUG_PREFIX_MAP=-fdebug-prefix-map=$(ROOT_DIR)=wasisdk://v$(VERSION)
1212
default: build
1313
@echo "Use -fdebug-prefix-map=$(ROOT_DIR)=wasisdk://v$(VERSION)"
1414

15+
check:
16+
cd tests && PATH="$(PREFIX)/bin:$$PATH" ./run.sh
17+
1518
clean:
1619
rm -rf build $(PREFIX)
1720

@@ -157,4 +160,4 @@ build/package.BUILT: build strip
157160
./tar_from_installation.sh $(shell pwd)/dist
158161
touch build/package.BUILT
159162

160-
.PHONY: default clean build strip package
163+
.PHONY: default clean build strip package check

0 commit comments

Comments
 (0)