Skip to content

Commit 839559e

Browse files
committed
ci(hexagon): add spec test workflow under qemu-hexagon user-mode
1 parent c559f74 commit 839559e

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

.github/workflows/compilation_on_hexagon.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
1+
# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
22
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
33

44
name: compilation on hexagon (qemu user-mode)
@@ -82,7 +82,7 @@ jobs:
8282
working-directory: wamr-compiler
8383

8484
- name: Upload wamrc
85-
uses: actions/upload-artifact@v4
85+
uses: actions/upload-artifact@v7.0.1
8686
with:
8787
name: wamrc-hexagon
8888
path: wamr-compiler/build/wamrc
@@ -106,14 +106,15 @@ jobs:
106106
- name: Install CodeLinaro Hexagon toolchain
107107
run: |
108108
wget -q https://artifacts.codelinaro.org/artifactory/codelinaro-toolchain-for-hexagon/22.1.4_/hexagon-debs-22.1.4_.tar.gz
109-
tar xf hexagon-debs-22.1.4_.tar.gz
109+
mkdir hexagon-debs
110+
tar xf hexagon-debs-22.1.4_.tar.gz -C hexagon-debs
110111
sudo dpkg -i hexagon-debs/*.deb
111112
112113
- name: Cross-compile iwasm for Hexagon
113114
run: |
114115
cmake -S product-mini/platforms/hexagon \
115116
-B build-hexagon \
116-
-DCMAKE_TOOLCHAIN_FILE=${GITHUB_WORKSPACE}/build-scripts/toolchains/hexagon-linux-musl.cmake \
117+
-DCMAKE_TOOLCHAIN_FILE=${GITHUB_WORKSPACE}/build-scripts/toolchains/hexagon_linux_musl.cmake \
117118
-DCMAKE_BUILD_TYPE=Release \
118119
-DWAMR_DISABLE_HW_BOUND_CHECK=1 \
119120
-DWAMR_BUILD_SHRUNK_MEMORY=0 \
@@ -127,7 +128,7 @@ jobs:
127128
qemu-hexagon build-hexagon/iwasm --version
128129
129130
- name: Upload iwasm
130-
uses: actions/upload-artifact@v4
131+
uses: actions/upload-artifact@v7.0.1
131132
with:
132133
name: iwasm-hexagon
133134
path: build-hexagon/iwasm
@@ -157,14 +158,14 @@ jobs:
157158
run: sudo apt-get update && sudo apt-get install -y qemu-user
158159

159160
- name: Download iwasm artifact
160-
uses: actions/download-artifact@v4
161+
uses: actions/download-artifact@v4.2.0
161162
with:
162163
name: iwasm-hexagon
163164
path: ./
164165

165166
- name: Download wamrc artifact
166167
if: matrix.running_mode == 'aot'
167-
uses: actions/download-artifact@v4
168+
uses: actions/download-artifact@v4.2.0
168169
with:
169170
name: wamrc-hexagon
170171
path: ./

build-scripts/toolchains/hexagon-linux-musl.cmake renamed to build-scripts/toolchains/hexagon_linux_musl.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
1+
# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
22
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
33

44
# CMake toolchain file for cross-compiling to Hexagon Linux (musl)

core/iwasm/common/wasm_runtime_common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5713,8 +5713,8 @@ wasm_runtime_invoke_native(WASMExecEnv *exec_env, void *func_ptr,
57135713
|| defined(BUILD_TARGET_RISCV32_ILP32) \
57145714
|| defined(BUILD_TARGET_ARC) */
57155715

5716-
#if defined(BUILD_TARGET_X86_32) || defined(BUILD_TARGET_ARM) \
5717-
|| defined(BUILD_TARGET_THUMB) || defined(BUILD_TARGET_MIPS) \
5716+
#if defined(BUILD_TARGET_X86_32) || defined(BUILD_TARGET_ARM) \
5717+
|| defined(BUILD_TARGET_THUMB) || defined(BUILD_TARGET_MIPS) \
57185718
|| defined(BUILD_TARGET_XTENSA) || defined(BUILD_TARGET_HEXAGON)
57195719
typedef void (*GenericFunctionPointer)(void);
57205720
void

0 commit comments

Comments
 (0)