mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-11-29 02:50:49 +00:00
Add smoke tests for iwasm and wamrc binaries to validate build output (#4455)
This commit is contained in:
parent
29d465b44e
commit
e40b05a5c6
28
.github/workflows/build_iwasm_release.yml
vendored
28
.github/workflows/build_iwasm_release.yml
vendored
|
|
@ -97,9 +97,9 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- build_options: $DEFAULT_BUILD_OPTIONS
|
- build_options: $DEFAULT_BUILD_OPTIONS
|
||||||
suffix: ''
|
suffix: ""
|
||||||
- build_options: $GC_EH_BUILD_OPTIONS
|
- build_options: $GC_EH_BUILD_OPTIONS
|
||||||
suffix: '-gc-eh'
|
suffix: "-gc-eh"
|
||||||
permissions:
|
permissions:
|
||||||
contents: write # for uploading release artifacts
|
contents: write # for uploading release artifacts
|
||||||
|
|
||||||
|
|
@ -126,6 +126,30 @@ jobs:
|
||||||
cmake --build build --config Release --parallel 4
|
cmake --build build --config Release --parallel 4
|
||||||
working-directory: ${{ inputs.cwd }}
|
working-directory: ${{ inputs.cwd }}
|
||||||
|
|
||||||
|
- name: smoke test on non-Windows
|
||||||
|
if: ${{ !startsWith(inputs.runner, 'windows') }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
if [[ ! -f build/iwasm ]]; then
|
||||||
|
echo "iwasm binary is not found in the expected location."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
build/iwasm --version
|
||||||
|
working-directory: ${{ inputs.cwd }}
|
||||||
|
|
||||||
|
- name: smoke test on Windows
|
||||||
|
if: ${{ startsWith(inputs.runner, 'windows') }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
if [[ ! -f build/Release/iwasm ]]; then
|
||||||
|
echo "iwasm binary is not found in the expected location."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
build/Release/iwasm --version
|
||||||
|
working-directory: ${{ inputs.cwd }}
|
||||||
|
|
||||||
- name: Compress the binary on Windows
|
- name: Compress the binary on Windows
|
||||||
if: inputs.runner == 'windows-latest'
|
if: inputs.runner == 'windows-latest'
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
24
.github/workflows/build_wamrc.yml
vendored
24
.github/workflows/build_wamrc.yml
vendored
|
|
@ -62,6 +62,30 @@ jobs:
|
||||||
cmake --build build --config Release --parallel 4
|
cmake --build build --config Release --parallel 4
|
||||||
working-directory: wamr-compiler
|
working-directory: wamr-compiler
|
||||||
|
|
||||||
|
- name: smoke test on non-windows
|
||||||
|
if: ${{ !startsWith(inputs.runner, 'windows') }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
if [[ ! -f build/wamrc ]]; then
|
||||||
|
echo "wamrc binary is not found in the expected location."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
build/wamrc --version
|
||||||
|
working-directory: wamr-compiler
|
||||||
|
|
||||||
|
- name: smoke test on Windows
|
||||||
|
if: ${{ startsWith(inputs.runner, 'windows') }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
if [[ ! -f build/Release/wamrc ]]; then
|
||||||
|
echo "wamrc binary is not found in the expected location."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
build/Release/wamrc --version
|
||||||
|
working-directory: wamr-compiler
|
||||||
|
|
||||||
- name: Compress the binary on Windows
|
- name: Compress the binary on Windows
|
||||||
if: inputs.runner == 'windows-latest' && inputs.release
|
if: inputs.runner == 'windows-latest' && inputs.release
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user