Release Version #8
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
name: Release Version | |
on: | |
workflow_dispatch: | |
# push: | |
# branches: [ "notpresent" ] | |
# tags: | |
# - 'v*.*.*' | |
jobs: | |
windows-64: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: [ windows-2019 ] | |
lazarus-versions: [ 3.6 ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Config Base Environment # 配置基础环境 | |
run: | | |
git config --global --add safe.directory ./ | |
git fetch | |
mkdir D:/bins | |
mv ./.github/shell D:/shell | |
shell: bash | |
- name: Install Lazarus Environment # Install Lazarus | |
uses: energye/[email protected] | |
with: | |
lazarus-version: ${{ matrix.lazarus-versions }} | |
with-cache: true | |
- name: Build Dynamic library LCL (main) | |
run: | | |
git clean -xdf | |
D:/shell/add-package.bat | |
lazbuild.exe -B --bm=Win64 "src/liblcl.lpi" | |
7z a D:/bins/liblcl.Windows64.zip $HOME/golcl/liblcl.dll | |
shell: bash | |
- name: Build Dynamic library LCL (109.1.18) | |
run: | | |
git clean -xdf | |
git checkout origin/109.1.18 | |
D:/shell/add-package.bat | |
lazbuild.exe -B --bm=Win64 "src/liblcl.lpi" | |
7z a D:/bins/liblcl-109.Windows64.zip $HOME/golcl/liblcl.dll | |
shell: bash | |
- name: Build Dynamic library LCL (101.0.18) | |
run: | | |
git clean -xdf | |
git checkout origin/101.0.18 | |
D:/shell/add-package.bat | |
lazbuild.exe -B --bm=Win64 "src/liblcl.lpi" | |
7z a D:/bins/liblcl-101.Windows64.zip $HOME/golcl/liblcl.dll | |
shell: bash | |
- name: Build Dynamic library LCL (89.0.18) | |
run: | | |
git clean -xdf | |
git checkout origin/Flash-89.0.18 | |
D:/shell/add-package.bat | |
lazbuild.exe -B --bm=Win64 "src/liblcl.lpi" | |
7z a D:/bins/liblcl-89.Windows64.zip $HOME/golcl/liblcl.dll | |
shell: bash | |
- name: Build Dynamic library LCL (49.0.2623) | |
run: | | |
git clean -xdf | |
git checkout origin/WindowsXP-49.0.2623 | |
D:/shell/add-package.bat | |
lazbuild.exe -B --bm=Win64 "src/liblcl.lpi" | |
7z a D:/bins/liblcl-49.Windows64.zip $HOME/golcl/liblcl.dll | |
shell: bash | |
- name: Build Dynamic library LCL END | |
run: | | |
ls -l D:/bins | |
shell: bash | |
- name: Release Dynamic library # 版本发布上传liblcl二进制 | |
uses: softprops/[email protected] | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: D:/bins/** | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
windows-32: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: [ windows-2019 ] | |
lazarus-versions: [ 3.6 ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Config Base Environment # 配置基础环境 | |
run: | | |
git config --global --add safe.directory ./ | |
git fetch | |
mkdir D:/bins | |
mv ./.github/shell D:/shell | |
shell: bash | |
- name: Install Lazarus Environment # Install Lazarus | |
uses: energye/[email protected] | |
with: | |
lazarus-version: ${{ matrix.lazarus-versions }} | |
with-cache: true | |
os-arch: i386 | |
- name: Build Dynamic library LCL (main) | |
run: | | |
git clean -xdf | |
D:/shell/add-package.bat | |
lazbuild.exe -B --bm=Win32 "src/liblcl.lpi" | |
7z a D:/bins/liblcl.Windows32.zip $HOME/golcl/liblcl.dll | |
shell: bash | |
- name: Build Dynamic library LCL (109.1.18) | |
run: | | |
git clean -xdf | |
git checkout origin/109.1.18 | |
D:/shell/add-package.bat | |
lazbuild.exe -B --bm=Win32 "src/liblcl.lpi" | |
7z a D:/bins/liblcl-109.Windows32.zip $HOME/golcl/liblcl.dll | |
shell: bash | |
- name: Build Dynamic library LCL (101.0.18) | |
run: | | |
git clean -xdf | |
git checkout origin/101.0.18 | |
D:/shell/add-package.bat | |
lazbuild.exe -B --bm=Win32 "src/liblcl.lpi" | |
7z a D:/bins/liblcl-101.Windows32.zip $HOME/golcl/liblcl.dll | |
shell: bash | |
- name: Build Dynamic library LCL (89.0.18) | |
run: | | |
git clean -xdf | |
git checkout origin/Flash-89.0.18 | |
D:/shell/add-package.bat | |
lazbuild.exe -B --bm=Win32 "src/liblcl.lpi" | |
7z a D:/bins/liblcl-89.Windows32.zip $HOME/golcl/liblcl.dll | |
shell: bash | |
- name: Build Dynamic library LCL (49.0.2623) | |
run: | | |
git clean -xdf | |
git checkout origin/WindowsXP-49.0.2623 | |
D:/shell/add-package.bat | |
lazbuild.exe -B --bm=Win32 "src/liblcl.lpi" | |
7z a D:/bins/liblcl-49.Windows32.zip $HOME/golcl/liblcl.dll | |
shell: bash | |
- name: Build Dynamic library LCL END | |
run: | | |
ls -l D:/bins | |
shell: bash | |
- name: Release Dynamic library # 版本发布上传liblcl二进制 | |
uses: softprops/[email protected] | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: D:/bins/** | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
macos-amd64-arm64: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: [ macos-13 ] | |
lazarus-versions: [ 3.6 ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Config Base Environment # 配置基础环境 | |
run: | | |
git config --global --add safe.directory ./ | |
git fetch | |
mkdir $HOME/bins | |
mv ./.github/shell $HOME/shell | |
chmod +x $HOME/shell/add-package.sh | |
- name: Install Lazarus Environment # Install Lazarus | |
uses: energye/[email protected] | |
with: | |
lazarus-version: ${{ matrix.lazarus-versions }} | |
with-cache: true | |
- name: Lazarus Execution Permissions | |
run: | | |
sudo chown -R ${USER}:admin /Applications/Lazarus | |
ls -la /Applications/Lazarus | |
# main | |
- name: Build Dynamic library LCL (main AMD64) | |
run: | | |
sudo git clean -xdf | |
$HOME/shell/add-package.sh | |
sudo lazbuild -B --bm="MacOS64(cocoa)" --ws=cocoa "src/liblcl.lpi" | |
zip -j $HOME/bins/liblcl.MacOSX64.zip $HOME/golcl/liblcl.dylib | |
sudo rm -rf $HOME/golcl/liblcl.dylib | |
- name: Build Dynamic library LCL (main ARM64) | |
run: | | |
sudo lazbuild -B --bm="MacOS64(cocoa)ARM64" --ws=cocoa "src/liblcl.lpi" | |
zip -j $HOME/bins/liblcl.MacOSARM64.zip $HOME/golcl/liblcl.dylib | |
sudo rm -rf $HOME/golcl/liblcl.dylib | |
# 109 | |
- name: Build Dynamic library LCL (109.1.18 AMD64) | |
run: | | |
sudo git clean -xdf | |
git checkout origin/109.1.18 | |
$HOME/shell/add-package.sh | |
sudo lazbuild -B --bm="MacOS64(cocoa)" --ws=cocoa "src/liblcl.lpi" | |
zip -j $HOME/bins/liblcl-109.MacOSX64.zip $HOME/golcl/liblcl.dylib | |
sudo rm -rf $HOME/golcl/liblcl.dylib | |
- name: Build Dynamic library LCL (109.1.18 ARM64) | |
run: | | |
sudo lazbuild -B --bm="MacOS64(cocoa)ARM64" --ws=cocoa "src/liblcl.lpi" | |
zip -j $HOME/bins/liblcl-109.MacOSARM64.zip $HOME/golcl/liblcl.dylib | |
sudo rm -rf $HOME/golcl/liblcl.dylib | |
# 101 | |
- name: Build Dynamic library LCL (101.0.18 AMD64) | |
run: | | |
sudo git clean -xdf | |
git checkout origin/101.0.18 | |
$HOME/shell/add-package.sh | |
sudo lazbuild -B --bm="MacOS64(cocoa)" --ws=cocoa "src/liblcl.lpi" | |
zip -j $HOME/bins/liblcl-101.MacOSX64.zip $HOME/golcl/liblcl.dylib | |
sudo rm -rf $HOME/golcl/liblcl.dylib | |
- name: Build Dynamic library LCL (101.0.18 ARM64) | |
run: | | |
sudo lazbuild -B --bm="MacOS64(cocoa)ARM64" --ws=cocoa "src/liblcl.lpi" | |
zip -j $HOME/bins/liblcl-101.MacOSARM64.zip $HOME/golcl/liblcl.dylib | |
sudo rm -rf $HOME/golcl/liblcl.dylib | |
# 89 | |
- name: Build Dynamic library LCL (89.0.18 AMD64) | |
run: | | |
sudo git clean -xdf | |
git checkout origin/Flash-89.0.18 | |
$HOME/shell/add-package.sh | |
sudo lazbuild -B --bm="MacOS64(cocoa)" --ws=cocoa "src/liblcl.lpi" | |
zip -j $HOME/bins/liblcl-89.MacOSX64.zip $HOME/golcl/liblcl.dylib | |
sudo rm -rf $HOME/golcl/liblcl.dylib | |
- name: Build Dynamic library LCL (89.0.18 ARM64) | |
run: | | |
sudo lazbuild -B --bm="MacOS64(cocoa)ARM64" --ws=cocoa "src/liblcl.lpi" | |
zip -j $HOME/bins/liblcl-89.MacOSARM64.zip $HOME/golcl/liblcl.dylib | |
sudo rm -rf $HOME/golcl/liblcl.dylib | |
- name: Build Dynamic library LCL END | |
run: | | |
mv $HOME/bins $RUNNER_WORKSPACE/bins | |
ls -l $RUNNER_WORKSPACE/bins | |
- name: Release Dynamic library # 版本发布上传liblcl二进制 | |
uses: softprops/[email protected] | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: "../bins/**" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |