cpack workflow fixes (#64)
- increase timeout - exclude opensuse 15.2 + rocm 5.1 - combined extensions
This commit is contained in:
committed by
GitHub
parent
919dcf5456
commit
ff7151dbf2
@@ -15,9 +15,12 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [15.2, 15.3]
|
os: ["15.2", "15.3"]
|
||||||
rocm-version: [4.5, 5.0, 5.1]
|
rocm-version: ["4.5", "5.0", "5.1"]
|
||||||
extensions: ["--rocm +python", "--core +python"]
|
extensions: ["--rocm +python --core +python"]
|
||||||
|
exclude:
|
||||||
|
- os: "15.2"
|
||||||
|
rocm-version: "5.1"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@@ -32,7 +35,7 @@ jobs:
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
- name: Build Release
|
- name: Build Release
|
||||||
timeout-minutes: 20
|
timeout-minutes: 120
|
||||||
run: |
|
run: |
|
||||||
pushd docker
|
pushd docker
|
||||||
./build-docker-release.sh --distro opensuse --versions ${{ matrix.os }} --rocm-versions ${{ matrix.rocm-version }} -- ${{ matrix.extensions }}
|
./build-docker-release.sh --distro opensuse --versions ${{ matrix.os }} --rocm-versions ${{ matrix.rocm-version }} -- ${{ matrix.extensions }}
|
||||||
@@ -41,7 +44,7 @@ jobs:
|
|||||||
- name: List Files
|
- name: List Files
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
run: |
|
run: |
|
||||||
find . -type f | egrep '\.(sh|deb|rpm)$'
|
find build-release -type f | egrep '\.(sh|deb|rpm)$'
|
||||||
|
|
||||||
- name: STGZ Artifacts
|
- name: STGZ Artifacts
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
@@ -49,66 +52,65 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: opensuse-stgz-installers
|
name: opensuse-stgz-installers
|
||||||
path: |
|
path: |
|
||||||
build-release/stgz/omnitrace-*.sh
|
build-release/stgz/*.sh
|
||||||
|
|
||||||
- name: DEB Artifacts
|
- name: RPM Artifacts
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: opensuse-deb-installers
|
name: opensuse-rpm-installers
|
||||||
path: |
|
path: |
|
||||||
build-release/deb/omnitrace_*.deb
|
build-release/rpm/*.rpm
|
||||||
|
|
||||||
# before testing remove any artifacts of the build
|
# before testing remove any artifacts of the build
|
||||||
- name: Remove Build and Install
|
- name: Remove Build
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
mv build-release/stgz/omnitrace-*.sh ./
|
mv build-release/stgz/*.sh ./
|
||||||
mv build-release/deb/omnitrace_*.deb ./
|
mv build-release/deb/*.rpm ./
|
||||||
rm -rf build-release
|
rm -rf build-release
|
||||||
rm -rf /opt/omnitrace
|
rm -rf /opt/omnitrace
|
||||||
|
|
||||||
- name: STGZ Install
|
- name: Test STGZ Install
|
||||||
timeout-minutes: 10
|
timeout-minutes: 20
|
||||||
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
set -v
|
set -v
|
||||||
mkdir /opt/omnitrace-stgz
|
mkdir /opt/omnitrace-stgz
|
||||||
./omnitrace-*.sh --prefix=/opt/omnitrace-stgz --skip-license --exclude-dir
|
|
||||||
|
|
||||||
- name: List STGZ Install
|
|
||||||
timeout-minutes: 10
|
|
||||||
continue-on-error: true
|
|
||||||
run: |
|
|
||||||
find /opt/omnitrace-stgz
|
|
||||||
|
|
||||||
- name: Test STGZ Install
|
|
||||||
timeout-minutes: 10
|
|
||||||
run: |
|
|
||||||
set -v
|
|
||||||
export PATH=/opt/omnitrace-stgz/bin:${PATH}
|
export PATH=/opt/omnitrace-stgz/bin:${PATH}
|
||||||
export LD_LIBRARY_PATH=/opt/omnitrace-stgz/lib:${LD_LIBRARY_PATH}
|
export LD_LIBRARY_PATH=/opt/omnitrace-stgz/lib:${LD_LIBRARY_PATH}
|
||||||
omnitrace-avail --help
|
for i in omnitrace-*.sh
|
||||||
omnitrace --help
|
do
|
||||||
omnitrace-critical-trace --help
|
echo -e "\n###### Testing ${i}... #####\n"
|
||||||
|
./${i} --prefix=/opt/omnitrace-stgz --skip-license --exclude-dir
|
||||||
|
omnitrace-avail --help
|
||||||
|
omnitrace --help
|
||||||
|
omnitrace-python --help
|
||||||
|
set +e
|
||||||
|
rm -rf /opt/omnitrace-stgz/*
|
||||||
|
set -e
|
||||||
|
done
|
||||||
|
|
||||||
- name: DEB Install
|
- name: Test RPM Install
|
||||||
timeout-minutes: 10
|
timeout-minutes: 20
|
||||||
run: |
|
|
||||||
set -v
|
|
||||||
dpkg --contents ./omnitrace_*.deb
|
|
||||||
dpkg -i ./omnitrace_*.deb
|
|
||||||
|
|
||||||
- name: List DEB Install
|
|
||||||
timeout-minutes: 10
|
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
|
||||||
find /opt/omnitrace
|
|
||||||
|
|
||||||
- name: Test DEB Install
|
|
||||||
timeout-minutes: 10
|
|
||||||
run: |
|
run: |
|
||||||
set -v
|
set -v
|
||||||
export PATH=/opt/omnitrace/bin:${PATH}
|
export PATH=/opt/omnitrace/bin:${PATH}
|
||||||
export LD_LIBRARY_PATH=/opt/omnitrace/lib:${LD_LIBRARY_PATH}
|
export LD_LIBRARY_PATH=/opt/omnitrace/lib:${LD_LIBRARY_PATH}
|
||||||
omnitrace-avail --help
|
sudo apt-get install -y alien fakeroot
|
||||||
omnitrace --help
|
for i in omnitrace-*.rpm
|
||||||
|
do
|
||||||
|
echo -e "\n###### Testing ${i}... #####\n"
|
||||||
|
i=$(fakeroot alien ./${i} | awk '{print $1}')
|
||||||
|
dpkg --contents ./${i}
|
||||||
|
sudo dpkg -i ./${i}
|
||||||
|
omnitrace-avail --help
|
||||||
|
omnitrace --help
|
||||||
|
omnitrace-python --help
|
||||||
|
sudo apt-get remove -y omnitrace
|
||||||
|
set +e
|
||||||
|
rm -rf /opt/omnitrace/*
|
||||||
|
set -e
|
||||||
|
done
|
||||||
|
|||||||
@@ -15,9 +15,9 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [18.04, 20.04]
|
os: ["18.04", "20.04"]
|
||||||
rocm-version: [4.5, 5.0, 5.1]
|
rocm-version: ["4.5", "5.0", "5.1"]
|
||||||
extensions: ["--rocm +python", "--core +python"]
|
extensions: ["--rocm +python --core +python"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@@ -32,7 +32,7 @@ jobs:
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
- name: Build Release
|
- name: Build Release
|
||||||
timeout-minutes: 20
|
timeout-minutes: 120
|
||||||
run: |
|
run: |
|
||||||
pushd docker
|
pushd docker
|
||||||
./build-docker-release.sh --distro ubuntu --versions ${{ matrix.os }} --rocm-versions ${{ matrix.rocm-version }} -- ${{ matrix.extensions }}
|
./build-docker-release.sh --distro ubuntu --versions ${{ matrix.os }} --rocm-versions ${{ matrix.rocm-version }} -- ${{ matrix.extensions }}
|
||||||
@@ -41,7 +41,7 @@ jobs:
|
|||||||
- name: List Files
|
- name: List Files
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
run: |
|
run: |
|
||||||
find . -type f | egrep '\.(sh|deb|rpm)$'
|
find build-release -type f | egrep '\.(sh|deb|rpm)$'
|
||||||
|
|
||||||
- name: STGZ Artifacts
|
- name: STGZ Artifacts
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
@@ -49,7 +49,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: ubuntu-stgz-installers
|
name: ubuntu-stgz-installers
|
||||||
path: |
|
path: |
|
||||||
build-release/stgz/omnitrace-*.sh
|
build-release/stgz/*.sh
|
||||||
|
|
||||||
- name: DEB Artifacts
|
- name: DEB Artifacts
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
@@ -57,58 +57,55 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: ubuntu-deb-installers
|
name: ubuntu-deb-installers
|
||||||
path: |
|
path: |
|
||||||
build-release/deb/omnitrace_*.deb
|
build-release/deb/*.deb
|
||||||
|
|
||||||
# before testing remove any artifacts of the build
|
# before testing remove any artifacts of the build
|
||||||
- name: Remove Build and Install
|
- name: Remove Build
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
mv build-release/stgz/omnitrace-*.sh ./
|
mv build-release/stgz/*.sh ./
|
||||||
mv build-release/deb/omnitrace_*.deb ./
|
mv build-release/deb/*.deb ./
|
||||||
rm -rf build-release
|
rm -rf build-release
|
||||||
rm -rf /opt/omnitrace
|
rm -rf /opt/omnitrace
|
||||||
|
|
||||||
- name: STGZ Install
|
- name: Test STGZ Install
|
||||||
timeout-minutes: 10
|
timeout-minutes: 20
|
||||||
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
set -v
|
set -v
|
||||||
mkdir /opt/omnitrace-stgz
|
mkdir /opt/omnitrace-stgz
|
||||||
./omnitrace-*.sh --prefix=/opt/omnitrace-stgz --skip-license --exclude-dir
|
|
||||||
|
|
||||||
- name: List STGZ Install
|
|
||||||
timeout-minutes: 10
|
|
||||||
continue-on-error: true
|
|
||||||
run: |
|
|
||||||
find /opt/omnitrace-stgz
|
|
||||||
|
|
||||||
- name: Test STGZ Install
|
|
||||||
timeout-minutes: 10
|
|
||||||
run: |
|
|
||||||
set -v
|
|
||||||
export PATH=/opt/omnitrace-stgz/bin:${PATH}
|
export PATH=/opt/omnitrace-stgz/bin:${PATH}
|
||||||
export LD_LIBRARY_PATH=/opt/omnitrace-stgz/lib:${LD_LIBRARY_PATH}
|
export LD_LIBRARY_PATH=/opt/omnitrace-stgz/lib:${LD_LIBRARY_PATH}
|
||||||
omnitrace-avail --help
|
for i in omnitrace-*.sh
|
||||||
omnitrace --help
|
do
|
||||||
omnitrace-critical-trace --help
|
echo -e "\n###### Testing ${i}... #####\n"
|
||||||
|
./${i} --prefix=/opt/omnitrace-stgz --skip-license --exclude-dir
|
||||||
- name: DEB Install
|
omnitrace-avail --help
|
||||||
timeout-minutes: 10
|
omnitrace --help
|
||||||
run: |
|
omnitrace-python --help
|
||||||
set -v
|
set +e
|
||||||
dpkg --contents ./omnitrace_*.deb
|
rm -rf /opt/omnitrace-stgz/*
|
||||||
dpkg -i ./omnitrace_*.deb
|
set -e
|
||||||
|
done
|
||||||
- name: List DEB Install
|
|
||||||
timeout-minutes: 10
|
|
||||||
continue-on-error: true
|
|
||||||
run: |
|
|
||||||
find /opt/omnitrace
|
|
||||||
|
|
||||||
- name: Test DEB Install
|
- name: Test DEB Install
|
||||||
timeout-minutes: 10
|
timeout-minutes: 20
|
||||||
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
set -v
|
set -v
|
||||||
export PATH=/opt/omnitrace/bin:${PATH}
|
export PATH=/opt/omnitrace/bin:${PATH}
|
||||||
export LD_LIBRARY_PATH=/opt/omnitrace/lib:${LD_LIBRARY_PATH}
|
export LD_LIBRARY_PATH=/opt/omnitrace/lib:${LD_LIBRARY_PATH}
|
||||||
omnitrace-avail --help
|
for i in omnitrace_*.deb
|
||||||
omnitrace --help
|
do
|
||||||
|
echo -e "\n###### Testing ${i}... #####\n"
|
||||||
|
dpkg --contents ./${i}
|
||||||
|
sudo dpkg -i ./${i}
|
||||||
|
omnitrace-avail --help
|
||||||
|
omnitrace --help
|
||||||
|
omnitrace-python --help
|
||||||
|
sudo apt-get remove -y omnitrace
|
||||||
|
set +e
|
||||||
|
rm -rf /opt/omnitrace/*
|
||||||
|
set -e
|
||||||
|
done
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ do
|
|||||||
ROCM_RPM=21.40.1/sle/15/amdgpu-install-21.40.1.40501-1.noarch.rpm
|
ROCM_RPM=21.40.1/sle/15/amdgpu-install-21.40.1.40501-1.noarch.rpm
|
||||||
;;
|
;;
|
||||||
4.5 | 4.5.0)
|
4.5 | 4.5.0)
|
||||||
ROCM_RPM=21.40/sle/15/amdgpu-install-21.40.1.40501-1.noarch.rpm
|
ROCM_RPM=21.40/sle/15/amdgpu-install-21.40.40500-1.noarch.rpm
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
send-error "Unsupported combination :: ${DISTRO}-${VERSION} + ROCm ${i}"
|
send-error "Unsupported combination :: ${DISTRO}-${VERSION} + ROCm ${i}"
|
||||||
|
|||||||
Reference in New Issue
Block a user