-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
153 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# | ||
# Copyright (C) 2023 Intel Corporation. All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
# | ||
|
||
name: libdyntype CI | ||
|
||
on: | ||
push: | ||
paths: | ||
- "runtime-library/**" | ||
pull_request: | ||
paths: | ||
- "runtime-library/**" | ||
# allow to be triggered manually | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build_and_test: | ||
name: 'Libdyntype Build and Test' | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: runtime-library/libdyntype | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 5 | ||
submodules: true | ||
|
||
- name: download dependencies | ||
run: | | ||
./download.sh | ||
working-directory: runtime-library/deps | ||
|
||
- name: Dyntype Build | ||
run: | | ||
git pull --recurse-submodules | ||
git submodule update --remote --recursive | ||
mkdir build && cd build | ||
cmake .. && make | ||
- name: Dyntype Test | ||
run: | | ||
cd test | ||
mkdir build && cd build | ||
cmake .. | ||
make | ||
make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# | ||
# Copyright (C) 2023 Intel Corporation. All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
# | ||
|
||
name: ts2wasm-compiler CI | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- "doc/**" | ||
- "README.md" | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
paths-ignore: | ||
- "doc/**" | ||
- "README.md" | ||
# allow to be triggered manually | ||
workflow_dispatch: | ||
|
||
# Cancel any in-flight jobs for the same PR/branch so there's only one active | ||
# at a time | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
install_dependencies: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
# node-version: [10.x, 12.x, 14.x, 15.x, 16.x] | ||
# Test the latest version of Node.js plus the last two LTS versions. | ||
# node-version: | ||
# - "*" | ||
# - lts/* | ||
# - lts/-1 | ||
node-version: [16.x] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 5 | ||
|
||
- name: Use node version ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
- run: npm install | ||
|
||
- name: Linter | ||
run: npx lint-staged | ||
|
||
validate_compilation: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 5 | ||
- run: npm install | ||
|
||
- name: Test compilation | ||
run: | ||
npm run test | ||
|
||
validate_execution: | ||
needs: | ||
[install_dependencies] | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
target: [ | ||
"X86_64", "X86_32" | ||
] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 5 | ||
|
||
- name: download dependencies | ||
run: | | ||
./download.sh | ||
sudo apt update && sudo apt install g++-multilib -y | ||
working-directory: runtime-library/deps | ||
|
||
- name: Build runtime | ||
run: | | ||
mkdir build && cd build | ||
cmake .. -DWAMR_BUILD_TARGET=${{ matrix.target }} -DWAMR_GC_IN_EVERY_ALLOCATION=1 -DUSE_SANITIZER=1 && make -j$(nproc) | ||
working-directory: runtime-library/ | ||
|
||
- name: Validate execution | ||
run: | ||
npm start | ||
working-directory: tools/validate/wamr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters