9090 sudo --preserve-env=OPENRESTY_VERSION \
9191 ./ci/${{ matrix.os_name }}_runner.sh do_install
9292
93- - name : Linux launch common services
94- run : |
95- make ci-env-up project_compose_ci=ci/pod/docker-compose.common.yml
96- sudo ./ci/init-common-test-service.sh
97-
9893 - name : Cache images
9994 id : cache-images
10095 uses : actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
@@ -104,65 +99,6 @@ jobs:
10499 path : docker-images-backup
105100 key : ${{ runner.os }}-${{ env.cache-name }}-${{ steps.test_env.outputs.type }}-${{ hashFiles(format('./ci/pod/docker-compose.{0}.yml', steps.test_env.outputs.type )) }}
106101
107- - if : ${{ steps.cache-images.outputs.cache-hit == 'true' }}
108- name : Load saved docker images
109- run : |
110- if [[ -f docker-images-backup/apisix-images.tar ]]; then
111- [[ ${{ steps.test_env.outputs.type }} != first ]] && sudo ./ci/init-${{ steps.test_env.outputs.type }}-test-service.sh before
112- docker load --input docker-images-backup/apisix-images.tar
113- echo "loaded docker images"
114-
115- # preserve storage space
116- rm docker-images-backup/apisix-images.tar
117-
118- make ci-env-up project_compose_ci=ci/pod/docker-compose.${{ steps.test_env.outputs.type }}.yml
119- if [[ ${{ steps.test_env.outputs.type }} != first ]]; then
120- sudo ./ci/init-${{ steps.test_env.outputs.type }}-test-service.sh after
121- fi
122- fi
123- - if : ${{ steps.cache-images.outputs.cache-hit != 'true' }}
124- name : Linux launch services
125- run : |
126- [[ ${{ steps.test_env.outputs.type }} != first ]] && sudo ./ci/init-${{ steps.test_env.outputs.type }}-test-service.sh before
127- [[ ${{ steps.test_env.outputs.type }} == plugin ]] && ./ci/pod/openfunction/build-function-image.sh
128- make ci-env-up project_compose_ci=ci/pod/docker-compose.${{ steps.test_env.outputs.type }}.yml
129- [[ ${{ steps.test_env.outputs.type }} != first ]] && sudo ./ci/init-${{ steps.test_env.outputs.type }}-test-service.sh after
130- echo "Linux launch services, done."
131- - name : Start Dubbo Backend
132- if : matrix.os_name == 'linux_openresty' && (steps.test_env.outputs.type == 'plugin' || steps.test_env.outputs.type == 'last')
133- run : |
134- cur_dir=$(pwd)
135- sudo apt update
136- sudo apt install -y maven openjdk-8-jdk
137- sudo update-java-alternatives --set java-1.8.0-openjdk-amd64
138- export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
139- export PATH=$JAVA_HOME/bin:$PATH
140- cd t/lib/dubbo-backend
141- mvn package
142- cd dubbo-backend-provider/target
143- java \
144- -Djava.net.preferIPv4Stack=true \
145- -jar dubbo-demo-provider.one-jar.jar > /tmp/java.log &
146- cd $cur_dir/t/lib/dubbo-serialization-backend
147- mvn package
148- cd dubbo-serialization-backend-provider/target
149- java \
150- -Djava.net.preferIPv4Stack=true \
151- -jar dubbo-demo-provider.one-jar.jar > /tmp/java2.log &
152-
153- - name : Build xDS library
154- if : steps.test_env.outputs.type == 'last'
155- run : |
156- cd t/xds-library
157- go build -o libxds.so -buildmode=c-shared main.go export.go
158-
159- - name : Build wasm code
160- if : matrix.os_name == 'linux_openresty' && steps.test_env.outputs.type == 'last'
161- run : |
162- export TINYGO_VER=0.20.0
163- wget https://github.com/tinygo-org/tinygo/releases/download/v${TINYGO_VER}/tinygo_${TINYGO_VER}_amd64.deb 2>/dev/null
164- sudo dpkg -i tinygo_${TINYGO_VER}_amd64.deb
165- cd t/wasm && find . -type f -name "*.go" | xargs -Ip tinygo build -o p.wasm -scheduler=none -target=wasi p
166102
167103 - name : Linux Script
168104 env :
0 commit comments