diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2160b30..d37bf1f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/AGENTS.md b/AGENTS.md index 952b8a3..008e9bb 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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: