Add a make check rule and run it from the CI script.

pull/92/head
Dan Gohman 5 years ago
parent 757c262719
commit d29a08f8db

@ -45,3 +45,11 @@ jobs:
# Upload the dist folder. Give it a name according to the OS it was built for.
name: ${{ format( 'dist-{0}.tgz', matrix.os) }}
path: dist
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true
- run: make check

@ -12,6 +12,9 @@ DEBUG_PREFIX_MAP=-fdebug-prefix-map=$(ROOT_DIR)=wasisdk://v$(VERSION)
default: build
@echo "Use -fdebug-prefix-map=$(ROOT_DIR)=wasisdk://v$(VERSION)"
check:
cd tests && PATH="$(PREFIX)/bin:$$PATH" ./run.sh
clean:
rm -rf build $(PREFIX)
@ -157,4 +160,4 @@ build/package.BUILT: build strip
./tar_from_installation.sh $(shell pwd)/dist
touch build/package.BUILT
.PHONY: default clean build strip package
.PHONY: default clean build strip package check

Loading…
Cancel
Save