mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 13:05:53 +08:00
CI: add a Linux build job
- ci: add build-linux on ubuntu-latest (GCC + Ninja): configure, build, package, no tests - ci: upload dist/JuiceAgent_*.tar.gz as JuiceAgent-linux-x64 (14-day retention) - docs: describe the Windows and Linux jobs in AGENTS.md
This commit is contained in:
1 parent
c710547cc8
commit
4b9d371357
2 files changed
+47
-3
No files matched your search
@@ -93,3 +93,42 @@ jobs:
|
||||
path: dist/JuiceAgent_*.zip
|
||||
if-no-files-found: error
|
||||
retention-days: 14
|
||||
|
||||
build-linux:
|
||||
name: Build (Linux, GCC)
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install build tools
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y --no-install-recommends \
|
||||
build-essential cmake ninja-build
|
||||
|
||||
- name: Configure
|
||||
run: |
|
||||
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
cmake --build build
|
||||
|
||||
echo "compiler: $(command -v g++)"
|
||||
echo "target: $(gcc -dumpmachine)"
|
||||
|
||||
echo "--- build/bin ---"
|
||||
ls -1 build/bin
|
||||
|
||||
- name: Package release tarball
|
||||
run: ./script/package.sh
|
||||
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: JuiceAgent-linux-x64
|
||||
path: dist/JuiceAgent_*.tar.gz
|
||||
if-no-files-found: error
|
||||
retention-days: 14
|
||||
@@ -204,9 +204,14 @@ Tracked text files are **LF in the index, CRLF in the working tree** (no
|
||||
|
||||
## CI
|
||||
|
||||
`.github/workflows/ci.yml` runs on `windows-latest`: JDK 25 (Temurin) +
|
||||
MinGW-w64 (MSYS2) + Ninja, then `configure -> build -> tests -> package`, and
|
||||
uploads `dist/JuiceAgent_*.zip` as an artifact (14-day retention).
|
||||
`.github/workflows/ci.yml` has two jobs:
|
||||
|
||||
- `build-and-test` on `windows-latest`: JDK 25 (Temurin) + MinGW-w64 (MSYS2) +
|
||||
Ninja, then `configure -> build -> tests -> package`, uploading
|
||||
`dist/JuiceAgent_*.zip` as an artifact (14-day retention).
|
||||
- `build-linux` on `ubuntu-latest`: GCC + Ninja, then
|
||||
`configure -> build -> package` only — the integration tests are Windows-only —
|
||||
uploading `dist/JuiceAgent_*.tar.gz`.
|
||||
|
||||
CI-specific notes:
|
||||
|
||||
|
||||
Reference in new issue
Block a user