-
Notifications
You must be signed in to change notification settings - Fork 9
136 lines (136 loc) · 4.66 KB
/
actions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
name: lwnode actions
on: [ push, pull_request ]
jobs:
build_lwnode:
runs-on: ubuntu-20.04
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
config: [ '', '--nopt --shared' ]
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
submodules: true
- name: Checkout Escargot
run: |
pushd deps/escargot
git submodule update --init third_party
pushd third_party/wasm/wabt
patch -p0 --forward -r /dev/null -i ../../../tools/test/wasm-js/wabt_patch
popd
popd
- name: Install Packages
run: |
sudo apt update
sudo apt install -y ninja-build gcc-multilib g++-multilib sed
- name: Build lwnode
run: |
./configure.py ${{ matrix.config }}
ninja -C out/linux/Release lwnode
- name: Run node.js TCs (test.py)
run: |
pushd $(pwd)/deps/node
./tools/test.py \
-J -p dots --report --time --timeout 240 --repeat 1 \
--shell=../../out/linux/Release/lwnode \
--skip-tests=$(sed 's/\s#.*//g' test/skip_tests.txt | paste -sd,) \
--unsupported-tests=$(sed '/#\|^$/d' test/skip_features.txt | paste -sd,) \
test/parallel test/regression
popd
cctest:
runs-on: ubuntu-20.04
timeout-minutes: 30
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
submodules: true
- name: Checkout Escargot
run: |
pushd deps/escargot
git submodule update --init third_party
pushd third_party/wasm/wabt
patch -p0 --forward -r /dev/null -i ../../../tools/test/wasm-js/wabt_patch
popd
popd
- name: Install Packages
run: |
sudo apt update
sudo apt install -y ninja-build gcc-multilib g++-multilib
- name: Build cctest
run: |
export ROOT=$PWD
export OUT_PATH=$ROOT/out/cctest
export ARCH="x64"
export ASAN=1
export GYP=deps/node/tools/gyp/gyp
$GYP ./test/cctest.gyp --depth=. -f ninja \
--generator-output=$OUT_PATH -Dasan=$ASAN -Descargot_build_mode=debug \
-Descargot_lib_type=static_lib -Dtarget_arch=$ARCH -Dtarget_os=linux \
-Denable_experimental=true -Descargot_threading=1 \
-Descargot_debugger=0
ninja -C $OUT_PATH/out/Debug cctest
- name: Run cctest
run: |
out/cctest/out/Debug/cctest
build_tizen_std:
runs-on: ubuntu-20.04
#container:
# image: art.sec.samsung.net/circleci-docker/docker-gbs-base:actions
# options: --user root --privileged
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
profile: [t70std]
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
submodules: true
- name: Checkout Escargot
run: |
pushd deps/escargot
git submodule update --init third_party
pushd third_party/wasm/wabt
patch -p0 --forward -r /dev/null -i ../../../tools/test/wasm-js/wabt_patch
popd
popd
- name: Install Packages
run: |
echo "deb [trusted=yes] http://download.tizen.org/tools/latest-release/Ubuntu_$(lsb_release -rs)/ /" | \
sudo tee /etc/apt/sources.list.d/tizen.list > /dev/null
pwd
sudo apt update
sudo apt install -y ninja-build gcc-multilib g++-multilib gbs
- name: Build Packages
run: |
gbs -c .github/gbs.conf build -A armv7l -P profile.${{ matrix.profile }} --include-all --incremental --packaging-dir modules/packages/packaging
- name: Build Tizen ${{ matrix.profile }}
run: |
gbs -c .github/gbs.conf build -A armv7l -P profile.${{ matrix.profile }} --include-all --incremental --define 'lib_type shared'
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: tizen_std_${{ matrix.profile }}
path: /home/runner/GBS-ROOT/${{ matrix.profile }}/local/repos/${{ matrix.profile }}/armv7l/RPMS/
lint:
runs-on: ubuntu-20.04
timeout-minutes: 30
strategy:
fail-fast: false
steps:
- name: Checkout source
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Packages
run: |
sudo apt update
sudo apt install -y ninja-build gcc-multilib g++-multilib sed clang-format-8
- name: Lint CC
run: |
tools/check_tidy.py --filter=$(paste -sd, tools/lint-filters.txt)