Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Dec 10, 2024
1 parent 5116d0f commit f0aa159
Showing 1 changed file with 106 additions and 106 deletions.
212 changes: 106 additions & 106 deletions .github/workflows/build_centos7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f0aa159

Please sign in to comment.