Skip to content

Commit

Permalink
Merge pull request #5 from theavege/add/github-actions
Browse files Browse the repository at this point in the history
add github-actions
  • Loading branch information
Al-Muhandis authored Oct 29, 2024
2 parents 7705cbe + cc7e25b commit 929b897
Show file tree
Hide file tree
Showing 12 changed files with 85 additions and 13 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
33 changes: 33 additions & 0 deletions .github/workflows/make.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Make

on:
push:
branches:
- "**"
pull_request:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 120
strategy:
matrix:
os:
- ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true

- name: Build on Linux
if: runner.os == 'Linux'
shell: bash
run: bash -x make.sh build
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "use/fp-telegram"]
path = use/fp-telegram
url = https://github.com/Al-Muhandis/fp-telegram/
40 changes: 40 additions & 0 deletions make.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/usr/bin/env bash

function priv_clippit
(
cat <<EOF
Usage: bash ${0} [OPTIONS]
Options:
build Build program
EOF
)

function pub_build
(
git submodule update --init --recursive
find 'use' -type 'f' -name '*.lpk' -exec lazbuild --add-package-link {} \;
find 'src' -type 'f' -name '*.lpi' -exec lazbuild --recursive --build-mode=release {} \;
)

function priv_main
(
set -euo pipefail
if ! (which lazbuild); then
source '/etc/os-release'
case ${ID:?} in
debian | ubuntu)
sudo apt-get update
sudo apt-get install -y lazarus
;;
esac
fi
if ((${#})); then
case ${1} in
build) pub_build 1>&2 ;;
esac
else
priv_clippit
fi
)

priv_main "${@}" >/dev/null
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 1 addition & 13 deletions tgshd.lpi → src/tgshd.lpi
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<MajorVersionNr Value="1"/>
<MinorVersionNr Value="2"/>
<RevisionNr Value="2"/>
<BuildNr Value="1"/>
</VersionInfo>
<BuildModes Count="4">
<Item1 Name="Default" Default="True"/>
Expand Down Expand Up @@ -192,17 +193,4 @@
<CustomOptions Value="-dUseCThreads"/>
</Other>
</CompilerOptions>
<Debugging>
<Exceptions Count="3">
<Item1>
<Name Value="EAbort"/>
</Item1>
<Item2>
<Name Value="ECodetoolError"/>
</Item2>
<Item3>
<Name Value="EFOpenError"/>
</Item3>
</Exceptions>
</Debugging>
</CONFIG>
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions use/fp-telegram
Submodule fp-telegram added at c39205

0 comments on commit 929b897

Please sign in to comment.