Skip to content

openSUSE Tumbleweed #160

openSUSE Tumbleweed

openSUSE Tumbleweed #160

Workflow file for this run

name: openSUSE Tumbleweed
on:
push:
branches: [ master ]
paths-ignore: [ '**.md', '**.png' ]
pull_request:
branches: [ master ]
paths: [ '**/tumbleweed.yml' ]
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
RPM_NAME: kwin4_effect_shapecorners
jobs:
tumbleweed:
# The CMake configure and build commands are platform agnostic and should work equally
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest
container:
image: opensuse/tumbleweed
options: --user root
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Refresh Fedora Packages
run: zypper ref
continue-on-error: true
- name: Install Dependencies
run: |
zypper in -y --no-recommends --force-resolution git cmake gcc-c++ kf6-kconfigwidgets-devel kf6-kcmutils-devel kwin6-devel kf6-kwindowsystem-devel qt6-quick-devel qt6-core-private-devel
zypper in -y --no-recommends --force-resolution rpm-build
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake . -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
# Build your program with the given configuration
run: cmake --build . --config ${{env.BUILD_TYPE}} -j
- name: Package
run: |
cpack -V -G RPM
RPM_FILE=artifacts/${RPM_NAME}_${GITHUB_JOB}.rpm
mkdir artifacts
mv ${RPM_NAME}.rpm ${RPM_FILE}
echo "RPM_FILE=${RPM_FILE}" >> $GITHUB_ENV
- name: Upload Workflow Artifact
uses: actions/[email protected]
with:
name: ${{ env.RPM_NAME }}
path: ${{ env.RPM_FILE }}
compression-level: 0
if-no-files-found: error
- name: Upload Release Asset
if: github.ref == 'refs/heads/master'
uses: nicklasfrahm/scp-action@main
with:
direction: upload
host: ${{ secrets.SOURCEFORGE_HOST }}
username: ${{ secrets.SOURCEFORGE_USERNAME }}
key: ${{ secrets.SOURCEFORGE_KEY }}
fingerprint: ${{ secrets.SOURCEFORGE_HOST_FINGERPRINT }}
source: ${{ env.RPM_FILE }}
target: /home/frs/project/kde-rounded-corners/nightly/tumbleweed/${{ env.RPM_NAME }}_${{ github.job }}.rpm
# - name: Test
# working-directory: ${{github.workspace}}/build
# # Execute tests defined by the CMake configuration.
# # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
# run: ctest -C ${{env.BUILD_TYPE}}