From b50231d44359d23f8ce6ce47b084d8c61aad1beb Mon Sep 17 00:00:00 2001 From: Zim Kalinowski Date: Wed, 1 Mar 2023 06:13:30 +0800 Subject: [PATCH 1/2] Create manual.yml --- .github/workflows/manual.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/manual.yml diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml new file mode 100644 index 0000000000..47f24e11ff --- /dev/null +++ b/.github/workflows/manual.yml @@ -0,0 +1,30 @@ +# This is a basic workflow that is manually triggered + +name: Manual workflow + +# Controls when the action will run. Workflow runs when manually triggered using the UI +# or API. +on: + workflow_dispatch: + # Inputs the workflow accepts. + inputs: + name: + # Friendly description to be shown in the UI instead of 'name' + description: 'Person to greet' + # Default value if no value is explicitly provided + default: 'World' + # 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 + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Runs a single command using the runners shell + - name: Send greeting + run: echo "Hello ${{ github.event.inputs.name }}" From 8126ebc2ea9e9ef75ce11642d6e296be0ee94fa8 Mon Sep 17 00:00:00 2001 From: Zim Kalinowski Date: Tue, 28 Feb 2023 23:25:14 +0100 Subject: [PATCH 2/2] 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