CI: switch push workflow to simple script
This commit is contained in:
parent
0eb84acc4b
commit
7b5a2ad68c
6
.github/workflows/push.yml
vendored
6
.github/workflows/push.yml
vendored
@ -4,7 +4,6 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- calamares
|
- calamares
|
||||||
- 3.2.x-stable
|
|
||||||
pull_request:
|
pull_request:
|
||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
@ -20,6 +19,7 @@ env:
|
|||||||
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
|
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
|
||||||
-DWITH_PYTHONQT=OFF
|
-DWITH_PYTHONQT=OFF
|
||||||
-DCMAKE_BUILD_TYPE=Debug
|
-DCMAKE_BUILD_TYPE=Debug
|
||||||
|
GIT_HASH: ${{ github.event.head_commit.id }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -34,5 +34,5 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: ./ci/deps-neon.sh
|
run: ./ci/deps-neon.sh
|
||||||
- name: "build"
|
- name: "build"
|
||||||
id: build
|
shell: bash
|
||||||
uses: calamares/actions/generic-build@v4
|
run: ./ci/build.sh
|
||||||
|
20
ci/build.sh
Executable file
20
ci/build.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#! /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 "::"
|
Loading…
Reference in New Issue
Block a user