From 74aec1c424038dafa1f68c145f3249cd856bf4e7 Mon Sep 17 00:00:00 2001 From: Brennan Ashton Date: Wed, 2 Sep 2020 13:11:56 -0700 Subject: [PATCH] CI: Move fetch of tags back to source stage now that cache is faster Signed-off-by: Brennan Ashton --- .github/workflows/build.yml | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 220d9e07f6..a9f13b2476 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -89,6 +89,8 @@ jobs: ref: ${{ steps.gittargets.outputs.os_ref }} path: sources/nuttx fetch-depth: 1 + - name: Checkout nuttx repo tags + run: git -C sources/nuttx fetch --tags - name: Checkout apps repo uses: actions/checkout@v2 @@ -168,15 +170,6 @@ jobs: - name: Export NuttX Repo SHA run: echo "::set-env name=nuttx_sha::`git -C sources/nuttx rev-parse HEAD`" - - name: Refresh Git Credentials - uses: actions/checkout@v2 - with: - repository: apache/incubator-nuttx - ref: ${{ env.nuttx_sha }} - path: sources/nuttx - fetch-depth: 1 - - name: Get Tags for NuttX Repo - run: git -C sources/nuttx fetch --tags - name: Run builds uses: ./sources/testing/.github/actions/ci-container env: @@ -224,15 +217,6 @@ jobs: - name: Export NuttX Repo SHA run: echo "::set-env name=nuttx_sha::`git -C sources/nuttx rev-parse HEAD`" - - name: Refresh Git Credentials - uses: actions/checkout@v2 - with: - repository: apache/incubator-nuttx - ref: ${{ env.nuttx_sha }} - path: sources/nuttx - fetch-depth: 1 - - name: Get Tags for NuttX Repo - run: git -C sources/nuttx fetch --tags - name: Run Builds run: | echo "::add-matcher::sources/nuttx/.github/gcc.json"