-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add arm version of jenkins Signed-off-by: Seonghyun Kim <[email protected]>
- Loading branch information
Showing
3 changed files
with
68 additions
and
54 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 |
---|---|---|
|
@@ -121,60 +121,6 @@ jobs: | |
ninja -Cout/clang/x64 | ||
./tools/run-tests.py --engine="./out/clang/x64/escargot" new-es | ||
build-on-armv7: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: Build in arm32 container | ||
uses: uraimo/[email protected] | ||
with: | ||
arch: armv7 | ||
distro: ubuntu_latest | ||
|
||
# Install deps into the container. With the token, the container will be cached | ||
# The image is cached publically like a package | ||
githubToken: ${{ github.token }} | ||
|
||
install: | | ||
apt-get update | ||
apt-get install -y cmake build-essential ninja-build pkg-config python3 libicu-dev clang-12 | ||
#FIXME fix clang version as to 12 | ||
ln -s /usr/bin/clang-12 /usr/bin/clang | ||
ln -s /usr/bin/clang++-12 /usr/bin/clang++ | ||
run: | | ||
CC=clang CXX=clang++ cmake -H. -Bout/release -DESCARGOT_TEMPORAL=ON -DESCARGOT_TCO=ON -DESCARGOT_TEST=ON -DESCARGOT_OUTPUT=shell -GNinja | ||
ninja -Cout/release | ||
python3 ./tools/run-tests.py --engine="./out/release/escargot" new-es | ||
build-on-aarch64: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- name: Build in arm64 container | ||
uses: uraimo/[email protected] | ||
with: | ||
arch: aarch64 | ||
distro: ubuntu_latest | ||
|
||
# Install deps into the container. With the token, the container will be cached | ||
# The image is cached publically like a package | ||
githubToken: ${{ github.token }} | ||
|
||
install: | | ||
apt-get update | ||
apt-get install -y cmake build-essential ninja-build pkg-config python3 libicu-dev clang-12 | ||
#FIXME fix clang version as to 12 | ||
ln -s /usr/bin/clang-12 /usr/bin/clang | ||
ln -s /usr/bin/clang++-12 /usr/bin/clang++ | ||
run: | | ||
CC=clang CXX=clang++ cmake -H. -Bout/release -DESCARGOT_TEMPORAL=ON -DESCARGOT_TCO=ON -DESCARGOT_TEST=ON -DESCARGOT_OUTPUT=shell -GNinja | ||
ninja -Cout/release | ||
python3 ./tools/run-tests.py --engine="./out/release/escargot" new-es | ||
test-on-windows-clang-cl: | ||
runs-on: windows-2022 | ||
strategy: | ||
|
File renamed without changes.
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,68 @@ | ||
def isPr() { | ||
env.CHANGE_ID != null | ||
} | ||
node { | ||
try { | ||
stage("Get source") { | ||
def url = 'https://github.com/Samsung/escargot.git' | ||
|
||
if (isPr()) { | ||
def refspec = "+refs/pull/${env.CHANGE_ID}/head:refs/remotes/origin/PR-${env.CHANGE_ID} +refs/heads/master:refs/remotes/origin/master" | ||
def extensions = [[$class: 'PreBuildMerge', options: [mergeRemote: "refs/remotes/origin", mergeTarget: "PR-${env.CHANGE_ID}"]]] | ||
checkout([ | ||
$class: 'GitSCM', | ||
doGenerateSubmoduleConfigurations: false, | ||
extensions: extensions, | ||
submoduleCfg: [], | ||
userRemoteConfigs: [[ | ||
refspec: refspec, | ||
url: url | ||
]] | ||
]) | ||
} else { | ||
def refspec = "+refs/heads/master:refs/remotes/origin/master" | ||
def extensions = [] | ||
checkout([ | ||
$class: 'GitSCM', | ||
doGenerateSubmoduleConfigurations: false, | ||
extensions: [[$class: 'WipeWorkspace']], | ||
submoduleCfg: [], | ||
userRemoteConfigs: [[ | ||
refspec: refspec, | ||
url: url | ||
]] | ||
]) | ||
} | ||
} | ||
|
||
stage('Submodule update') { | ||
sh 'git submodule update --init test third_party/GCutil' | ||
} | ||
|
||
stage('Prepare build') { | ||
sh cmake -H./ -Bout -DESCARGOT_MODE=release -DESCARGOT_THREADING=ON -DESCARGOT_TEMPORAL=ON -DESCARGOT_TCO=ON -DESCARGOT_TEST=ON -DESCARGOT_OUTPUT=shell -GNinja' | ||
} | ||
|
||
stage('Build') { | ||
sh cmake --build ./out/ | ||
} | ||
|
||
stage('Running test') { | ||
timeout(30) { | ||
parallel ( | ||
'new-es v8 spidermonkey chakracore' : { | ||
sh 'tools/run-tests.py --engine="${WORKSPACE}/out/escargot" new-es v8 spidermonkey chakracore' | ||
}, | ||
'test262' : { | ||
sh 'GC_FREE_SPACE_DIVISOR=1 tools/run-tests.py --engine="${WORKSPACE}/out/escargot" test262' | ||
}, | ||
) | ||
} | ||
} | ||
|
||
} catch (e) { | ||
throw e | ||
} finally { | ||
cleanWs() | ||
} | ||
} |