From d4a95cdbae0f1f175a107f2f0973385a3ac6e874 Mon Sep 17 00:00:00 2001 From: MasayaKataoka Date: Wed, 8 Jun 2022 01:30:04 +0900 Subject: [PATCH 1/6] add workflow Signed-off-by: MasayaKataoka --- .github/workflows/build.yaml | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..7f9af7e --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,37 @@ +name: build + +on: + schedule: + - cron: 0 0 * * * + pull_request: + workflow_dispatch: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + container: ghcr.io/armmbed/mbed-os-env:master-latest + steps: + - uses: actions/checkout@v3 + - uses: josStorer/get-current-time@v2 + id: current-time + with: + format: YYYYMMDD + - uses: actions/cache@v3 + with: + path: mbed-os + key: mbed-os_chahe-${{ steps.current-time.outputs.formattedTime }} + - uses: actions/cache@v3 + with: + path: cmake_build + key: cmake_build_chahe-${{ steps.current-time.outputs.formattedTime }} + - uses: OUXT-Polaris/build-mbed-app-action@master + with: + target_board: NUCLEO_F767ZI + toolchain: GCC_ARM + - uses: actions/upload-artifact@v3 + with: + name: bin + path: cmake_build/NUCLEO_F767ZI/develop/GCC_ARM/*.bin \ No newline at end of file From 20fcf283181696c7c146185b4da6ffc2998a1d7f Mon Sep 17 00:00:00 2001 From: Masaya Kataoka Date: Wed, 8 Jun 2022 01:36:20 +0900 Subject: [PATCH 2/6] create build.yaml add build test --- .github/workflows/build.yaml | 49 ++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..27982c5 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,49 @@ +name: build + +on: + schedule: + - cron: 0 0 * * * + pull_request: + workflow_dispatch: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + container: ghcr.io/armmbed/mbed-os-env:master-latest + strategy: + fail-fast: false + matrix: + target_board: + - ARCH_MAX + - DISCO_F746NG + - DISCO_F769NI + - DISCO_H747I + - GR_MANGO + - NUCLEO_F429ZI + - NUCLEO_F767ZI + - NUCLEO_H743ZI2 + steps: + - uses: actions/checkout@v3 + - uses: josStorer/get-current-time@v2 + id: current-time + with: + format: YYYYMMDD + - uses: actions/cache@v3 + with: + path: mbed-os + key: mbed-os_chahe-${{ steps.current-time.outputs.formattedTime }} + - uses: actions/cache@v3 + with: + path: cmake_build + key: cmake_build_chahe-${{ steps.current-time.outputs.formattedTime }} + - uses: OUXT-Polaris/build-mbed-app-action@master + with: + target_board: NUCLEO_F767ZI + toolchain: GCC_ARM + - uses: actions/upload-artifact@v3 + with: + name: bin + path: cmake_build/NUCLEO_F767ZI/develop/GCC_ARM/*.bin From aa9720bbcd14489cde16668dc9297ca7bf6e1f0d Mon Sep 17 00:00:00 2001 From: MasayaKataoka Date: Wed, 8 Jun 2022 01:49:43 +0900 Subject: [PATCH 3/6] update cache name Signed-off-by: MasayaKataoka --- .github/workflows/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 14da7ae..08b2705 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -34,11 +34,11 @@ jobs: - uses: actions/cache@v3 with: path: mbed-os - key: mbed-os_chahe-${{ steps.current-time.outputs.formattedTime }} + key: mbed-os_chahe-${{ steps.current-time.outputs.formattedTime }}-${{ matrix.target_board }} - uses: actions/cache@v3 with: path: cmake_build - key: cmake_build_chahe-${{ steps.current-time.outputs.formattedTime }} + key: cmake_build_chahe-${{ steps.current-time.outputs.formattedTime }}-${{ matrix.target_board }} - uses: OUXT-Polaris/build-mbed-app-action@master with: target_board: ${{ matrix.target_board }} From 1b92c4df2f71c600a7bd76fe9a98cb00f247a55f Mon Sep 17 00:00:00 2001 From: MasayaKataoka Date: Wed, 8 Jun 2022 01:58:16 +0900 Subject: [PATCH 4/6] comment out error board Signed-off-by: MasayaKataoka --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 08b2705..73da91f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -20,7 +20,7 @@ jobs: - ARCH_MAX - DISCO_F746NG - DISCO_F769NI - - DISCO_H747I +# - DISCO_H747I comment out because of CI error. - GR_MANGO - NUCLEO_F429ZI - NUCLEO_F767ZI From 61070e26461179340ed1b19fe59adbc233ff9e9f Mon Sep 17 00:00:00 2001 From: MasayaKataoka Date: Wed, 8 Jun 2022 01:58:49 +0900 Subject: [PATCH 5/6] specify artifact name Signed-off-by: MasayaKataoka --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 73da91f..1044539 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -45,5 +45,5 @@ jobs: toolchain: GCC_ARM - uses: actions/upload-artifact@v3 with: - name: bin + name: bin-${{ matrix.target_board }} path: cmake_build/${{ matrix.target_board }}/develop/GCC_ARM/*.bin From cee83eb5704b1ae9cdacac21bdd2d2d18a611f27 Mon Sep 17 00:00:00 2001 From: Masaya Kataoka Date: Sat, 18 Jun 2022 22:04:13 +0900 Subject: [PATCH 6/6] remove unsupported board and change target branch Signed-off-by: Masaya Kataoka --- .github/workflows/build.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 1044539..2c296cc 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -7,7 +7,7 @@ on: workflow_dispatch: push: branches: - - master + - main jobs: build: @@ -20,7 +20,6 @@ jobs: - ARCH_MAX - DISCO_F746NG - DISCO_F769NI -# - DISCO_H747I comment out because of CI error. - GR_MANGO - NUCLEO_F429ZI - NUCLEO_F767ZI