@@ -25,14 +25,26 @@ jobs:
25
25
if : ${{ github.event.workflow_run.conclusion == 'success' }}
26
26
steps :
27
27
- name : Download image
28
+ id : image
28
29
# yamllint disable-line rule:line-length
29
30
uses : ishworkh/container-image-artifact-download@ccb3671db007622e886a2d7037eb62b119d5ffaf # v2.0.0
30
31
with :
31
32
image : " ${{ env.project-name }}:latest"
32
33
workflow : " build"
33
34
token : ${{ secrets.GH_SL_ACCESS_TOKEN }}
34
35
workflow_run_id : ${{ github.event.workflow_run.id }}
35
-
36
+ - name : Check and remove downloaded artifact
37
+ # yamllint disable rule:line-length
38
+ run : |
39
+ set -xe
40
+ file="/tmp/action_image_artifact_${{ github.event.repository.name }}_latest/${{ github.event.repository.name }}_latest"
41
+ echo "Info for comparing to build artifacts"
42
+ sha256sum "${file}"
43
+ tar -xOf "${file}" manifest.json | jq
44
+ echo "TODO: https://github.com/ishworkh/container-image-artifact-download/issues/7#issuecomment-2904751460"
45
+ rm -rfv "${file}"
46
+ echo "TODO: https://docs.docker.com/engine/security/trust/"
47
+ # yamllint enable rule:line-length
36
48
# yamllint disable-line rule:line-length
37
49
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
38
50
with :
@@ -59,24 +71,26 @@ jobs:
59
71
${{ env.debian_packages }}
60
72
&& sudo apt-get clean -y
61
73
&& echo "https://github.com/Z-Wave-Alliance/z-wave-stack/issues/733"
62
- && mkdir -p z-wave-stack-binaries
74
+ && mkdir -p ${{ runner.temp }}/ z-wave-stack-binaries
63
75
&& tar xfz z-wave-stack-binaries-*-Linux.tar.gz
64
- -C z-wave-stack-binaries
76
+ -C ${{ runner.temp }}/ z-wave-stack-binaries
65
77
&& rm z-wave-stack-binaries-*-Linux.tar.gz
66
78
&& date -u
67
79
68
80
- name : Run
69
81
id : run
82
+ # yamllint disable rule:line-length
70
83
run : |
71
84
set -x
72
85
export ZPC_RUN_MODE="docker"
73
86
export ZPC_COMMAND="docker run ${{ env.project-name }}"
74
87
$ZPC_COMMAND --version
75
88
docker-compose pull
76
89
export ZPC_COMMAND="docker-compose up --abort-on-container-exit"
77
- cd z-wave-stack-binaries/bin && file -E *_x86_REALTIME.elf && cd -
90
+ export z_wave_stack_binaries_bin_dir="${{ runner.temp }}/ z-wave-stack-binaries/bin"
78
91
export ZPC_ARGS="--log.level=d"
79
92
./scripts/tests/z-wave-stack-binaries-test.sh
93
+ # yamllint enable rule:line-length
80
94
continue-on-error : true
81
95
82
96
- name : Propagate run status to commit status
0 commit comments