Skip to content
Snippets Groups Projects
Commit 7b5a2ad6 authored by Adriaan de Groot's avatar Adriaan de Groot
Browse files

CI: switch push workflow to simple script

parent 0eb84acc
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,6 @@ on:
push:
branches:
- calamares
- 3.2.x-stable
pull_request:
types:
- opened
......@@ -20,6 +19,7 @@ env:
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
-DWITH_PYTHONQT=OFF
-DCMAKE_BUILD_TYPE=Debug
GIT_HASH: ${{ github.event.head_commit.id }}
jobs:
build:
......@@ -34,5 +34,5 @@ jobs:
shell: bash
run: ./ci/deps-neon.sh
- name: "build"
id: build
uses: calamares/actions/generic-build@v4
shell: bash
run: ./ci/build.sh
#! /bin/sh
#
# Generic build (driven by environment variables)
#
# Sanity check
test -n "$BUILDDIR" || { echo "! \$BUILDDIR not set" ; exit 1 ; }
mkdir -p "$BUILDDIR"
test -f "$SRCDIR/CMakeLists.txt" || { echo "! Missing $SRCDIR/CMakeLists.txt" ; exit 1 ; }
BUILD_MESSAGE="No commit info"
test -n "$GIT_HASH" && BUILD_MESSAGE=$( git log -1 --abbrev-commit --pretty=oneline --no-decorate "$GIT_HASH" )
echo "::" ; echo ":: $BUILD_MESSAGE" ; echo "::"
cmake -S "$SRCDIR" -B "$BUILDDIR" $CMAKE_ARGS || exit 1
make -C "$BUILDDIR" -j2 VERBOSE=1 || exit 1
make -C "$BUILDDIR" install VERBOSE=1 || exit 1
echo "::" ; echo ":: $BUILD_MESSAGE" ; echo "::"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment