Skip to content

Commit

Permalink
nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdebek committed Jun 25, 2024
1 parent f9854f1 commit 88399f5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 51 deletions.
2 changes: 1 addition & 1 deletion .github/actions/phoenix-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ inputs:
required: false
nightly:
description: 'Build additional tests'
default: false
default: true
required: false

# action runner
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/phoenix-runner/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ inputs:

nightly:
description: 'Run nightly mode'
default: false
default: true
required: false


Expand Down
54 changes: 6 additions & 48 deletions .github/workflows/ci-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ on:
build_params:
type: string
description: "parameters to build.sh script"
default: 'host core fs test project image' # by default don't build ports
default: 'host core fs test project image ports' # by default don't build ports
required: false
nightly:
type: boolean
default: false
default: true
required: false


Expand All @@ -30,12 +30,10 @@ jobs:
build_result: ${{ steps.build.outcome }}
strategy:
matrix:
target: ['armv7a7-imx6ull-evk', 'armv7a9-zynq7000-qemu', 'armv7a9-zynq7000-zedboard', 'armv7a9-zynq7000-zturn', 'armv7m4-stm32l4x6-nucleo', 'armv7m7-imxrt105x-evk', 'armv7m7-imxrt106x-evk', 'armv7m7-imxrt117x-evk', 'host-generic-pc', 'ia32-generic-pc', 'ia32-generic-qemu', 'riscv64-generic-qemu', 'riscv64-generic-spike', 'sparcv8leon3-gr716-mini']
target: ['ia32-generic-qemu']
include:
- target: 'ia32-generic-qemu'
syspage: 'psh pc-ata uart16550'
- target: 'armv7a9-zynq7000-qemu'
additional_params: 'ports'
steps:
# step 1: checkout repository code inside the workspace directory of the runner
- name: Checkout the repository
Expand Down Expand Up @@ -80,7 +78,7 @@ jobs:
strategy:
fail-fast: false
matrix:
target: ['armv7a9-zynq7000-qemu', 'host-generic-pc', 'ia32-generic-qemu', 'riscv64-generic-qemu']
target: ['ia32-generic-qemu']

steps:
- name: Checkout the repository
Expand Down Expand Up @@ -116,49 +114,9 @@ jobs:
results.csv
results.xml
test-hw:
needs: build
name: test HW
runs-on: ${{ matrix.target }}
outputs:
runner_result: ${{ steps.runner.outcome }}
strategy:
fail-fast: false
matrix:
target: ['armv7a7-imx6ull-evk', 'armv7m7-imxrt106x-evk', 'armv7m7-imxrt117x-evk', 'armv7a9-zynq7000-zedboard', 'armv7m4-stm32l4x6-nucleo']

steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: phoenix-rtos-${{ matrix.target }}

- name: Untar rootfs
working-directory: _fs
run: tar -xvf ../rootfs-${{ matrix.target }}.tar

- name: Test runner
id: runner
run: |
python3 ./phoenix-rtos-tests/runner.py -v -T${{ matrix.target }} ${{ inputs.nightly && '--nightly' || '' }} -Oresults.csv
- name: Upload runner results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.target }}
path: |
results.csv
results.xml
tests-summary:
if: success() || failure() # don't care about cancelled runs
needs: ['test-emu', 'test-hw']
needs: ['test-emu']
runs-on: ubuntu-latest
steps:
- name: Download Artifacts
Expand Down Expand Up @@ -193,7 +151,7 @@ jobs:


send-notification:
needs: ['build', 'test-emu', 'test-hw']
needs: ['build', 'test-emu']
if: failure() && github.event_name != 'pull_request'
uses: phoenix-rtos/phoenix-rtos-project/.github/workflows/_send_google_chat.yml@master
secrets: inherit

0 comments on commit 88399f5

Please sign in to comment.