ci: add imxrt1064 runner
@@ -68,9 +68,9 @@ jobs:
_boot
rootfs-${{ matrix.target }}.tar
- test:
+ test-emu:
needs: build
- name: run tests
+ name: run tests on emulators
runs-on: ubuntu-latest
strategy:
matrix:
@@ -104,3 +104,39 @@ jobs:
uses: ./.github/actions/phoenix-runner
with:
target: ${{ matrix.target }}
+
+ test-hw:
+ needs: build
+ name: run tests on hardware
+ runs-on: ${{ matrix.target }}
+ strategy:
+ matrix:
+ target: ['armv7m7-imxrt106x']
+
+ steps:
+ - name: Checkout phoenix-rtos-project
+ uses: actions/checkout@v2
+ with:
+ repository: phoenix-rtos/phoenix-rtos-project
+ submodules: recursive
+
+ # step 2: update the submodule
+ - name: Update submodule ${{ github.event.repository.name }}
+ working-directory: ${{ github.event.repository.name }}
+ run: |
+ git fetch --recurse-submodules=no --force ${{ github.event.repository.git_url }} "+refs/heads/*:refs/remotes/origin/*"
+ git fetch --recurse-submodules=no --force ${{ github.event.repository.git_url }} "+refs/pull/*/head:refs/remotes/origin/pr/*"
+ git checkout ${{ github.sha }} || git checkout ${{ github.event.pull_request.head.sha }}
+
+ - name: Download build artifacts
+ uses: actions/download-artifact@v2
+ with:
+ name: phoenix-rtos-${{ matrix.target }}
+
+ - name: Untar rootfs
+ working-directory: _fs
+ run: tar -xvf ../rootfs-${{ matrix.target }}.tar
+
+ - name: Test runner
+ run: |
+ python3 ./phoenix-rtos-tests/runner.py -T${{ matrix.target }}
