Skip to content

Commit c2a3cc1

Browse files
committed
U: workflows
1 parent 2ee9faf commit c2a3cc1

12 files changed

+121
-24
lines changed
File renamed without changes.

.github/shell/add-package.bat

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
echo "Add Dependency Package"
2+
3+
lazbuild.exe --add-package-link ./src/3rd-party/richmemo/richmemopackage.lpk
4+
lazbuild.exe ./src/3rd-party/richmemo/richmemopackage.lpk
5+
lazbuild.exe --add-package ./src/3rd-party/richmemo/ide/richmemo_design.lpk
6+
lazbuild.exe ./src/3rd-party/richmemo/ide/richmemo_design.lpk
7+
8+
lazbuild.exe --add-package ./src/3rd-party/ATFlatControls/atflatcontrols/atflatcontrols_package.lpk
9+
lazbuild.exe ./src/3rd-party/ATFlatControls/atflatcontrols/atflatcontrols_package.lpk
10+
11+
lazbuild.exe --add-package-link ./src/3rd-party/DCPcrypt/dcpcrypt.lpk
12+
lazbuild.exe ./src/3rd-party/DCPcrypt/dcpcrypt.lpk
13+
lazbuild.exe --add-package ./src/3rd-party/DCPcrypt/dcpcrypt_laz.lpk
14+
lazbuild.exe ./src/3rd-party/DCPcrypt/dcpcrypt_laz.lpk
15+
16+
lazbuild.exe --add-package ./src/3rd-party/CEF4Delphi/packages/cef4delphi_lazarus.lpk
17+
lazbuild.exe ./src/3rd-party/CEF4Delphi/packages/cef4delphi_lazarus.lpk
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

.github/workflows/build-dev.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: build-dev
22

33
on:
4-
push:
5-
branches: [ "notpresent" ]
4+
workflow_dispatch:
5+
# push:
6+
# branches: [ "main" ]
67
# tags:
78
# - 'v*.*.*'
89

.github/workflows/build-linux-docker-i386.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Build Linux docker i386
22

33
on:
44
workflow_dispatch:
5-
push:
6-
tags:
7-
- 'v*.*.*'
5+
# push:
6+
# tags:
7+
# - 'v*.*.*'
88

99
jobs:
1010
linux-i386:

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: build
33
on:
44
push:
55
# branches: [ "notpresent" ]
6-
tags:
7-
- 'v*.*.*'
6+
# tags:
7+
# - 'v*.*.*'
88

99
jobs:
1010
# windows 64

.github/workflows/release-version.yml

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: Release Version
2+
3+
on:
4+
workflow_dispatch:
5+
# push:
6+
# branches: [ "notpresent" ]
7+
# tags:
8+
# - 'v*.*.*'
9+
10+
jobs:
11+
windows-64:
12+
runs-on: ${{ matrix.operating-system }}
13+
14+
strategy:
15+
matrix:
16+
operating-system: [ windows-2019 ]
17+
lazarus-versions: [ 3.6 ]
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Config Base Environment # 配置基础环境
23+
run: |
24+
mkdir D:/bins
25+
git config --global --add safe.directory .\
26+
git fetch
27+
shell: bash # git bash
28+
29+
- name: Install Golang Environment # Install Golang
30+
uses: actions/setup-go@v5
31+
with:
32+
go-version: '1.20'
33+
34+
- name: Install Lazarus Environment # Install Lazarus
35+
uses: energye/[email protected]
36+
with:
37+
lazarus-version: ${{ matrix.lazarus-versions }}
38+
with-cache: true
39+
40+
- name: Build Dynamic library LCL (main)
41+
run: |
42+
git clean -xdf
43+
./.github/shell/add-package.bat
44+
lazbuild.exe -B --bm=Win64 "src/liblcl.lpi"
45+
7z a D:/bins/liblcl.Windows64.zip $HOME/golcl/liblcl.dll
46+
shell: bash # git bash
47+
48+
- name: Build Dynamic library LCL (109.1.18)
49+
run: |
50+
git clean -xdf
51+
git checkout origin/109.1.18
52+
./.github/shell/add-package.bat
53+
lazbuild.exe -B --bm=Win64 "src/liblcl.lpi"
54+
7z a D:/bins/liblcl-109.Windows64.zip $HOME/golcl/liblcl.dll
55+
shell: bash # git bash
56+
57+
- name: Build Dynamic library LCL (101.0.18)
58+
run: |
59+
git clean -xdf
60+
git checkout origin/101.0.18
61+
./.github/shell/add-package.bat
62+
lazbuild.exe -B --bm=Win64 "src/liblcl.lpi"
63+
7z a D:/bins/liblcl-101.Windows64.zip $HOME/golcl/liblcl.dll
64+
shell: bash # git bash
65+
66+
- name: Build Dynamic library LCL (89.0.18)
67+
run: |
68+
git clean -xdf
69+
git checkout origin/Flash-89.0.18
70+
./.github/shell/add-package.bat
71+
lazbuild.exe -B --bm=Win64 "src/liblcl.lpi"
72+
7z a D:/bins/liblcl-89.Windows64.zip $HOME/golcl/liblcl.dll
73+
shell: bash # git bash
74+
75+
- name: Build Dynamic library LCL (49.0.2623)
76+
run: |
77+
git clean -xdf
78+
git checkout origin/WindowsXP-49.0.2623
79+
./.github/shell/add-package.bat
80+
lazbuild.exe -B --bm=Win64 "src/liblcl.lpi"
81+
7z a D:/bins/liblcl-49.Windows64.zip $HOME/golcl/liblcl.dll
82+
shell: bash # git bash
83+
84+
- name: Build Dynamic library LCL END
85+
run: |
86+
ll D:/bins
87+
shell: bash # git bash
88+
89+
- name: Release Dynamic library # 版本发布上传liblcl二进制
90+
uses: softprops/[email protected]
91+
if: startsWith(github.ref, 'refs/tags/')
92+
with:
93+
files: D:/bins/**
94+
env:
95+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
96+

shell/add-package.bat

-17
This file was deleted.

0 commit comments

Comments
 (0)