ci: consolidate CLI build workflow and add static rsync
- Add musl-tools to build-cli.yml for static linking support - Move rsync build from ci.yml into build-cli.yml workflow - Fix SQLite year parameter in both workflows - Remove redundant RSYNC_VERSION env var from ci.yml This consolidates the CLI artifact build process into a single workflow file, making the CI pipeline easier to maintain.
This commit is contained in:
parent
c4b6ae5d0c
commit
e3dad32029
2 changed files with 13 additions and 8 deletions
|
|
@ -33,10 +33,20 @@ jobs:
|
|||
with:
|
||||
version: 0.15.2
|
||||
|
||||
- name: Install musl-tools (for static rsync build)
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y musl-tools
|
||||
|
||||
- name: Fetch SQLite Amalgamation
|
||||
run: |
|
||||
cd cli
|
||||
make build-sqlite SQLITE_VERSION=3480000
|
||||
make build-sqlite SQLITE_VERSION=3480000 SQLITE_YEAR=2025
|
||||
|
||||
- name: Build static rsync
|
||||
run: |
|
||||
cd cli
|
||||
make build-rsync RSYNC_VERSION=3.3.0
|
||||
|
||||
- name: Build Release Binary
|
||||
run: |
|
||||
|
|
@ -66,7 +76,7 @@ jobs:
|
|||
- name: Fetch SQLite Amalgamation
|
||||
run: |
|
||||
cd cli
|
||||
make build-sqlite SQLITE_VERSION=3480000
|
||||
make build-sqlite SQLITE_VERSION=3480000 SQLITE_YEAR=2025
|
||||
|
||||
- name: Build Release Binary
|
||||
run: |
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ permissions:
|
|||
env:
|
||||
GO_VERSION: '1.25.0'
|
||||
ZIG_VERSION: '0.15.2'
|
||||
RSYNC_VERSION: '3.3.0'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
|
@ -95,11 +94,7 @@ jobs:
|
|||
run: |
|
||||
go mod download
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y podman redis-tools build-essential autoconf automake libtool pkg-config musl-tools
|
||||
|
||||
- name: Build pinned rsync from official source (for CLI tests)
|
||||
run: |
|
||||
make -C cli build-rsync RSYNC_VERSION=${{ env.RSYNC_VERSION }}
|
||||
sudo apt-get install -y podman redis-tools build-essential autoconf automake libtool pkg-config
|
||||
|
||||
- name: Verify dependencies
|
||||
run: go mod verify
|
||||
|
|
|
|||
Loading…
Reference in a new issue