Enable triggering workflows on push events (#783)

And enable cmake build in workflows with multiple cpu cores.
This commit is contained in:
Wenyong Huang 2021-10-12 14:52:16 +08:00 committed by GitHub
parent ee1ae4dc2c
commit 8edca21df2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 9 deletions

View File

@ -11,6 +11,13 @@ on:
- "ci/**" - "ci/**"
- "doc/**" - "doc/**"
- "test-tools/**" - "test-tools/**"
# will be triggered on push events
push:
paths-ignore:
- "assembly-script/**"
- "ci/**"
- "doc/**"
- "test-tools/**"
# allow to be triggered manually # allow to be triggered manually
workflow_dispatch: workflow_dispatch:
@ -176,7 +183,7 @@ jobs:
run: | run: |
mkdir build && cd build mkdir build && cd build
cmake .. cmake ..
cmake --build . --config Release cmake --build . --config Release --parallel 4
working-directory: wamr-compiler working-directory: wamr-compiler
build_iwasm: build_iwasm:
@ -304,7 +311,7 @@ jobs:
run: | run: |
mkdir build && cd build mkdir build && cd build
cmake .. ${{ matrix.make_options_run_mode }} ${{ matrix.make_options_feature }} cmake .. ${{ matrix.make_options_run_mode }} ${{ matrix.make_options_feature }}
cmake --build . --config Release cmake --build . --config Release --parallel 4
working-directory: product-mini/platforms/${{ matrix.platform }} working-directory: product-mini/platforms/${{ matrix.platform }}
build_samples_wasm_c_api: build_samples_wasm_c_api:
@ -381,7 +388,7 @@ jobs:
run: | run: |
mkdir build && cd build mkdir build && cd build
cmake .. cmake ..
cmake --build . --config Release cmake --build . --config Release --parallel 4
working-directory: wamr-compiler working-directory: wamr-compiler
- name: Build Sample [wasm-c-api] - name: Build Sample [wasm-c-api]
@ -389,7 +396,7 @@ jobs:
run: | run: |
mkdir build && cd build mkdir build && cd build
cmake .. ${{ matrix.make_options }} cmake .. ${{ matrix.make_options }}
cmake --build . --config Release cmake --build . --config Release --parallel 4
./callback ./callback
./callback_chain ./callback_chain
./global ./global
@ -466,7 +473,7 @@ jobs:
run: | run: |
mkdir build && cd build mkdir build && cd build
cmake .. cmake ..
cmake --build . --config Release cmake --build . --config Release --parallel 4
working-directory: wamr-compiler working-directory: wamr-compiler
- name: Build Sample [basic] - name: Build Sample [basic]
@ -482,7 +489,7 @@ jobs:
cd samples/multi-thread cd samples/multi-thread
mkdir build && cd build mkdir build && cd build
cmake .. cmake ..
cmake --build . --config Release cmake --build . --config Release --parallel 4
./iwasm wasm-apps/test.wasm ./iwasm wasm-apps/test.wasm
- name: Build Sample [multi-module] - name: Build Sample [multi-module]
@ -491,7 +498,7 @@ jobs:
cd samples/multi-module cd samples/multi-module
mkdir build && cd build mkdir build && cd build
cmake .. cmake ..
cmake --build . --config Release cmake --build . --config Release --parallel 4
./multi_module ./multi_module
- name: Build Sample [spawn-thread] - name: Build Sample [spawn-thread]
@ -500,7 +507,7 @@ jobs:
cd samples/spawn-thread cd samples/spawn-thread
mkdir build && cd build mkdir build && cd build
cmake .. cmake ..
cmake --build . --config Release cmake --build . --config Release --parallel 4
./spawn_thread ./spawn_thread
- name: Build Sample [ref-types] - name: Build Sample [ref-types]
@ -509,5 +516,5 @@ jobs:
cd samples/ref-types cd samples/ref-types
mkdir build && cd build mkdir build && cd build
cmake .. cmake ..
cmake --build . --config Release cmake --build . --config Release --parallel 4
./hello ./hello

View File

@ -11,6 +11,13 @@ on:
- "ci/**" - "ci/**"
- "doc/**" - "doc/**"
- "test-tools/**" - "test-tools/**"
# will be triggered on push events
push:
paths-ignore:
- "assembly-script/**"
- "ci/**"
- "doc/**"
- "test-tools/**"
# allow to be triggered manually # allow to be triggered manually
workflow_dispatch: workflow_dispatch:

View File

@ -10,6 +10,13 @@ on:
- "core/shared/**" - "core/shared/**"
- "wamr-compiler/**" - "wamr-compiler/**"
- "product-mini/**" - "product-mini/**"
# will be triggered on push events
push:
paths:
- "core/iwasm/**"
- "core/shared/**"
- "wamr-compiler/**"
- "product-mini/**"
# allow to be triggered manually # allow to be triggered manually
workflow_dispatch: workflow_dispatch: