CI: migrate opensuse CI to ci/ scripts

This commit is contained in:
Adriaan de Groot 2023-09-28 22:04:07 +02:00
parent aef757cc20
commit 675d17fe59
3 changed files with 47 additions and 61 deletions

View File

@ -27,8 +27,7 @@ jobs:
uses: calamares/actions/generic-checkout@v5
- name: "install dependencies"
shell: bash
run: |
./ci/deps-opensuse-qt6.sh
run: ./ci/deps-opensuse-qt6.sh
- name: "build"
id: build
uses: calamares/actions/generic-build@v4

View File

@ -21,67 +21,12 @@ jobs:
steps:
- name: "prepare env"
shell: bash
run: |
zypper --non-interactive up
zypper --non-interactive in git-core jq curl
# From deploycala.py
zypper --non-interactive in \
"autoconf" \
"automake" \
"bison" \
"flex" \
"git" \
"libtool" \
"m4" \
"make" \
"cmake" \
"extra-cmake-modules" \
"gcc-c++"
zypper --non-interactive in \
"libqt5-qtbase-devel" \
"libqt5-linguist-devel" \
"libqt5-qtsvg-devel" \
"libqt5-qtdeclarative-devel" \
"libqt5-qtwebengine-devel" \
"yaml-cpp-devel" \
"libpolkit-qt5-1-devel" \
"libpwquality-devel" \
"parted-devel" \
"python-devel" \
"libboost_headers-devel" \
"libboost_python3-devel"
zypper --non-interactive in \
"kdbusaddons-devel" \
"kservice-devel" \
"kpackage-devel" \
"kparts-devel" \
"kcrash-devel" \
"kpmcore-devel" \
"plasma5-workspace-devel" \
"plasma-framework-devel" \
# Additional dependencies
zypper --non-interactive in \
libicu-devel \
libAppStreamQt-devel \
libatasmart-devel
run: zypper --non-interactive in git-core jq curl
- name: "prepare source"
uses: calamares/actions/generic-checkout@v5
- name: "install dependencies"
shell: bash
run: ./ci/deps-opensuse.sh
- name: "build"
id: build
uses: calamares/actions/generic-build@v4
- name: "notify: ok"
if: ${{ success() && github.repository == 'calamares/calamares' }}
uses: calamares/actions/matrix-notify@v4
with:
token: ${{ secrets.MATRIX_TOKEN }}
room: ${{ secrets.MATRIX_ROOM }}
message: |
OK ${{ github.workflow }} in ${{ github.repository }} ${{ steps.build.outputs.git-summary }}
- name: "notify: fail"
if: ${{ failure() && github.repository == 'calamares/calamares' }}
uses: calamares/actions/matrix-notify@v4
with:
token: ${{ secrets.MATRIX_TOKEN }}
room: ${{ secrets.MATRIX_ROOM }}
message: |
FAIL ${{ github.workflow }} in ${{ github.repository }} ${{ steps.build.outputs.git-summary }}

42
ci/deps-opensuse.sh Executable file
View File

@ -0,0 +1,42 @@
#! /bin/sh
#
# Install dependencies for the nightly-opensuse build
#
zypper --non-interactive up
zypper --non-interactive in git-core jq curl
# From deploycala.py
zypper --non-interactive in \
"bison" \
"flex" \
"git" \
"make" \
"cmake" \
"gcc-c++"
zypper --non-interactive in \
"libqt5-qtbase-devel" \
"libqt5-linguist-devel" \
"libqt5-qtsvg-devel" \
"libqt5-qtdeclarative-devel" \
"libqt5-qtwebengine-devel" \
"yaml-cpp-devel" \
"libpolkit-qt5-1-devel" \
"libpwquality-devel" \
"parted-devel" \
"python-devel" \
"libboost_headers-devel" \
"libboost_python3-devel"
zypper --non-interactive in \
"extra-cmake-modules" \
"kdbusaddons-devel" \
"kservice-devel" \
"kpackage-devel" \
"kparts-devel" \
"kcrash-devel" \
"kpmcore-devel" \
"plasma5-workspace-devel" \
"plasma-framework-devel"
# Additional dependencies
zypper --non-interactive in \
libicu-devel \
libAppStreamQt-devel \
libatasmart-devel