Skip to content

Commit b3952bc

Browse files
danupsherclaude
andcommitted
Switch to rustls, fix cross-platform CI
- Replace native-tls with rustls for reqwest and tokio-tungstenite (removes OpenSSL system dependency for cross-compilation) - Use cross for Linux aarch64 builds - Set fail-fast: false so all platforms build independently Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d385e1b commit b3952bc

3 files changed

Lines changed: 135 additions & 195 deletions

File tree

.github/workflows/release.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,29 @@ permissions:
1111
jobs:
1212
build:
1313
strategy:
14+
fail-fast: false
1415
matrix:
1516
include:
1617
- target: x86_64-unknown-linux-gnu
1718
os: ubuntu-latest
1819
name: vsbtc-linux-x86_64
20+
cross: false
1921
- target: aarch64-unknown-linux-gnu
2022
os: ubuntu-latest
2123
name: vsbtc-linux-aarch64
24+
cross: true
2225
- target: x86_64-apple-darwin
2326
os: macos-latest
2427
name: vsbtc-macos-x86_64
28+
cross: false
2529
- target: aarch64-apple-darwin
2630
os: macos-latest
2731
name: vsbtc-macos-aarch64
32+
cross: false
2833
- target: x86_64-pc-windows-msvc
2934
os: windows-latest
3035
name: vsbtc-windows-x86_64
36+
cross: false
3137

3238
runs-on: ${{ matrix.os }}
3339

@@ -39,21 +45,22 @@ jobs:
3945
with:
4046
targets: ${{ matrix.target }}
4147

42-
- name: Install Linux cross-compilation deps (aarch64)
43-
if: matrix.target == 'aarch64-unknown-linux-gnu'
44-
run: |
45-
sudo apt-get update
46-
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
47-
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
48-
echo "PKG_CONFIG_SYSROOT_DIR=/usr/aarch64-linux-gnu" >> $GITHUB_ENV
48+
- name: Install cross
49+
if: matrix.cross
50+
run: cargo install cross --git https://github.com/cross-rs/cross
4951

5052
- name: Install Linux deps (x86_64)
5153
if: matrix.target == 'x86_64-unknown-linux-gnu'
5254
run: |
5355
sudo apt-get update
54-
sudo apt-get install -y libgtk-3-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev
56+
sudo apt-get install -y libgtk-3-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev
57+
58+
- name: Build (cross)
59+
if: matrix.cross
60+
run: cross build --release --target ${{ matrix.target }}
5561

56-
- name: Build
62+
- name: Build (native)
63+
if: "!matrix.cross"
5764
run: cargo build --release --target ${{ matrix.target }}
5865

5966
- name: Package (Unix)

0 commit comments

Comments
 (0)