diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bb39b9b..ff46075 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/Makefile b/Makefile index e800939..090fb1d 100644 --- a/Makefile +++ b/Makefile @@ -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