Rework GitHub Actions workflow configuration (#4412)
- Make jobs run on latest versions of the OS's (except for "Checks", which relies on specific versions of checkers coming with Ubuntu 18.04) - Bump actions/checkout to v2 - Rewrite `apt-get` to `apt` (almost the same, but `apt` is the 2nd gen tool) - Drop step names (they took too much vertical space, didn't add too much useful information, and were very typo-prone) - Move superfluous environment variables (e.g., `BUILD_OPTIONS` or `SKIP_LIST`) to their expansion sites (use YAML block scalars `>-` where appropriate to enhance readability) - Fix duplicate installation of pylint in the "Checks" job JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
@@ -7,83 +7,65 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Checks:
|
Checks:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04 # needed for checker version stability
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Updating packages
|
with:
|
||||||
run: sudo apt-get update
|
fetch-depth: 0
|
||||||
- name: Initializtaion
|
- run: sudo apt update
|
||||||
run: sudo apt-get install doxygen vera++ cppcheck pylint pylint python-serial -q
|
- run: sudo apt install doxygen vera++ cppcheck pylint python-serial
|
||||||
- name: Signed-off
|
- run: $RUNNER --check-signed-off=gh-actions
|
||||||
run: $RUNNER --check-signed-off=gh-actions
|
- run: $RUNNER --check-doxygen
|
||||||
- name: Doxygen
|
- run: $RUNNER --check-vera
|
||||||
run: $RUNNER --check-doxygen
|
- run: $RUNNER --check-license
|
||||||
- name: Vera++
|
- run: $RUNNER --check-magic-strings
|
||||||
run: $RUNNER --check-vera
|
- run: $RUNNER --check-pylint
|
||||||
- name: License
|
- run: $RUNNER --check-cppcheck
|
||||||
run: $RUNNER --check-license
|
|
||||||
- name: Magic strings
|
|
||||||
run: $RUNNER --check-magic-strings
|
|
||||||
- name: Pylint
|
|
||||||
run: $RUNNER --check-pylint
|
|
||||||
- name: Cppcheck
|
|
||||||
run: $RUNNER --check-cppcheck
|
|
||||||
|
|
||||||
Linux_x86-64_Build_Correctness_Debugger_Tests:
|
Linux_x86-64_Build_Correctness_Debugger_Tests:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Correctness - jerry-tests
|
- uses: actions/setup-python@v2
|
||||||
run: $RUNNER --jerry-tests -q
|
with:
|
||||||
- name: Debugger Tests
|
python-version: '2.7' # needed by jerry-debugger
|
||||||
run: $RUNNER --jerry-debugger -q
|
- run: $RUNNER -q --jerry-tests
|
||||||
|
- run: $RUNNER -q --jerry-debugger
|
||||||
|
|
||||||
Linux_x86_cpointer-32bit_Build_Correctness_Tests:
|
Linux_x86_cpointer-32bit_Build_Correctness_Tests:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
BUILD_OPTIONS: --buildoptions=--compile-flag=-m32,--cpointer-32bit=on -q
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Updating packages
|
- run: sudo apt update
|
||||||
run: sudo apt-get update
|
- run: sudo apt install gcc-multilib
|
||||||
- name: Initializtaion
|
- run: $RUNNER -q --jerry-tests --buildoptions=--compile-flag=-m32,--cpointer-32bit=on
|
||||||
run: sudo apt-get install gcc-multilib
|
|
||||||
- name: Correctness - jerry-tests
|
|
||||||
run: $RUNNER --jerry-tests $BUILD_OPTIONS -q
|
|
||||||
|
|
||||||
OSX_x86-64_Build_Correctness_Unit_Tests:
|
OSX_x86-64_Build_Correctness_Unit_Tests:
|
||||||
runs-on: macos-10.15
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Correctness - jerry-tests
|
- run: $RUNNER -q --jerry-tests
|
||||||
run: $RUNNER --jerry-tests -q
|
- run: $RUNNER -q --unittests
|
||||||
- name: Unit Tests
|
|
||||||
run: $RUNNER --unittests -q
|
|
||||||
|
|
||||||
Linux_x86-64_Build_Option_Tests:
|
Linux_x86-64_Build_Option_Tests:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Updating packages
|
- run: sudo apt update
|
||||||
run: sudo apt-get update
|
- run: sudo apt install gcc-multilib
|
||||||
- name: Initializtaion
|
- run: $RUNNER --buildoption-test
|
||||||
run: sudo apt-get install gcc-multilib
|
|
||||||
- name: Buildoption tests
|
|
||||||
run: $RUNNER --buildoption-test
|
|
||||||
|
|
||||||
Conformance_Tests_ES5_1:
|
Conformance_Tests_ES5_1:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Test262 - ES5.1
|
- run: $RUNNER --test262
|
||||||
run: $RUNNER --test262
|
|
||||||
|
|
||||||
Conformance_Tests_ES2015:
|
Conformance_Tests_ES2015:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Test262 - ES2015
|
- run: $RUNNER --test262-es2015=update
|
||||||
run: $RUNNER --test262-es2015 update
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
if: success() || failure()
|
if: success() || failure()
|
||||||
with:
|
with:
|
||||||
@@ -91,11 +73,10 @@ jobs:
|
|||||||
path: build/tests/test262_tests_es2015/local/bin/test262.report
|
path: build/tests/test262_tests_es2015/local/bin/test262.report
|
||||||
|
|
||||||
Conformance_Tests_ESNext_A:
|
Conformance_Tests_ESNext_A:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Test262 - ESNext (built-ins,annexB,harness,intl402)
|
- run: $RUNNER --test262-esnext=update --test262-test-list=built-ins,annexB,harness,intl402
|
||||||
run: $RUNNER --test262-esnext update --test262-test-list built-ins,annexB,harness,intl402
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
if: success() || failure()
|
if: success() || failure()
|
||||||
with:
|
with:
|
||||||
@@ -103,11 +84,10 @@ jobs:
|
|||||||
path: build/tests/test262_tests_esnext/local/bin/test262.report
|
path: build/tests/test262_tests_esnext/local/bin/test262.report
|
||||||
|
|
||||||
Conformance_Tests_ESNext_B:
|
Conformance_Tests_ESNext_B:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Test262 - ESNext (language)
|
- run: $RUNNER --test262-esnext=update --test262-test-list=language
|
||||||
run: $RUNNER --test262-esnext update --test262-test-list language
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
if: success() || failure()
|
if: success() || failure()
|
||||||
with:
|
with:
|
||||||
@@ -115,38 +95,33 @@ jobs:
|
|||||||
path: build/tests/test262_tests_esnext/local/bin/test262.report
|
path: build/tests/test262_tests_esnext/local/bin/test262.report
|
||||||
|
|
||||||
Unit_Tests:
|
Unit_Tests:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Unit Tests
|
- run: $RUNNER -q --unittests
|
||||||
run: $RUNNER --unittests -q
|
|
||||||
|
|
||||||
ASAN_Tests:
|
ASAN_Tests:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
ASAN_OPTIONS: detect_stack_use_after_return=1:check_initialization_order=true:strict_init_order=true
|
ASAN_OPTIONS: detect_stack_use_after_return=1:check_initialization_order=true:strict_init_order=true
|
||||||
SKIP_LIST: --skip-list=parser-oom.js,parser-oom2.js,stack-limit.js,regression-test-issue-2190.js,regression-test-issue-2258-2963.js,regression-test-issue-2448.js,regression-test-issue-2905.js,regression-test-issue-3785.js
|
|
||||||
BUILD_OPTIONS: --buildoptions=--stack-limit=0,--compile-flag=-fsanitize=address,--compile-flag=-m32,--compile-flag=-fno-omit-frame-pointer,--compile-flag=-fno-common,--compile-flag=-O2,--debug,--system-allocator=on,--linker-flag=-fuse-ld=gold
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Updating packages
|
- run: sudo apt update
|
||||||
run: sudo apt-get update
|
- run: sudo apt install gcc-multilib
|
||||||
- name: Initializtaion
|
- run: >-
|
||||||
run: sudo apt-get install gcc-multilib
|
$RUNNER -q --jerry-tests
|
||||||
- name: ASAN - jerry-tests
|
--buildoptions=--stack-limit=0,--compile-flag=-fsanitize=address,--compile-flag=-m32,--compile-flag=-fno-omit-frame-pointer,--compile-flag=-fno-common,--compile-flag=-O2,--debug,--system-allocator=on,--linker-flag=-fuse-ld=gold
|
||||||
run: $RUNNER --jerry-tests $SKIP_LIST $BUILD_OPTIONS -q
|
--skip-list=parser-oom.js,parser-oom2.js,stack-limit.js,regression-test-issue-2190.js,regression-test-issue-2258-2963.js,regression-test-issue-2448.js,regression-test-issue-2905.js,regression-test-issue-3785.js
|
||||||
|
|
||||||
UBSAN_Tests:
|
UBSAN_Tests:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
UBSAN_OPTIONS: print_stacktrace=1
|
UBSAN_OPTIONS: print_stacktrace=1
|
||||||
SKIP_LIST: --skip-list=parser-oom.js,parser-oom2.js
|
|
||||||
BUILD_OPTIONS: --buildoptions=--compile-flag=-fsanitize=undefined,--compile-flag=-m32,--compile-flag=-fno-omit-frame-pointer,--compile-flag=-fno-common,--debug,--system-allocator=on,--linker-flag=-fuse-ld=gold
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Updating packages
|
- run: sudo apt update
|
||||||
run: sudo apt-get update
|
- run: sudo apt install gcc-multilib
|
||||||
- name: Initializtaion
|
- run: >-
|
||||||
run: sudo apt-get install gcc-multilib
|
$RUNNER -q --jerry-tests
|
||||||
- name: UBSAN - jerry-tests
|
--buildoptions=--compile-flag=-fsanitize=undefined,--compile-flag=-m32,--compile-flag=-fno-omit-frame-pointer,--compile-flag=-fno-common,--debug,--system-allocator=on,--linker-flag=-fuse-ld=gold
|
||||||
run: $RUNNER --jerry-tests $SKIP_LIST $BUILD_OPTIONS -q
|
--skip-list=parser-oom.js,parser-oom2.js
|
||||||
|
|||||||
Reference in New Issue
Block a user