From b9f195ce910c797318ed30c11f5bd07e63b0056a Mon Sep 17 00:00:00 2001 From: Huang Qi <757509347@qq.com> Date: Sun, 20 Sep 2020 08:33:08 +0800 Subject: [PATCH] Introduce CI support (#391) Co-authored-by: Huang Qi --- .github/workflows/linux.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/linux.yml diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 00000000..6dc2b1fd --- /dev/null +++ b/.github/workflows/linux.yml @@ -0,0 +1,36 @@ +name: Linux + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-18.04, ubuntu-20.04] + steps: + - uses: actions/checkout@v2 + + - name: Build iwasm + run: | + cd product-mini/platforms/linux + mkdir build && cd build + cmake .. + make + + - name: Build wasm-c-api + run: | + cd samples/wasm-c-api + mkdir build && cd build + cmake .. + make + ./hello + ./global + ./callback