From f0aa15920cf1ffc5ffef8d5f5c4c2295605795d1 Mon Sep 17 00:00:00 2001 From: Abdoulbari Zakir Date: Tue, 10 Dec 2024 15:05:42 +0100 Subject: [PATCH] tmp --- .github/workflows/build_centos7.yml | 212 ++++++++++++++-------------- 1 file changed, 106 insertions(+), 106 deletions(-) diff --git a/.github/workflows/build_centos7.yml b/.github/workflows/build_centos7.yml index 6d59fb6d4..6cd18d0ab 100644 --- a/.github/workflows/build_centos7.yml +++ b/.github/workflows/build_centos7.yml @@ -161,118 +161,118 @@ jobs: name: user-guide path: ${{ steps.create-user-guide.outputs.pdf-path }} - build_running_image: - runs-on: ubuntu-latest - steps: - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Build and export - uses: docker/build-push-action@v6 - with: - tags: centos:run - file: docker/centos7_test_run - outputs: type=docker,dest=/tmp/centos.tar - - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - name: centos - path: /tmp/centos.tar - - test_assets: - runs-on: ubuntu-latest - needs: [ build, build_running_image ] - steps: - - name: Download build assets - uses: actions/download-artifact@v3 - with: - name: ${{needs.build.outputs.TGZ_NAME}} - - - name: Download image - uses: actions/download-artifact@v4 - with: - name: centos - path: /tmp - - - name: Load image + build_running_image: + runs-on: ubuntu-latest + steps: + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build and export + uses: docker/build-push-action@v6 + with: + tags: centos:run + file: docker/centos7_test_run + outputs: type=docker,dest=/tmp/centos.tar + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: centos + path: /tmp/centos.tar + + test_assets: + runs-on: ubuntu-latest + needs: [ build, build_running_image ] + steps: + - name: Download build assets + uses: actions/download-artifact@v3 + with: + name: ${{needs.build.outputs.TGZ_NAME}} + + - name: Download image + uses: actions/download-artifact@v4 + with: + name: centos + path: /tmp + + - name: Load image + run: | + docker load --input /tmp/centos.tar + + - name: setup + run: | + tar --strip-components=1 -xzf ${{needs.build.outputs.TGZ_NAME}} + + - uses: addnab/docker-run-action@v3 + name: Run tests + with: + image: centos:run + shell: bash + options: -v ${{ github.workspace }}:/work run: | - docker load --input /tmp/centos.tar + export PATH=$PATH:/usr/lib64/openmpi/bin + export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/openmpi/lib + cd /work + ./antares-xpansion-launcher -i examples/SmallTestFiveCandidates --allow-run-as-root - - name: setup + - uses: addnab/docker-run-action@v3 + name: run tests with 2 processes + with: + image: centos:run + shell: bash + options: -v ${{ github.workspace }}:/work run: | - tar --strip-components=1 -xzf ${{needs.build.outputs.TGZ_NAME}} - - - uses: addnab/docker-run-action@v3 - name: Run tests - with: - image: centos:run - shell: bash - options: -v ${{ github.workspace }}:/work - run: | - export PATH=$PATH:/usr/lib64/openmpi/bin - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/openmpi/lib - cd /work - ./antares-xpansion-launcher -i examples/SmallTestFiveCandidates --allow-run-as-root - - - uses: addnab/docker-run-action@v3 - name: run tests with 2 processes - with: - image: centos:run - shell: bash - options: -v ${{ github.workspace }}:/work - run: | - export PATH=$PATH:/usr/lib64/openmpi/bin - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/openmpi/lib - cd /work - ./antares-xpansion-launcher -i examples/SmallTestFiveCandidates -n 2 --allow-run-as-root - - test_single_file_asset: - runs-on: ubuntu-latest - needs: [ build, build_running_image ] - steps: - - name: Download build assets - uses: actions/download-artifact@v3 - with: - name: ${{needs.build.outputs.SINGLE_FILE_NAME}} - - - name: Download image - uses: actions/download-artifact@v4 - with: - name: centos - path: /tmp - - - name: Load image + export PATH=$PATH:/usr/lib64/openmpi/bin + export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/openmpi/lib + cd /work + ./antares-xpansion-launcher -i examples/SmallTestFiveCandidates -n 2 --allow-run-as-root + + test_single_file_asset: + runs-on: ubuntu-latest + needs: [ build, build_running_image ] + steps: + - name: Download build assets + uses: actions/download-artifact@v3 + with: + name: ${{needs.build.outputs.SINGLE_FILE_NAME}} + + - name: Download image + uses: actions/download-artifact@v4 + with: + name: centos + path: /tmp + + - name: Load image + run: | + docker load --input /tmp/centos.tar + + - name: setup + run: | + tar --strip-components=1 -xzf ${{needs.build.outputs.SINGLE_FILE_NAME}} + + - uses: addnab/docker-run-action@v3 + name: Run tests + with: + image: centos:run + shell: bash + options: -v ${{ github.workspace }}:/work run: | - docker load --input /tmp/centos.tar + export PATH=$PATH:/usr/lib64/openmpi/bin + export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/openmpi/lib + cd /work + ./antares-xpansion-launcher -i examples/SmallTestFiveCandidates --allow-run-as-root - - name: setup + - uses: addnab/docker-run-action@v3 + name: run tests with 2 processes + with: + image: centos:run + shell: bash + options: -v ${{ github.workspace }}:/work run: | - tar --strip-components=1 -xzf ${{needs.build.outputs.SINGLE_FILE_NAME}} - - - uses: addnab/docker-run-action@v3 - name: Run tests - with: - image: centos:run - shell: bash - options: -v ${{ github.workspace }}:/work - run: | - export PATH=$PATH:/usr/lib64/openmpi/bin - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/openmpi/lib - cd /work - ./antares-xpansion-launcher -i examples/SmallTestFiveCandidates --allow-run-as-root - - - uses: addnab/docker-run-action@v3 - name: run tests with 2 processes - with: - image: centos:run - shell: bash - options: -v ${{ github.workspace }}:/work - run: | - export PATH=$PATH:/usr/lib64/openmpi/bin - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/openmpi/lib - cd /work - ./antares-xpansion-launcher -i examples/SmallTestFiveCandidates -n 2 --allow-run-as-root + export PATH=$PATH:/usr/lib64/openmpi/bin + export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/openmpi/lib + cd /work + ./antares-xpansion-launcher -i examples/SmallTestFiveCandidates -n 2 --allow-run-as-root release: runs-on: ubuntu-latest