This is an automated email from the ASF dual-hosted git repository.

ivila pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/incubator-teaclave-trustzone-sdk.git


The following commit(s) were added to refs/heads/main by this push:
     new ee85e3a  ci: separate tests
ee85e3a is described below

commit ee85e3a45e51ef2f0840d36e9f5e83722dcc2fde
Author: ivila <390810...@qq.com>
AuthorDate: Wed Jul 16 09:16:12 2025 +0800

    ci: separate tests
    
    Signed-off-by: Zehui Chen <iv...@apache.org>
    Acked-by: Yuan Zhuang <yu...@apache.org>
---
 .github/workflows/reuse_test.yml               | 54 ----------------
 .github/workflows/reuse_test_in_optee_repo.yml | 85 ++++++++++++++++++++++++++
 .github/workflows/test_in_optee_repo.yml       | 48 +++++++++++++++
 3 files changed, 133 insertions(+), 54 deletions(-)

diff --git a/.github/workflows/reuse_test.yml b/.github/workflows/reuse_test.yml
index 5a859d3..37338bc 100644
--- a/.github/workflows/reuse_test.yml
+++ b/.github/workflows/reuse_test.yml
@@ -183,57 +183,3 @@ jobs:
           export STD=y
           source environment
           (cd ci && ./ci.sh)
-
-  # Cross-compile for ARM64 on host and run tests in QEMU, use the check script
-  # in OP-TEE repo.
-  OPTEE-repo-build-and-run-examples-64bit-TAs:
-    runs-on: ${{ inputs.runs-on }}
-    container: ${{ inputs.container }}
-    steps:
-      - name: Remove /__t/*
-        run: rm -rf /__t/*
-      - name: Checkout repository
-        uses: actions/checkout@v4
-        with:
-          submodules: recursive
-          path: 'incubator-teaclave-trustzone-sdk'
-      - name: Checkout OP-TEE repository
-        run: |
-          mkdir -p ~/optee-qemuv8 && cd ~/optee-qemuv8 &&
-          repo init -u https://github.com/OP-TEE/manifest.git -m qemu_v8.xml &&
-          repo sync -j4 --no-clone-bundle
-      - name: Build images and run tests
-        run: |
-          cd ~/optee-qemuv8
-          rm -rf optee_rust/ &&
-          mv $GITHUB_WORKSPACE/incubator-teaclave-trustzone-sdk optee_rust/
-          cd build &&
-          make -j3 toolchains &&
-          make -j`nproc` RUST_ENABLE=y check
-
-  # Cross-compile for ARM32 on host and run tests in QEMU, use the check script
-  # in OP-TEE repo.
-  OPTEE-repo-build-and-run-examples-32bit-TAs:
-    runs-on: ${{ inputs.runs-on }}
-    container: ${{ inputs.container }}
-    steps:
-      - name: Remove /__t/*
-        run: rm -rf /__t/*
-      - name: Checkout repository
-        uses: actions/checkout@v4
-        with:
-          submodules: recursive
-          path: 'incubator-teaclave-trustzone-sdk'
-      - name: Checkout OP-TEE repository
-        run: |
-          mkdir -p ~/optee-qemuv8 && cd ~/optee-qemuv8 &&
-          repo init -u https://github.com/OP-TEE/manifest.git -m qemu_v8.xml &&
-          repo sync -j4 --no-clone-bundle
-      - name: Build images and run tests
-        run: |
-          cd ~/optee-qemuv8
-          rm -rf optee_rust/ &&
-          mv $GITHUB_WORKSPACE/incubator-teaclave-trustzone-sdk optee_rust/
-          cd build &&
-          make -j3 toolchains &&
-          make -j`nproc` RUST_ENABLE=y COMPILE_S_USER=32 check
diff --git a/.github/workflows/reuse_test_in_optee_repo.yml 
b/.github/workflows/reuse_test_in_optee_repo.yml
new file mode 100644
index 0000000..63194c0
--- /dev/null
+++ b/.github/workflows/reuse_test_in_optee_repo.yml
@@ -0,0 +1,85 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+on:
+  workflow_call:
+    inputs:
+      runs-on:
+        required: true
+        type: string
+      container:
+        required: true
+        type: string
+
+defaults:
+  run:
+    shell: bash
+
+jobs:
+  # Cross-compile for ARM64 on host and run tests in QEMU, use the check script
+  # in OP-TEE repo.
+  OPTEE-repo-build-and-run-examples-64bit-TAs:
+    runs-on: ${{ inputs.runs-on }}
+    container: ${{ inputs.container }}
+    steps:
+      - name: Remove /__t/*
+        run: rm -rf /__t/*
+      - name: Checkout repository
+        uses: actions/checkout@v4
+        with:
+          submodules: recursive
+          path: 'incubator-teaclave-trustzone-sdk'
+      - name: Checkout OP-TEE repository
+        run: |
+          mkdir -p ~/optee-qemuv8 && cd ~/optee-qemuv8 &&
+          repo init -u https://github.com/OP-TEE/manifest.git -m qemu_v8.xml &&
+          repo sync -j4 --no-clone-bundle
+      - name: Build images and run tests
+        run: |
+          cd ~/optee-qemuv8
+          rm -rf optee_rust/ &&
+          mv $GITHUB_WORKSPACE/incubator-teaclave-trustzone-sdk optee_rust/
+          cd build &&
+          make -j3 toolchains &&
+          make -j`nproc` RUST_ENABLE=y check
+
+  # Cross-compile for ARM32 on host and run tests in QEMU, use the check script
+  # in OP-TEE repo.
+  OPTEE-repo-build-and-run-examples-32bit-TAs:
+    runs-on: ${{ inputs.runs-on }}
+    container: ${{ inputs.container }}
+    steps:
+      - name: Remove /__t/*
+        run: rm -rf /__t/*
+      - name: Checkout repository
+        uses: actions/checkout@v4
+        with:
+          submodules: recursive
+          path: 'incubator-teaclave-trustzone-sdk'
+      - name: Checkout OP-TEE repository
+        run: |
+          mkdir -p ~/optee-qemuv8 && cd ~/optee-qemuv8 &&
+          repo init -u https://github.com/OP-TEE/manifest.git -m qemu_v8.xml &&
+          repo sync -j4 --no-clone-bundle
+      - name: Build images and run tests
+        run: |
+          cd ~/optee-qemuv8
+          rm -rf optee_rust/ &&
+          mv $GITHUB_WORKSPACE/incubator-teaclave-trustzone-sdk optee_rust/
+          cd build &&
+          make -j3 toolchains &&
+          make -j`nproc` RUST_ENABLE=y COMPILE_S_USER=32 check
diff --git a/.github/workflows/test_in_optee_repo.yml 
b/.github/workflows/test_in_optee_repo.yml
new file mode 100644
index 0000000..010e3da
--- /dev/null
+++ b/.github/workflows/test_in_optee_repo.yml
@@ -0,0 +1,48 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# Ensures our latest SDK changes remain compatible with the latest OP-TEE
+# repository code
+name: Test in OP-TEE Repo
+
+on:
+  push:
+    branches:
+      - main
+
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
+defaults:
+  run:
+    shell: bash
+
+jobs:
+  # Run test on AMD64 host
+  test-on-amd64-host:
+    uses: ./.github/workflows/reuse_test_in_optee_repo.yml
+    with:
+      runs-on: ubuntu-latest
+      container: ghcr.io/ivila/teaclave-trustzone-sdk-ci-runner:ubuntu-24.04
+
+  # Run test on ARM64 host
+  test-on-arm64-host:
+    uses: ./.github/workflows/reuse_test_in_optee_repo.yml
+    with:
+      runs-on: ubuntu-24.04-arm
+      container: ghcr.io/ivila/teaclave-trustzone-sdk-ci-runner:ubuntu-24.04


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@teaclave.apache.org
For additional commands, e-mail: commits-h...@teaclave.apache.org

Reply via email to