From 8126ebc2ea9e9ef75ce11642d6e296be0ee94fa8 Mon Sep 17 00:00:00 2001 From: Zim Kalinowski Date: Tue, 28 Feb 2023 23:25:14 +0100 Subject: [PATCH] adding qemu workflow --- .github/workflows/manual.yml | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index 47f24e11ff..13e0feb35f 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -1,6 +1,6 @@ # This is a basic workflow that is manually triggered -name: Manual workflow +name: Build and Run QEMU Tests # Controls when the action will run. Workflow runs when manually triggered using the UI # or API. @@ -16,15 +16,24 @@ on: # Input has to be provided for the workflow to run required: true -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "greet" - greet: - # The type of runner that the job will run on - runs-on: ubuntu-latest +#on: +# pull_request: +# types: [opened, reopened, synchronize] - # Steps represent a sequence of tasks that will be executed as part of the job +jobs: + container: + runs-on: ubuntu-latest + container: + image: zimkal/qemu2 + options: --user root steps: - # Runs a single command using the runners shell - - name: Send greeting - run: echo "Hello ${{ github.event.inputs.name }}" + - name: Checkout + uses: actions/checkout@v2 + with: + submodules: recursive + - run: | + . /opt/esp/idf/export.sh + python3 /opt/esp/idf/tools/ci/ci_build_apps.py . --target esp32 -m qemu -vv --pytest-apps + pytest --target esp32 -m qemu --embedded-services idf,qemu --build-dir=build_esp32_default + name: Run in container + \ No newline at end of file