@@ -37,56 +37,45 @@ concurrency:
3737jobs :
3838 build-cpp-runtime-bindings :
3939 runs-on : ubuntu-22.04
40- strategy :
41- matrix :
42- platform :
43- - {name: 'manylinux228', dockerfile: 'docker/x86_64/manylinux228/Dockerfile', cc: 'gcc', cxx: 'g++', suffix: ''}
4440
4541 steps :
4642 - uses : actions/checkout@v5
4743
4844 - name : Build Docker image
4945 run : |
50- docker build -t svs-${{ matrix.platform.name }} :latest -f ${{ matrix.platform.dockerfile }} .
46+ docker build -t svs-manylinux228 :latest -f docker/x86_64/manylinux228/Dockerfile .
5147
5248 - name : Build libraries in Docker container
5349 run : |
5450 docker run --rm \
5551 -v ${{ github.workspace }}:/workspace \
5652 -w /workspace \
57- -e PLATFORM_NAME=${{ matrix.platform.suffix }} \
58- -e CC=${{ matrix.platform.cc }} \
59- -e CXX=${{ matrix.platform.cxx }} \
60- svs-${{ matrix.platform.name }}:latest \
53+ svs-manylinux228:latest \
6154 /bin/bash -c "chmod +x docker/x86_64/build-cpp-runtime-bindings.sh && ./docker/x86_64/build-cpp-runtime-bindings.sh"
6255
6356 - name : Upload cpp runtime bindings artifacts
6457 uses : actions/upload-artifact@v4
6558 with :
66- name : svs-cpp-runtime-bindings${{ matrix.platform.suffix }}
67- path : svs-cpp-runtime-bindings${{ matrix.platform.suffix }} .tar.gz
59+ name : svs-cpp-runtime-bindings
60+ path : svs-cpp-runtime-bindings.tar.gz
6861 retention-days : 7 # Reduce retention due to size
6962
7063 test :
7164 needs : build-cpp-runtime-bindings
7265 runs-on : ubuntu-22.04
73- strategy :
74- matrix :
75- platform :
76- - {name: 'manylinux228', dockerfile: 'docker/x86_64/manylinux228/Dockerfile', cc: 'gcc', cxx: 'g++', suffix: ''}
7766
7867 steps :
7968 - uses : actions/checkout@v5
8069
8170 - name : Build Docker image
8271 run : |
83- docker build -t svs-${{ matrix.platform.name }} :latest -f ${{ matrix.platform.dockerfile }} .
72+ docker build -t svs-manylinux228 :latest -f docker/x86_64/manylinux228/Dockerfile .
8473
8574 # Need to download for a new job
8675 - name : Download shared libraries
8776 uses : actions/download-artifact@v4
8877 with :
89- name : svs-cpp-runtime-bindings${{ matrix.platform.suffix }}
78+ name : svs-cpp-runtime-bindings
9079 path : runtime_lib
9180
9281 - name : List available artifacts
9988 -v ${{ github.workspace }}:/workspace \
10089 -v ${{ github.workspace }}/runtime_lib:/runtime_lib \
10190 -w /workspace \
102- -e CC=${{ matrix.platform.cc }} \
103- -e CXX=${{ matrix.platform.cxx }} \
104- svs-${{ matrix.platform.name }}:latest \
91+ svs-manylinux228:latest \
10592 /bin/bash -c "chmod +x docker/x86_64/test-cpp-runtime-bindings.sh && ./docker/x86_64/test-cpp-runtime-bindings.sh"
0 commit comments