@@ -3,8 +3,8 @@ name: Continuous Integration
3
3
on : [push, pull_request, workflow_dispatch]
4
4
5
5
env :
6
- # TEST_ALL_DOCKER_IMAGE: 'parsec-service-test-all'
7
- TEST_ALL_DOCKER_IMAGE : ' ghcr.io/parallaxsecond/parsec-service-test-all'
6
+ TEST_ALL_DOCKER_IMAGE : ' parsec-service-test-all'
7
+ # TEST_ALL_DOCKER_IMAGE: 'ghcr.io/parallaxsecond/parsec-service-test-all'
8
8
9
9
jobs :
10
10
build-and-export-test-all-docker :
13
13
# the following condition must evaluate true to execute this job
14
14
# Else it must evaluate false to NOT execute this job
15
15
# Unfortunately, env.TEST_ALL_DOCKER_IMAGE cannot be used here as the `env` context is not recognized at this level.
16
- if : ${{ false }} # env.TEST_ALL_DOCKER_IMAGE == 'parsec-service-test-all'
16
+ if : ${{ true }} # env.TEST_ALL_DOCKER_IMAGE == 'parsec-service-test-all'
17
17
steps :
18
18
- uses : actions/checkout@v3
19
19
- name : Build the docker container
@@ -180,13 +180,21 @@ jobs:
180
180
# Currently only the Mbed Crypto, PKCS 11, and TPM providers are tested as the other ones need to cross-compile other libraries.
181
181
name : Cross-compile Parsec to various targets
182
182
runs-on : ubuntu-latest
183
+ needs : [build-and-export-test-all-docker]
183
184
steps :
184
185
- uses : actions/checkout@v2
186
+ - name : Load Docker
187
+ uses : ./.github/actions/load_docker
188
+ if : ${{ env.TEST_ALL_DOCKER_IMAGE == 'parsec-service-test-all' }}
189
+ with :
190
+ image-name : " ${{ env.TEST_ALL_DOCKER_IMAGE }}"
191
+ image-path : " /tmp"
185
192
- name : Run the container to execute the test script
186
- run :
187
- docker run -v $(pwd):/tmp/parsec -w /tmp/parsec ghcr.io/parallaxsecond/parsec-service-test-cross-compile /tmp/parsec/test/cross-compile.sh
193
+ # run:
194
+ # docker run -v $(pwd):/tmp/parsec -w /tmp/parsec ghcr.io/parallaxsecond/parsec-service-test-cross-compile /tmp/parsec/test/cross-compile.sh
188
195
# When running the container built on the CI
189
- # run: docker run -v $(pwd):/tmp/parsec -w /tmp/parsec -t parsec-service-test-cross-compile /tmp/parsec/test/cross-compile.sh
196
+ run : pushd e2e_tests/docker_image && docker build -t parsec-service-test-cross-compile -f parsec-service-test-cross-compile.Dockerfile . && popd
197
+ run : docker run -v $(pwd):/tmp/parsec -w /tmp/parsec -t parsec-service-test-cross-compile /tmp/parsec/test/cross-compile.sh
190
198
191
199
links :
192
200
name : Check links
0 commit comments