CI: another try at notification on build

This commit is contained in:
Adriaan de Groot 2021-02-01 13:52:55 +01:00
parent 3ca770aa63
commit bd6aa58322

View File

@ -27,16 +27,13 @@ jobs:
image: docker://kdeneon/plasma:user image: docker://kdeneon/plasma:user
options: --tmpfs /build:rw --user 0:0 options: --tmpfs /build:rw --user 0:0
steps: steps:
- - name: prepare env
name: prepare env
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get -y install git-core sudo apt-get -y install git-core
- - name: checkout
name: checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- - name: install dependencies
name: install dependencies
run: | run: |
sudo apt-get -y install \ sudo apt-get -y install \
build-essential \ build-essential \
@ -66,27 +63,15 @@ jobs:
qtdeclarative5-dev \ qtdeclarative5-dev \
qttools5-dev \ qttools5-dev \
qttools5-dev-tools qttools5-dev-tools
- - name: prepare build
name: prepare build
run: | run: |
test -n "$BUILDDIR" || { echo "! \$BUILDDIR not set" ; exit 1 ; } test -n "$BUILDDIR" || { echo "! \$BUILDDIR not set" ; exit 1 ; }
mkdir -p $BUILDDIR mkdir -p $BUILDDIR
test -f $SRCDIR/CMakeLists.txt || { echo "! Missing $SRCDIR/CMakeLists.txt" ; exit 1 ; } test -f $SRCDIR/CMakeLists.txt || { echo "! Missing $SRCDIR/CMakeLists.txt" ; exit 1 ; }
- - name: Calamares: cmake
name: cmake
working-directory: ${{ env.BUILDDIR }} working-directory: ${{ env.BUILDDIR }}
run: cmake $CMAKE_ARGS $SRCDIR run: cmake $CMAKE_ARGS $SRCDIR
- - name: Dump steps context
name: make
working-directory: ${{ env.BUILDDIR }}
run: make -j2 VERBOSE=1
-
name: install
working-directory: ${{ env.BUILDDIR }}
run: |
make install VERBOSE=1
-
name: Dump steps context
env: env:
JOBS_CONTEXT: ${{ toJSON(job) }} JOBS_CONTEXT: ${{ toJSON(job) }}
STEPS_CONTEXT: ${{ toJSON(steps) }} STEPS_CONTEXT: ${{ toJSON(steps) }}
@ -94,9 +79,8 @@ jobs:
echo "STEPS" echo "STEPS"
echo "$STEPS_CONTEXT" echo "$STEPS_CONTEXT"
echo "JOB" echo "JOB"
echo "$JOB_CONTEXT" echo "$JOBS_CONTEXT"
- - name: notify
name: notify
uses: rectalogic/notify-irc@v1 uses: rectalogic/notify-irc@v1
if: always() if: always()
with: with:
@ -104,4 +88,15 @@ jobs:
channel: "#calamares" channel: "#calamares"
nickname: gh-notify nickname: gh-notify
message: | message: |
${{ github.actor }} result ${{ steps.install.conclusion }} - ${{ steps.install.outcome }} - ${{ job.status }} RUN ${{ github.run_id }} ${{ github.actor }} $${ github.sha }} on ${{ github.ref }}
result ${{ steps.checkout.conclusion }} - ${{ steps.checkout.outcome }} - ${{ job.status }} RUN ${{ github.run_id }} ${{ github.job_id }}
# Unused while we figure out notifications.
# - name: make
# working-directory: ${{ env.BUILDDIR }}
# run: make -j2 VERBOSE=1
# - name: install
# working-directory: ${{ env.BUILDDIR }}
# run: |
# make install VERBOSE=1
#