-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from theavege/add/github-actions
add github-actions
- Loading branch information
Showing
12 changed files
with
85 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Submodule fp-telegram
added at
c39205