From d93212380e3b86de07aa64b56c4f0c2e3b8ee1a8 Mon Sep 17 00:00:00 2001 From: Mason Tran Date: Wed, 19 Jun 2024 14:59:30 -0400 Subject: [PATCH] (debug) disable non-essential stuff --- .github/workflows/docker.yml | 45 +++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 5f171d3f..cba3cb43 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -72,7 +72,7 @@ jobs: with: context: . file: docker/Dockerfile - load: true + # load: true build-args: | - BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') platforms: @@ -84,31 +84,31 @@ jobs: cache-to: type=gha,mode=max outputs: type=oci,dest=${{ env.DOCKER_IMAGE_TAR}} - - name: Container image sanity checks - run: | - # Download container-structure-test - curl -LO https://storage.googleapis.com/container-structure-test/latest/container-structure-test-linux-amd64 \ - && chmod +x container-structure-test-linux-amd64 + # - name: Container image sanity checks + # run: | + # # Download container-structure-test + # curl -LO https://storage.googleapis.com/container-structure-test/latest/container-structure-test-linux-amd64 \ + # && chmod +x container-structure-test-linux-amd64 - # Run tests - ./container-structure-test-linux-amd64 test --config docker/test-ot-efr32-dev.yml --image ${{ env.TEST_TAG }} + # # Run tests + # ./container-structure-test-linux-amd64 test --config docker/test-ot-efr32-dev.yml --image ${{ env.TEST_TAG }} - - name: Create LFS file hash list - run: git -C third_party/silabs/gecko_sdk lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id + # - name: Create LFS file hash list + # run: git -C third_party/silabs/gecko_sdk lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id - - name: Restore gecko_sdk LFS cache - uses: actions/cache@v4 - id: lfs-cache - with: - path: .git/modules/third_party/silabs/gecko_sdk/lfs - key: lfs-${{ hashFiles('.lfs-assets-id') }} + # - name: Restore gecko_sdk LFS cache + # uses: actions/cache@v4 + # id: lfs-cache + # with: + # path: .git/modules/third_party/silabs/gecko_sdk/lfs + # key: lfs-${{ hashFiles('.lfs-assets-id') }} - - name: Git LFS Pull - run: git -C third_party/silabs/gecko_sdk lfs pull + # - name: Git LFS Pull + # run: git -C third_party/silabs/gecko_sdk lfs pull - - name: Test build inside container - run: | - docker run -v ${{ github.workspace }}:/ot-efr32/ --user $(id -u) --rm ${{ env.TEST_TAG }} script/build --skip-silabs-apps brd4151a + # - name: Test build inside container + # run: | + # docker run -v ${{ github.workspace }}:/ot-efr32/ --user $(id -u) --rm ${{ env.TEST_TAG }} script/build --skip-silabs-apps brd4151a - name: Upload docker image uses: actions/upload-artifact@v4.3.3 @@ -135,6 +135,9 @@ jobs: with: name: ${{ env.DOCKER_IMAGE_ARTIFACT_NAME }} + - name: Show downloaded Docker image + run: ls -ahl ${{ github.workspace }} + - name: Load Docker image run: docker load -i ${{ github.workspace }}/${{ env.DOCKER_IMAGE_TAR }}