Build #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 3 * * 1' | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
static-build: | |
name: Static build | |
runs-on: ubuntu-latest | |
container: | |
image: centos:centos7 | |
steps: | |
- name: Install git | |
run: | | |
yum -y remove git* | |
yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm | |
yum -y install git | |
- name: Checkout kitinerary repo | |
uses: actions/checkout@v3 | |
with: | |
repository: 'KDE/kitinerary' | |
fetch-depth: 0 | |
path: kitinerary | |
- name: Checkout last kitinerary version tag | |
id: version | |
working-directory: kitinerary | |
run: | | |
export KITINERARY_VERSION=$(git describe --tags --abbrev=0 --match=v*.*.*) | |
echo "KITINERARY_VERSION=$KITINERARY_VERSION" >> "$GITHUB_OUTPUT" | |
git checkout $KITINERARY_VERSION | |
- name: Build | |
working-directory: kitinerary | |
run: | | |
export BUILD_ROOT=/builds | |
export STAGING_ROOT=/builds/staging | |
scripts/setup-centos.sh | |
source /opt/rh/rh-git227/enable | |
source /opt/rh/devtoolset-11/enable | |
scripts/build-openssl.sh | |
scripts/build-iso-codes.sh | |
scripts/build-static-qt.sh | |
scripts/build-cmake-modules.sh | |
scripts/collect-data-files.sh | |
strip /builds/pim/kitinerary/build/bin/kitinerary-extractor | |
env: | |
CI_PROJECT_PATH: pim/kitinerary | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
path: kitinerary-bin | |
- name: Copy artifact | |
run: cp /builds/pim/kitinerary/build/bin/kitinerary-extractor kitinerary-bin/bin/kitinerary-extractor | |
- name: Create pull request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.COMMAND_BOT_PAT }} | |
path: kitinerary-bin | |
commit-message: "fix(deps): Bump kitinerary-extractor to ${{ steps.version.outputs.KITINERARY_VERSION }}" | |
committer: nextcloud-command <[email protected]> | |
author: nextcloud-command <[email protected]> | |
signoff: true | |
branch: "fix/update-kitinerary-extractor-${{ steps.version.outputs.KITINERARY_VERSION }}" | |
title: "fix(deps): Bump kitinerary-extractor to ${{ steps.version.outputs.KITINERARY_VERSION }}" | |
body: | | |
Automated static build |