File tree Expand file tree Collapse file tree 6 files changed +92
-0
lines changed Expand file tree Collapse file tree 6 files changed +92
-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
+ -dmse_dynpo
15
+ -dclass_bridge
16
+ -dBGRABITMAP_USE_MSEGUI
17
+ -B
18
+ )
19
+ declare -i exitCode=0
20
+ while read -r; do
21
+ if ! [[ ${REPLY} =~ /use/ ]]; then
22
+ mapfile -t < <(
23
+ if [[ -f " ${REPLY% .* } .pas" ]]; then
24
+ if (fpc " ${OPS[@]} " -B " ${REPLY% .* } .pas" ); then
25
+ printf ' SUCCES\t\x1b[32m%s\x1b[0m\n' " ${REPLY} " >&2
26
+ printf ' exitCode:0\n'
27
+ else
28
+ printf ' ERROR\t\x1b[31m%s\x1b[0m\n' " ${REPLY} " >&2
29
+ printf ' exitCode:1\n'
30
+ fi |
31
+ grep --extended-regexp ' (Error:|Fatal:|Linking|exitCode)'
32
+ fi
33
+ )
34
+ if (( ${# MAPFILE[@]} )) && (( ${MAPFILE[-1]##*: } )) ; then
35
+ exitCode+=${MAPFILE[-1]##*: }
36
+ fi
37
+ printf ' %s\n' " ${MAPFILE[@]} "
38
+ fi
39
+ done < <( find ' .' -type ' f' -name ' *.prj' )
40
+ 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/mseide-msegui "]
2
+ path = use/mseide-msegui
3
+ url = git@github.com:mse-org/mseide-msegui.git
4
+ [submodule "use/bgrabitmap "]
5
+ path = use/bgrabitmap
6
+ url = git@github.com:bgrabitmap/bgrabitmap.git
You can’t perform that action at this time.
0 commit comments