File tree Expand file tree Collapse file tree 2 files changed +30
-7
lines changed Expand file tree Collapse file tree 2 files changed +30
-7
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ executors:
25
25
macos :
26
26
xcode : " 13.4.1"
27
27
resource_class : macos.m1.medium.gen1
28
+ linux_arm64 :
29
+ machine :
30
+ image : ubuntu-2004:202101-01
31
+ resource_class : arm.medium
28
32
29
33
commands :
30
34
setup-macos :
83
87
command : |
84
88
source emsdk_env.sh
85
89
test/test.py
90
+ test-linux-arm64 :
91
+ executor : linux_arm64
92
+ steps :
93
+ - checkout
94
+ - run :
95
+ name : Install debian packages
96
+ command : sudo apt-get update -q && sudo apt-get install -q cmake build-essential openjdk-8-jre-headless
97
+ - run : test/test.sh
86
98
test-mac :
87
99
executor : mac
88
100
steps :
@@ -257,6 +269,9 @@ workflows:
257
269
test-linux :
258
270
jobs :
259
271
- test-linux
272
+ test-linux-arm64 :
273
+ jobs :
274
+ - test-linux-arm64
260
275
test-mac :
261
276
jobs :
262
277
- test-mac
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
echo " test the standard workflow (as close as possible to how a user would do it, in the shell)"
4
+ echo " machine: $( uname -m) "
5
+ echo " kernel: $( uname -s) "
4
6
5
7
set -x
6
8
set -e
7
9
8
10
# Test that arbitrary (non-released) versions can be installed and
9
11
# activated.
10
- ./emsdk install sdk-upstream-1b7f7bc6002a3ca73647f41fc10e1fac7f06f804
11
- ./emsdk activate sdk-upstream-1b7f7bc6002a3ca73647f41fc10e1fac7f06f804
12
- source ./emsdk_env.sh
13
- which emcc
14
- emcc -v
12
+ # This test cannot run on linux-arm64 because only certain binaries
13
+ # get uploaded for this architecture.
14
+ if [[ ! ($( uname -s) == " Linux" && $( uname -m) == " aarch64" ) ]]; then
15
+ ./emsdk install sdk-upstream-1b7f7bc6002a3ca73647f41fc10e1fac7f06f804
16
+ ./emsdk activate sdk-upstream-1b7f7bc6002a3ca73647f41fc10e1fac7f06f804
17
+ source ./emsdk_env.sh
18
+ which emcc
19
+ emcc -v
20
+ fi
15
21
22
+ # Install an older version of the SDK that requires EM_CACHE to be
23
+ # set in the environment, so that we can test it is later removed
24
+ # This test only runs on x64 because we didn't build arm binaries
25
+ # when this older version of the SDK was built.
16
26
if [[ $( uname -m) == " x86_64" ]]; then
17
- # Install an older version of the SDK that requires EM_CACHE to be
18
- # set in the environment, so that we can test it is later removed
19
27
./emsdk install sdk-1.39.15
20
28
./emsdk activate sdk-1.39.15
21
29
source ./emsdk_env.sh
You can’t perform that action at this time.
0 commit comments