Add some basic testing of arm64 linux (#1247)
This commit is contained in:
@@ -25,6 +25,10 @@ executors:
|
|||||||
macos:
|
macos:
|
||||||
xcode: "13.4.1"
|
xcode: "13.4.1"
|
||||||
resource_class: macos.m1.medium.gen1
|
resource_class: macos.m1.medium.gen1
|
||||||
|
linux_arm64:
|
||||||
|
machine:
|
||||||
|
image: ubuntu-2004:202101-01
|
||||||
|
resource_class: arm.medium
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
setup-macos:
|
setup-macos:
|
||||||
@@ -83,6 +87,14 @@ jobs:
|
|||||||
command: |
|
command: |
|
||||||
source emsdk_env.sh
|
source emsdk_env.sh
|
||||||
test/test.py
|
test/test.py
|
||||||
|
test-linux-arm64:
|
||||||
|
executor: linux_arm64
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run:
|
||||||
|
name: Install debian packages
|
||||||
|
command: sudo apt-get update -q && sudo apt-get install -q cmake build-essential openjdk-8-jre-headless
|
||||||
|
- run: test/test.sh
|
||||||
test-mac:
|
test-mac:
|
||||||
executor: mac
|
executor: mac
|
||||||
steps:
|
steps:
|
||||||
@@ -257,6 +269,9 @@ workflows:
|
|||||||
test-linux:
|
test-linux:
|
||||||
jobs:
|
jobs:
|
||||||
- test-linux
|
- test-linux
|
||||||
|
test-linux-arm64:
|
||||||
|
jobs:
|
||||||
|
- test-linux-arm64
|
||||||
test-mac:
|
test-mac:
|
||||||
jobs:
|
jobs:
|
||||||
- test-mac
|
- test-mac
|
||||||
|
|||||||
22
test/test.sh
22
test/test.sh
@@ -1,21 +1,29 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
echo "test the standard workflow (as close as possible to how a user would do it, in the shell)"
|
echo "test the standard workflow (as close as possible to how a user would do it, in the shell)"
|
||||||
|
echo "machine: $(uname -m)"
|
||||||
|
echo "kernel: $(uname -s)"
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Test that arbitrary (non-released) versions can be installed and
|
# Test that arbitrary (non-released) versions can be installed and
|
||||||
# activated.
|
# activated.
|
||||||
./emsdk install sdk-upstream-1b7f7bc6002a3ca73647f41fc10e1fac7f06f804
|
# This test cannot run on linux-arm64 because only certain binaries
|
||||||
./emsdk activate sdk-upstream-1b7f7bc6002a3ca73647f41fc10e1fac7f06f804
|
# get uploaded for this architecture.
|
||||||
source ./emsdk_env.sh
|
if [[ !($(uname -s) == "Linux" && $(uname -m) == "aarch64") ]]; then
|
||||||
which emcc
|
./emsdk install sdk-upstream-1b7f7bc6002a3ca73647f41fc10e1fac7f06f804
|
||||||
emcc -v
|
./emsdk activate sdk-upstream-1b7f7bc6002a3ca73647f41fc10e1fac7f06f804
|
||||||
|
source ./emsdk_env.sh
|
||||||
|
which emcc
|
||||||
|
emcc -v
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Install an older version of the SDK that requires EM_CACHE to be
|
||||||
|
# set in the environment, so that we can test it is later removed
|
||||||
|
# This test only runs on x64 because we didn't build arm binaries
|
||||||
|
# when this older version of the SDK was built.
|
||||||
if [[ $(uname -m) == "x86_64" ]]; then
|
if [[ $(uname -m) == "x86_64" ]]; then
|
||||||
# Install an older version of the SDK that requires EM_CACHE to be
|
|
||||||
# set in the environment, so that we can test it is later removed
|
|
||||||
./emsdk install sdk-1.39.15
|
./emsdk install sdk-1.39.15
|
||||||
./emsdk activate sdk-1.39.15
|
./emsdk activate sdk-1.39.15
|
||||||
source ./emsdk_env.sh
|
source ./emsdk_env.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user