1818
1919jobs :
2020 # CLI builds for v2
21- cli-build :
22- strategy :
23- matrix :
24- include :
25- # macOS builds
26- - host : self-hosted
27- target : aarch64-apple-darwin
28- platform : macos-aarch64
29- - host : macos-15-intel
30- target : x86_64-apple-darwin
31- platform : macos-x86_64
32- # Linux builds
33- - host : ubuntu-22.04
34- target : x86_64-unknown-linux-gnu
35- platform : linux-x86_64
36- # Windows builds
37- - host : windows-latest
38- target : x86_64-pc-windows-msvc
39- platform : windows-x86_64
40- name : CLI - ${{ matrix.platform }}
41- runs-on : ${{ matrix.host }}
42- steps :
43- - name : Checkout repository
44- uses : actions/checkout@v4
45-
46- - name : Setup Rust
47- uses : dtolnay/rust-toolchain@stable
48- with :
49- targets : ${{ matrix.target }}
50-
51- - name : Setup System and Rust
52- uses : ./.github/actions/setup-system
53- with :
54- token : ${{ secrets.GITHUB_TOKEN }}
55- target : ${{ matrix.target }}
56-
57- - name : Install cross-compilation tools (Linux ARM)
58- if : matrix.target == 'aarch64-unknown-linux-gnu'
59- run : |
60- sudo apt-get update
61- sudo apt-get install -y gcc-aarch64-linux-gnu
62-
63- - name : Setup native dependencies
64- run : cargo run -p xtask -- setup
65-
66- - name : Build CLI binaries
67- run : |
68- cargo build --release --bin sd-cli --bin sd-daemon --features heif,ffmpeg --target ${{ matrix.target }}
69- env :
70- # Set linker for cross-compilation
71- CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER : aarch64-linux-gnu-gcc
72-
73- - name : Prepare binaries (Unix)
74- if : runner.os != 'Windows'
75- run : |
76- mkdir -p dist
77- cp target/${{ matrix.target }}/release/sd-cli dist/sd-${{ matrix.platform }}
78- cp target/${{ matrix.target }}/release/sd-daemon dist/sd-daemon-${{ matrix.platform }}
79- chmod +x dist/*
80-
81- - name : Prepare binaries (Windows)
82- if : runner.os == 'Windows'
83- shell : pwsh
84- run : |
85- New-Item -ItemType Directory -Force -Path dist
86- Copy-Item target/${{ matrix.target }}/release/sd-cli.exe dist/sd-${{ matrix.platform }}.exe
87- Copy-Item target/${{ matrix.target }}/release/sd-daemon.exe dist/sd-daemon-${{ matrix.platform }}.exe
88-
89- - name : Generate checksums
90- shell : bash
91- run : |
92- cd dist
93- if [ "$RUNNER_OS" == "Windows" ]; then
94- sha256sum *.exe > checksums-${{ matrix.platform }}.txt
95- else
96- sha256sum * > checksums-${{ matrix.platform }}.txt
97- fi
98-
99- - name : Upload artifacts
100- uses : actions/upload-artifact@v4
101- with :
102- name : cli-${{ matrix.platform }}
103- path : dist/*
21+ # cli-build:
22+ # strategy:
23+ # matrix:
24+ # include:
25+ # # macOS builds
26+ # - host: self-hosted
27+ # target: aarch64-apple-darwin
28+ # platform: macos-aarch64
29+ # - host: macos-15-intel
30+ # target: x86_64-apple-darwin
31+ # platform: macos-x86_64
32+ # # Linux builds
33+ # - host: ubuntu-22.04
34+ # target: x86_64-unknown-linux-gnu
35+ # platform: linux-x86_64
36+ # # Windows builds
37+ # - host: windows-latest
38+ # target: x86_64-pc-windows-msvc
39+ # platform: windows-x86_64
40+ # name: CLI - ${{ matrix.platform }}
41+ # runs-on: ${{ matrix.host }}
42+ # steps:
43+ # - name: Checkout repository
44+ # uses: actions/checkout@v4
45+
46+ # - name: Setup Rust
47+ # uses: dtolnay/rust-toolchain@stable
48+ # with:
49+ # targets: ${{ matrix.target }}
50+
51+ # - name: Setup System and Rust
52+ # uses: ./.github/actions/setup-system
53+ # with:
54+ # token: ${{ secrets.GITHUB_TOKEN }}
55+ # target: ${{ matrix.target }}
56+
57+ # - name: Install cross-compilation tools (Linux ARM)
58+ # if: matrix.target == 'aarch64-unknown-linux-gnu'
59+ # run: |
60+ # sudo apt-get update
61+ # sudo apt-get install -y gcc-aarch64-linux-gnu
62+
63+ # - name: Setup native dependencies
64+ # run: cargo run -p xtask -- setup
65+
66+ # - name: Build CLI binaries
67+ # run: |
68+ # cargo build --release --bin sd-cli --bin sd-daemon --features heif,ffmpeg --target ${{ matrix.target }}
69+ # env:
70+ # # Set linker for cross-compilation
71+ # CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
72+
73+ # - name: Prepare binaries (Unix)
74+ # if: runner.os != 'Windows'
75+ # run: |
76+ # mkdir -p dist
77+ # cp target/${{ matrix.target }}/release/sd-cli dist/sd-${{ matrix.platform }}
78+ # cp target/${{ matrix.target }}/release/sd-daemon dist/sd-daemon-${{ matrix.platform }}
79+ # chmod +x dist/*
80+
81+ # - name: Prepare binaries (Windows)
82+ # if: runner.os == 'Windows'
83+ # shell: pwsh
84+ # run: |
85+ # New-Item -ItemType Directory -Force -Path dist
86+ # Copy-Item target/${{ matrix.target }}/release/sd-cli.exe dist/sd-${{ matrix.platform }}.exe
87+ # Copy-Item target/${{ matrix.target }}/release/sd-daemon.exe dist/sd-daemon-${{ matrix.platform }}.exe
88+
89+ # - name: Generate checksums
90+ # shell: bash
91+ # run: |
92+ # cd dist
93+ # if [ "$RUNNER_OS" == "Windows" ]; then
94+ # sha256sum *.exe > checksums-${{ matrix.platform }}.txt
95+ # else
96+ # sha256sum * > checksums-${{ matrix.platform }}.txt
97+ # fi
98+
99+ # - name: Upload artifacts
100+ # uses: actions/upload-artifact@v4
101+ # with:
102+ # name: cli-${{ matrix.platform }}
103+ # path: dist/*
104104
105105 # V2 Desktop builds
106106 desktop-main :
@@ -234,7 +234,7 @@ jobs:
234234 if : startsWith(github.ref, 'refs/tags/')
235235 runs-on : self-hosted
236236 name : Create Release
237- needs : [cli-build, desktop-main]
237+ needs : [desktop-main]
238238 permissions :
239239 contents : write
240240 steps :
@@ -245,4 +245,10 @@ jobs:
245245 uses : softprops/action-gh-release@v2
246246 with :
247247 draft : true
248- files : " */**"
248+ files : |
249+ cli-*/*
250+ */*.dmg
251+ */*.msi
252+ */*.deb
253+ */*.tar.xz
254+ */*.sig
0 commit comments