Skip to content

Commit

Permalink
Add github actions.
Browse files Browse the repository at this point in the history
Disable check sign off first.

IoT.js-DCO-1.0-Signed-off-by: Yonggang Luo [email protected]
  • Loading branch information
lygstate committed Jan 31, 2021
1 parent 615856f commit f5eba67
Show file tree
Hide file tree
Showing 16 changed files with 173 additions and 157 deletions.
109 changes: 108 additions & 1 deletion .github/workflows/gh-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,111 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: echo "Empty action"
- run: OPTS="host-linux" $RUNNER

"Mock_Linux_Build_and_Correctness_Tests":
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: OPTS="mock-linux" $RUNNER

"Linux-x86-64_Build_with_N-API_support_and_Correctness_Tests":
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: OPTS="n-api" $RUNNER

"Linux-x86-64_Build_with_N-API_ES_2015_support_and_Correctness_Tests":
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: OPTS="n-api-es2015-subset" $RUNNER

"Raspberry_Pi_2_Build_Test":
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: OPTS="rpi2" $RUNNER

"STM32f4_Discovery_with_Nuttx_Build_Test":
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: OPTS="stm32f4dis" $RUNNER

"Tizen_Build_Test":
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: OPTS="tizen" $RUNNER

"ECMAScript_2015_features_Build_and_Correctness_Tests":
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: OPTS="es2015" $RUNNER

"External_modules_Build_and_Correctness_Tests":
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: OPTS="external-modules" $RUNNER

"Linux-x86-64_without_snapshot_Build_and_Correctness_Tests":
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: OPTS="no-snapshot" $RUNNER

"Misc_checks_style_checker":
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- run: sudo apt update
- run: sudo apt install -y npm valgrind clang-format-3.9
- run: npm install eslint
- run: OPTS="misc" $RUNNER

"OSX-x86-64_Build_and_Correctness_Tests":
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- run: OPTS="host-darwin" $RUNNER

"ASAN_Tests":
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: OPTS="asan" $RUNNER

"UBSAN_Tests":
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: OPTS="ubsan" $RUNNER

"Win":
runs-on: windows-latest
strategy:
matrix:
include:
- configuration: Debug
sys_arch: x86_64
- configuration: Release
sys_arch: x86_64
- configuration: Debug
sys_arch: i686
- configuration: Release
sys_arch: i686
env:
CONFIGURATION: ${{ matrix.configuration }}
SYS_ARCH: ${{ matrix.sys_arch }}
JERRY_PROFILE: es.next
steps:
- run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v2
- run: npm install
- run: python tools\build.py "--cmake-param=-GVisual Studio 16 2019" --experimental --buildtype=${{ matrix.configuration }} --target-arch=${{ matrix.sys_arch }} --jerry-profile=$env:JERRY_PROFILE --n-api
- run: python tools\testrunner.py build\$env:SYS_ARCH-windows\$env:CONFIGURATION\bin\$env:CONFIGURATION\iotjs.exe
100 changes: 0 additions & 100 deletions .travis.yml

This file was deleted.

43 changes: 0 additions & 43 deletions appveyor.yml

This file was deleted.

2 changes: 2 additions & 0 deletions cmake/config/arm-linux.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ set(CMAKE_SYSTEM_PROCESSOR armv7l)

set(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc)
set(CMAKE_C_COMPILER_WORKS TRUE)
set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++)
set(CMAKE_CXX_COMPILER_WORKS TRUE)
2 changes: 2 additions & 0 deletions cmake/config/arm-nuttx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ set(CMAKE_SYSTEM_PROCESSOR armv7l)

set(CMAKE_C_COMPILER arm-none-eabi-gcc)
set(CMAKE_C_COMPILER_WORKS TRUE)
set(CMAKE_CXX_COMPILER arm-none-eabi-g++)
set(CMAKE_CXX_COMPILER_WORKS TRUE)
4 changes: 4 additions & 0 deletions cmake/config/arm-tizen.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ endif()
if("${CMAKE_C_COMPILER}" STREQUAL "")
set(CMAKE_C_COMPILER arm-linux-gnueabi-gcc)
endif()

if("${CMAKE_CXX_COMPILER}" STREQUAL "")
set(CMAKE_CXX_COMPILER arm-linux-gnueabi-g++)
endif()
2 changes: 2 additions & 0 deletions cmake/config/arm-tizenrt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ set(CMAKE_SYSTEM_PROCESSOR armv7l)

set(CMAKE_C_COMPILER arm-none-eabi-gcc)
set(CMAKE_C_COMPILER_WORKS TRUE)
set(CMAKE_CXX_COMPILER arm-none-eabi-g++)
set(CMAKE_CXX_COMPILER_WORKS TRUE)
2 changes: 1 addition & 1 deletion cmake/config/i686-windows.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_SYSTEM_PROCESSOR i686)

set(CMAKE_C_COMPILER CL.exe)
set(CMAKE_C_COMPILER_WORKS TRUE)
set(CMAKE_CXX_COMPILER CL.exe)
2 changes: 2 additions & 0 deletions cmake/config/mips-openwrt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ set(CMAKE_SYSTEM_PROCESSOR mips)
set(CMAKE_C_COMPILER mips-openwrt-linux-gcc)
set(CMAKE_C_COMPILER_WORKS TRUE)

set(CMAKE_CXX_COMPILER mips-openwrt-linux-g++)
set(CMAKE_CXX_COMPILER_WORKS TRUE)
2 changes: 1 addition & 1 deletion cmake/config/x86_64-windows.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_SYSTEM_PROCESSOR x64)

set(CMAKE_C_COMPILER CL.exe)
set(CMAKE_C_COMPILER_WORKS TRUE)
set(CMAKE_CXX_COMPILER CL.exe)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"eslint": "^4.7.2"
},
"dependencies": {
"node-gyp": "^3.8.0"
"node-gyp": "^7.1.2"
}
}
5 changes: 3 additions & 2 deletions tools/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,10 @@ def build_cmake_args(options):
if options.target_os == 'tizenrt':
include_dirs.append('%s/../framework/include/iotbus' % options.sysroot)
elif options.target_os == 'windows':
cmake_args.append("-GVisual Studio 15 2017")
if options.target_arch == "x86_64":
cmake_args.append("-Ax64")
elif options.target_arch == "i686":
cmake_args.append("-AWin32")

include_dirs.extend(options.external_include_dir)
cmake_args.append("-DEXTERNAL_INCLUDE_DIR='%s'" % (' '.join(include_dirs)))
Expand Down Expand Up @@ -398,7 +399,7 @@ def build_iotjs(options):
ex.check_run_cmd('cmake', cmake_opt)

if options.target_os == 'windows':
print("\nPlease open the iot.js solution file in Visual Studio!")
ex.check_run_cmd('cmake', ['--build', options.build_root, '--config', options.buildtype])
else:
run_make(options, options.build_root)

Expand Down
2 changes: 1 addition & 1 deletion tools/check_tidy.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def parse_option():

class StyleChecker(object):

column_limit = 80
column_limit = 100

def __init__(self):
self.count_lines = 0
Expand Down
3 changes: 3 additions & 0 deletions tools/testrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
from common_py.system.executor import Terminal
from common_py.system.sys_platform import Platform

import util

# Defines the folder that will contain the coverage info.
# The path must be consistent with the measure_coverage.sh script.
JS_COVERAGE_FOLDER = fs.join(path.PROJECT_ROOT, '.coverage_output')
Expand Down Expand Up @@ -345,6 +347,7 @@ def get_args():


def main():
util.setup_stdio()
options = get_args()

testrunner = TestRunner(options)
Expand Down
Loading

0 comments on commit f5eba67

Please sign in to comment.