forked from openthread/ot-efr32
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
|
@@ -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 }} | ||
|
||
|