Skip to content

Commit

Permalink
(debug) disable non-essential stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
lmnotran committed Jun 19, 2024
1 parent 851c579 commit d932123
Showing 1 changed file with 24 additions and 21 deletions.
45 changes: 24 additions & 21 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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/[email protected]
Expand All @@ -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 }}

Expand Down

0 comments on commit d932123

Please sign in to comment.