File tree Expand file tree Collapse file tree 6 files changed +88
-0
lines changed
Expand file tree Collapse file tree 6 files changed +88
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ version : 2
3+ updates :
4+ - package-ecosystem : " github-actions"
5+ directory : " /"
6+ schedule :
7+ interval : " monthly"
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -euo pipefail
3+ if [[ -f ' /etc/os-release' ]]; then
4+ source ' /etc/os-release'
5+ fi
6+ case ${ID:? } in
7+ debian | ubuntu) sudo bash -c '
8+ apt-get update; apt-get -y install lazarus
9+ ' > /dev/null ;;
10+ esac
11+ declare -ar OPS=(
12+ -Fuuse/mseide-msegui/lib/common/{* ,kernel/linux}
13+ -Fuuse/bgrabitmap/bgrabitmap
14+ )
15+ declare -i exitCode=0
16+ while read -r; do
17+ if ! [[ ${REPLY} =~ /use/ ]]; then
18+ mapfile -t < <(
19+ if [[ -f " ${REPLY% .* } .pas" ]]; then
20+ if (fpc " ${OPS[@]} " -B " ${REPLY% .* } .pas" ); then
21+ printf ' SUCCES\t\x1b[32m%s\x1b[0m\n' " ${REPLY} " >&2
22+ printf ' exitCode:0\n'
23+ else
24+ printf ' ERROR\t\x1b[31m%s\x1b[0m\n' " ${REPLY} " >&2
25+ printf ' exitCode:1\n'
26+ fi |
27+ grep --extended-regexp ' (Error:|Fatal:|Linking|exitCode)'
28+ fi
29+ )
30+ if (( ${# MAPFILE[@]} )) && (( ${MAPFILE[-1]##*: } )) ; then
31+ exitCode+=${MAPFILE[-1]##*: }
32+ fi
33+ printf ' %s\n' " ${MAPFILE[@]} "
34+ fi
35+ done < <( find ' .' -type ' f' -name ' *.prj' )
36+ exit " ${exitCode} "
Original file line number Diff line number Diff line change 1+ ---
2+ name : Make
3+
4+ on :
5+ schedule :
6+ - cron : ' 0 0 1 * *'
7+ push :
8+ branches :
9+ - " **"
10+ pull_request :
11+ branches :
12+ - master
13+ - main
14+
15+ concurrency :
16+ group : ${{ github.workflow }}-${{ github.ref }}
17+ cancel-in-progress : true
18+
19+ jobs :
20+ build :
21+ runs-on : ${{ matrix.os }}
22+ timeout-minutes : 120
23+ strategy :
24+ matrix :
25+ os :
26+ - ubuntu-latest
27+
28+ steps :
29+ - name : Checkout
30+ uses : actions/checkout@v4
31+ with :
32+ submodules : true
33+
34+ - name : Build on Linux
35+ if : runner.os == 'Linux'
36+ shell : bash
37+ run : bash .github/workflows/make.sh
Original file line number Diff line number Diff line change 1+ [submodule "use/bgrabitmap "]
2+ path = use/bgrabitmap
3+ url = git@github.com:bgrabitmap/bgrabitmap.git
4+ [submodule "use/mseide-msegui "]
5+ path = use/mseide-msegui
6+ url = git@github.com:mse-org/mseide-msegui.git
You can’t perform that action at this time.
0 commit comments