Skip to content

Commit e0c1291

Browse files
committed
U: workflows
1 parent 99fccbb commit e0c1291

File tree

1 file changed

+109
-10
lines changed

1 file changed

+109
-10
lines changed

.github/workflows/release-version.yml

+109-10
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ jobs:
2727
mv ./.github/shell D:/shell
2828
shell: bash
2929

30-
- name: Install Golang Environment # Install Golang
31-
uses: actions/setup-go@v5
32-
with:
33-
go-version: '1.20'
34-
3530
- name: Install Lazarus Environment # Install Lazarus
3631
uses: energye/[email protected]
3732
with:
@@ -115,11 +110,6 @@ jobs:
115110
mv ./.github/shell D:/shell
116111
shell: bash
117112

118-
- name: Install Golang Environment # Install Golang
119-
uses: actions/setup-go@v5
120-
with:
121-
go-version: '1.20'
122-
123113
- name: Install Lazarus Environment # Install Lazarus
124114
uses: energye/[email protected]
125115
with:
@@ -181,5 +171,114 @@ jobs:
181171
if: startsWith(github.ref, 'refs/tags/')
182172
with:
183173
files: D:/bins/**
174+
env:
175+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
176+
177+
macos-amd64-arm64:
178+
runs-on: ${{ matrix.operating-system }}
179+
180+
strategy:
181+
matrix:
182+
operating-system: [ macos-12 ]
183+
lazarus-versions: [ 3.6 ]
184+
185+
steps:
186+
- uses: actions/checkout@v4
187+
188+
- name: Config Base Environment # 配置基础环境
189+
run: |
190+
git config --global --add safe.directory ./
191+
git fetch
192+
mkdir /bins
193+
mv ./.github/shell /shell
194+
chmod +x /shell/add-package.sh
195+
196+
- name: Install Lazarus Environment # Install Lazarus
197+
uses: energye/[email protected]
198+
with:
199+
lazarus-version: ${{ matrix.lazarus-versions }}
200+
with-cache: true
201+
202+
- name: Lazarus Execution Permissions
203+
run: |
204+
sudo chown -R ${USER}:admin /Applications/Lazarus
205+
ls -la /Applications/Lazarus
206+
207+
# main
208+
209+
- name: Build Dynamic library LCL (main AMD64)
210+
run: |
211+
git clean -xdf
212+
/shell/add-package.sh
213+
sudo lazbuild -B --bm="MacOS64(cocoa)" --ws=cocoa "src/liblcl.lpi"
214+
zip -j /bins/liblcl.MacOSX64.zip $HOME/golcl/liblcl.dylib
215+
sudo rm -rf $HOME/golcl/liblcl.dylib
216+
217+
- name: Build Dynamic library LCL (main ARM64)
218+
run: |
219+
sudo lazbuild -B --bm="MacOS64(cocoa)ARM64" --ws=cocoa "src/liblcl.lpi"
220+
zip -j /bins/liblcl.MacOSARM64.zip $HOME/golcl/liblcl.dylib
221+
sudo rm -rf $HOME/golcl/liblcl.dylib
222+
223+
# 109
224+
225+
- name: Build Dynamic library LCL (109.1.18 AMD64)
226+
run: |
227+
git clean -xdf
228+
git checkout origin/109.1.18
229+
/shell/add-package.sh
230+
sudo lazbuild -B --bm="MacOS64(cocoa)" --ws=cocoa "src/liblcl.lpi"
231+
zip -j /bins/liblcl-109.MacOSX64.zip $HOME/golcl/liblcl.dylib
232+
sudo rm -rf $HOME/golcl/liblcl.dylib
233+
234+
- name: Build Dynamic library LCL (109.1.18 ARM64)
235+
run: |
236+
sudo lazbuild -B --bm="MacOS64(cocoa)ARM64" --ws=cocoa "src/liblcl.lpi"
237+
zip -j /bins/liblcl-109.MacOSARM64.zip $HOME/golcl/liblcl.dylib
238+
sudo rm -rf $HOME/golcl/liblcl.dylib
239+
240+
# 101
241+
242+
- name: Build Dynamic library LCL (101.0.18 AMD64)
243+
run: |
244+
git clean -xdf
245+
git checkout origin/101.0.18
246+
/shell/add-package.sh
247+
sudo lazbuild -B --bm="MacOS64(cocoa)" --ws=cocoa "src/liblcl.lpi"
248+
zip -j /bins/liblcl-101.MacOSX64.zip $HOME/golcl/liblcl.dylib
249+
sudo rm -rf $HOME/golcl/liblcl.dylib
250+
251+
- name: Build Dynamic library LCL (101.0.18 ARM64)
252+
run: |
253+
sudo lazbuild -B --bm="MacOS64(cocoa)ARM64" --ws=cocoa "src/liblcl.lpi"
254+
zip -j /bins/liblcl-101.MacOSARM64.zip $HOME/golcl/liblcl.dylib
255+
sudo rm -rf $HOME/golcl/liblcl.dylib
256+
257+
# 89
258+
259+
- name: Build Dynamic library LCL (89.0.18 AMD64)
260+
run: |
261+
git clean -xdf
262+
git checkout origin/Flash-89.0.18
263+
/shell/add-package.sh
264+
sudo lazbuild -B --bm="MacOS64(cocoa)" --ws=cocoa "src/liblcl.lpi"
265+
zip -j /bins/liblcl-89.MacOSX64.zip $HOME/golcl/liblcl.dylib
266+
sudo rm -rf $HOME/golcl/liblcl.dylib
267+
268+
- name: Build Dynamic library LCL (89.0.18 ARM64)
269+
run: |
270+
sudo lazbuild -B --bm="MacOS64(cocoa)ARM64" --ws=cocoa "src/liblcl.lpi"
271+
zip -j /bins/liblcl-89.MacOSARM64.zip $HOME/golcl/liblcl.dylib
272+
sudo rm -rf $HOME/golcl/liblcl.dylib
273+
274+
- name: Build Dynamic library LCL END
275+
run: |
276+
ls -l /bins
277+
278+
- name: Release Dynamic library # 版本发布上传liblcl二进制
279+
uses: softprops/[email protected]
280+
if: startsWith(github.ref, 'refs/tags/')
281+
with:
282+
files: "/bins/**"
184283
env:
185284
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)