Skip to content

Commit b7b2e03

Browse files
authored
Move ARM and target checks to Github Actions from Travis (jerryscript-project#4430)
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
1 parent 7b00db4 commit b7b2e03

File tree

3 files changed

+84
-61
lines changed

3 files changed

+84
-61
lines changed

Diff for: .github/workflows/gh-actions.yml

+82
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,85 @@ jobs:
125125
$RUNNER -q --jerry-tests
126126
--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
127127
--skip-list=parser-oom.js,parser-oom2.js
128+
129+
Linux_ARMv7l_Tests:
130+
runs-on: ubuntu-latest
131+
env:
132+
RUNTIME: qemu-arm-static
133+
TIMEOUT: 300
134+
steps:
135+
- uses: actions/checkout@v2
136+
- run: sudo apt update
137+
- run: sudo apt install gcc-arm-linux-gnueabihf libc6-dev-armhf-cross qemu-user-static
138+
- run: >-
139+
$RUNNER -q --jerry-tests
140+
--buildoptions=--toolchain=cmake/toolchain_linux_armv7l.cmake,--linker-flag=-static
141+
142+
Linux_AArch64_Tests:
143+
runs-on: ubuntu-latest
144+
env:
145+
RUNTIME: qemu-aarch64-static
146+
TIMEOUT: 300
147+
steps:
148+
- uses: actions/checkout@v2
149+
- run: sudo apt update
150+
- run: sudo apt install gcc-aarch64-linux-gnu libc6-dev-armhf-cross qemu-user-static
151+
- run: >-
152+
$RUNNER -q --jerry-tests
153+
--buildoptions=--toolchain=cmake/toolchain_linux_aarch64.cmake,--linker-flag=-static
154+
155+
MbedOS5_K64F_Build_Test:
156+
runs-on: ubuntu-18.04 # needed due to ppa:team-gcc-arm-embedded/ppa
157+
steps:
158+
- uses: actions/checkout@v2
159+
- uses: actions/setup-python@v2
160+
with:
161+
python-version: '3.8' # needed due to 'intelhex' module
162+
- run: sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
163+
- run: sudo apt update
164+
- run: sudo apt install gcc-arm-embedded python3-setuptools
165+
- run: make -f ./targets/mbedos5/Makefile.travis install
166+
- run: make -f ./targets/mbedos5/Makefile.travis script
167+
168+
Zephyr_Arduino_101_Build_Test:
169+
runs-on: ubuntu-latest
170+
steps:
171+
- uses: actions/checkout@v2
172+
- uses: actions/setup-python@v2
173+
with:
174+
python-version: '3.x'
175+
- run: sudo apt update
176+
- run: sudo apt install gperf dfu-util device-tree-compiler
177+
- run: make -f ./targets/zephyr/Makefile.travis install
178+
- run: make -f ./targets/zephyr/Makefile.travis script
179+
180+
NuttX_STM32F4_Build_Test:
181+
runs-on: ubuntu-latest
182+
steps:
183+
- uses: actions/checkout@v2
184+
- run: sudo apt update
185+
- run: sudo apt install gcc-arm-none-eabi libnewlib-arm-none-eabi gperf
186+
- run: make -f ./targets/nuttx-stm32f4/Makefile.travis install-noapt
187+
- run: make -f ./targets/nuttx-stm32f4/Makefile.travis script
188+
189+
RIOT_STM32F4_Build_Test:
190+
runs-on: ubuntu-18.04 # needed due to ppa:team-gcc-arm-embedded/ppa
191+
env:
192+
CC: clang
193+
steps:
194+
- uses: actions/checkout@v2
195+
- run: sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
196+
- run: sudo apt update
197+
- run: sudo apt install clang gcc-arm-embedded gcc-multilib
198+
- run: make -f ./targets/riot-stm32f4/Makefile.travis install-noapt
199+
- run: make -f ./targets/riot-stm32f4/Makefile.travis script
200+
201+
ESP8266_Build_Test:
202+
runs-on: ubuntu-latest
203+
steps:
204+
- uses: actions/checkout@v2
205+
- uses: actions/setup-python@v2
206+
with:
207+
python-version: '2.7' # needed due to ESP8266_RTOS_SDK/tools/gen_appbin.py
208+
- run: make -f ./targets/esp8266/Makefile.travis install-noapt
209+
- run: make -f ./targets/esp8266/Makefile.travis script

Diff for: .travis.yml

-59
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,6 @@ script: tools/run-tests.py $OPTS
1111
# All the job definitions in the matrix.
1212
matrix:
1313
include:
14-
- name: "Linux/ARM Build & Correctness Tests"
15-
env:
16-
- OPTS="--quiet --jerry-tests --toolchain=cmake/toolchain_linux_armv7l.cmake --buildoptions=--linker-flag=-static"
17-
- RUNTIME=qemu-arm-static
18-
- TIMEOUT=300
19-
addons:
20-
apt:
21-
packages: [gcc-arm-linux-gnueabihf, libc6-dev-armhf-cross, qemu-user-static]
22-
23-
- name: "Linux/AArch64 Native Build & Correctness Tests"
24-
arch: arm64
25-
env:
26-
- OPTS="--quiet --jerry-tests --buildoptions=--linker-flag=-static"
27-
- TIMEOUT=300
28-
2914
- name: "Coverity Scan & SonarQube"
3015
env:
3116
# Declaration of the encrypted COVERITY_SCAN_TOKEN, created via the
@@ -47,50 +32,6 @@ matrix:
4732
directories:
4833
- '${HOME}/.sonar/cache'
4934

50-
- name: "Mbed OS 5/K64F Build Test"
51-
addons:
52-
apt:
53-
sources:
54-
- sourceline: ppa:team-gcc-arm-embedded/ppa
55-
packages: [gcc-arm-embedded]
56-
language: python # NOTE: only way to ensure python>=2.7.10 on Trusty image
57-
python: 3.6
58-
install: make -f ./targets/mbedos5/Makefile.travis install
59-
script: make -f ./targets/mbedos5/Makefile.travis script
60-
61-
- name: "Zephyr/Arduino 101 Build Test"
62-
language: python # NOTE: only way to ensure python>=2.7.10 on Trusty image
63-
python: 3.6
64-
install: make -f ./targets/zephyr/Makefile.travis install-noapt
65-
script: make -f ./targets/zephyr/Makefile.travis script
66-
addons:
67-
apt:
68-
packages: [gperf, dfu-util, device-tree-compiler]
69-
70-
- name: "NuttX/STM32F4 Build Test"
71-
install: make -f targets/nuttx-stm32f4/Makefile.travis install-noapt
72-
script: make -f targets/nuttx-stm32f4/Makefile.travis script
73-
addons:
74-
apt:
75-
packages: [gcc-arm-none-eabi, libnewlib-arm-none-eabi, gperf]
76-
77-
- name: "RIOT/STM32F4 Build Test"
78-
install: make -f ./targets/riot-stm32f4/Makefile.travis install-noapt
79-
script: make -f ./targets/riot-stm32f4/Makefile.travis script
80-
compiler: clang-3.9
81-
addons:
82-
apt:
83-
sources:
84-
- sourceline: ppa:team-gcc-arm-embedded/ppa
85-
packages: [clang-3.9, gcc-arm-embedded, gcc-multilib]
86-
87-
- name: "ESP8266 Build Test"
88-
install: make -f ./targets/esp8266/Makefile.travis install-noapt
89-
script: make -f ./targets/esp8266/Makefile.travis script
90-
addons:
91-
apt:
92-
packages: [wget]
93-
9435
fast_finish: true
9536

9637
# The channel name "chat.freenode.net#jerryscript"

Diff for: targets/riot-stm32f4/Makefile.travis

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ all:
2323

2424
# Install cross-compiler via apt.
2525
install-apt-get-deps:
26-
sudo apt-get install -q -y clang-3.9 gcc-arm-embedded gcc-multilib
26+
sudo apt-get install -q -y clang gcc-arm-embedded gcc-multilib
2727

2828
# Fetch RIOT OS repository.
2929
install-clone-riot:
30-
git clone git://github.com/RIOT-OS/RIOT.git ../RIOT -b 2019.01
30+
git clone git://github.com/RIOT-OS/RIOT.git ../RIOT -b 2020.01
3131

3232
# Perform all the necessary (JerryScript-independent) installation steps.
3333
install-noapt: install-clone-riot

0 commit comments

Comments
 (0)