Compare commits
4
Commits
42f01addca
..
v2.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
56d8516427 | ||
|
|
94ad3f9461 | ||
|
|
26a4509429 | ||
|
|
80ae42088f |
@@ -1,42 +0,0 @@
|
|||||||
name: Release Linux Binaries
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- 'v*'
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
tag:
|
|
||||||
description: 'Release tag to publish assets to (default: v2.0.0)'
|
|
||||||
required: false
|
|
||||||
default: 'v2.0.0'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
release-linux:
|
|
||||||
name: Build & Release Linux Binaries
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout Code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install Python and Build Dependencies
|
|
||||||
run: |
|
|
||||||
if command -v apt-get >/dev/null 2>&1; then
|
|
||||||
apt-get update -y
|
|
||||||
apt-get install -y python3 python3-pip python3-venv binutils zip
|
|
||||||
fi
|
|
||||||
python3 -m pip install --upgrade pip --break-system-packages || python3 -m pip install --upgrade pip || true
|
|
||||||
pip3 install pyinstaller -r compilation/requirements.txt --break-system-packages || pip3 install pyinstaller -r compilation/requirements.txt
|
|
||||||
|
|
||||||
- name: Compile Standalone Linux Binaries
|
|
||||||
run: |
|
|
||||||
python3 compilation/package_dist.py --target linux
|
|
||||||
|
|
||||||
- name: Publish Linux Release Assets
|
|
||||||
env:
|
|
||||||
GITEA_TOKEN: ${{ secrets.TAG_TOKEN || github.token }}
|
|
||||||
GITEA_SERVER_URL: ${{ github.server_url }}
|
|
||||||
GITEA_REPOSITORY: ${{ github.repository }}
|
|
||||||
GITEA_REF_NAME: ${{ inputs.tag || github.event.release.tag_name || github.ref_name }}
|
|
||||||
run: |
|
|
||||||
python3 compilation/upload_release.py --skip-build
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
name: Release Windows Binaries & Installers
|
name: Release Binaries & Installers
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -12,6 +12,35 @@ on:
|
|||||||
default: 'v2.0.0'
|
default: 'v2.0.0'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
release-linux:
|
||||||
|
name: Build & Release Linux Binaries
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install Python and Build Dependencies
|
||||||
|
run: |
|
||||||
|
if command -v apt-get >/dev/null 2>&1; then
|
||||||
|
apt-get update -y
|
||||||
|
apt-get install -y python3 python3-pip python3-venv binutils zip
|
||||||
|
fi
|
||||||
|
python3 -m pip install --upgrade pip --break-system-packages || python3 -m pip install --upgrade pip || true
|
||||||
|
pip3 install pyinstaller -r compilation/requirements.txt --break-system-packages || pip3 install pyinstaller -r compilation/requirements.txt
|
||||||
|
|
||||||
|
- name: Compile Standalone Linux Binaries
|
||||||
|
run: |
|
||||||
|
python3 compilation/package_dist.py --target linux
|
||||||
|
|
||||||
|
- name: Publish Linux Release Assets
|
||||||
|
env:
|
||||||
|
GITEA_TOKEN: ${{ secrets.TAG_TOKEN || github.token }}
|
||||||
|
GITEA_SERVER_URL: ${{ github.server_url }}
|
||||||
|
GITEA_REPOSITORY: ${{ github.repository }}
|
||||||
|
GITEA_REF_NAME: ${{ inputs.tag || github.event.release.tag_name || github.ref_name }}
|
||||||
|
run: |
|
||||||
|
python3 compilation/upload_release.py --skip-build
|
||||||
|
|
||||||
release-windows:
|
release-windows:
|
||||||
name: Build & Release Windows Binaries & Installers
|
name: Build & Release Windows Binaries & Installers
|
||||||
# Note: Requires a registered Gitea Act Runner with label 'windows-latest'
|
# Note: Requires a registered Gitea Act Runner with label 'windows-latest'
|
||||||
@@ -263,9 +263,8 @@ LOGAR provides production-grade installation scripts and installer builders for
|
|||||||
LOGAR/
|
LOGAR/
|
||||||
├── .gitea/
|
├── .gitea/
|
||||||
│ └── workflows/
|
│ └── workflows/
|
||||||
│ ├── ci.yml # CI pipeline: syntax, 22 unit tests & mTLS pipeline test
|
│ ├── ci.yml # CI pipeline: syntax, 25 unit tests & mTLS pipeline test
|
||||||
│ ├── release-linux.yml # Linux release workflow (compiles binaries & checksums)
|
│ └── release.yml # Consolidated release workflow (Linux binaries & Windows installers)
|
||||||
│ └── release-windows.yml # Windows release workflow (compiles .exe & Inno Setup installers)
|
|
||||||
├── compilation/ # Packaging, installers, and release automation
|
├── compilation/ # Packaging, installers, and release automation
|
||||||
│ ├── install_linux_client.sh # Automated Linux client systemd installation script
|
│ ├── install_linux_client.sh # Automated Linux client systemd installation script
|
||||||
│ ├── install_linux_server.sh # Automated Linux server systemd installation script
|
│ ├── install_linux_server.sh # Automated Linux server systemd installation script
|
||||||
@@ -376,12 +375,13 @@ Pushing a release tag automatically triggers the build workflows:
|
|||||||
git tag v2.0.0
|
git tag v2.0.0
|
||||||
git push origin v2.0.0
|
git push origin v2.0.0
|
||||||
```
|
```
|
||||||
- **`release-linux.yml`** (`ubuntu-latest`): Compiles standalone native ELF binaries (`Linux_Client.bin`, `Server.bin`) and checksums.
|
The consolidated workflow **`release.yml`** defines two parallel jobs:
|
||||||
- **`release-windows.yml`** (`windows-latest`): Compiles Windows executables (`Win_Client.exe`, `Server.exe`), builds Inno Setup installers, and publishes checksums (requires self-hosted Windows Act Runner).
|
- **`release-linux`** (`ubuntu-latest`): Compiles standalone native ELF binaries (`Linux_Client.bin`, `Server.bin`) and checksums.
|
||||||
|
- **`release-windows`** (`windows-latest`): Compiles Windows executables (`Win_Client.exe`, `Server.exe`), builds Inno Setup installers, and publishes checksums (requires self-hosted Windows Act Runner).
|
||||||
|
|
||||||
### 2. Manual Workflow Dispatch (Gitea UI)
|
### 2. Manual Workflow Dispatch (Gitea UI)
|
||||||
Workflows can be manually triggered on demand from the Gitea web interface:
|
Workflows can be manually triggered on demand from the Gitea web interface:
|
||||||
1. Navigate to **Actions** $\rightarrow$ **Release Linux Binaries** (`release-linux.yml`).
|
1. Navigate to **Actions** $\rightarrow$ **Release Binaries & Installers** (`release.yml`).
|
||||||
2. Click **Run workflow**, set the release tag (defaults to `v2.0.0`), and run.
|
2. Click **Run workflow**, set the release tag (defaults to `v2.0.0`), and run.
|
||||||
|
|
||||||
### 3. Native Local Windows Build & Direct Release Upload
|
### 3. Native Local Windows Build & Direct Release Upload
|
||||||
|
|||||||
Reference in New Issue
Block a user