Skip to content

Commit 2703d63

Browse files
committed
try to fix linux cross-compilation (x2)
1 parent 322e485 commit 2703d63

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,7 @@ jobs:
145145
- uses: Swatinem/rust-cache@v2
146146
with:
147147
key: linux-cross
148-
# The cross containers were updated to ubuntu 24.04 after this commit. This breaks installing python3.12-minimal
149-
# See https://github.com/cross-rs/cross/issues/1784 for additional context
150-
- run: cargo install cross --git https://github.com/cross-rs/cross --rev 29d00c7803f221f1b3f35e561b03792368fb8339
148+
- run: cargo install cross --git https://github.com/cross-rs/cross
151149
- run: rustup target add ${{ matrix.target }}
152150
- name: Build
153151
run: cross build --verbose --target ${{ matrix.target }}

.github/workflows/publish.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,7 @@ jobs:
230230
- uses: Swatinem/rust-cache@v2
231231
with:
232232
key: linux-cross
233-
# The cross containers were updated to ubuntu 24.04 after this commit. This breaks installing python3.12-minimal
234-
# See https://github.com/cross-rs/cross/issues/1784 for additional context
235-
- run: cargo install cross --git https://github.com/cross-rs/cross --rev 29d00c7803f221f1b3f35e561b03792368fb8339
233+
- run: cargo install cross --git https://github.com/cross-rs/cross
236234
# Build the CLI only binary
237235
- run: cross build --no-default-features --release --target ${{ matrix.target }}
238236
- run: mv "target/${{ matrix.target }}/release/ornithe-installer-rs" "target/${{ matrix.target }}/release/ornithe-installer-rs-cli.bin"

Cross.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
[build]
22
pre-build = [
33
"dpkg --add-architecture $CROSS_DEB_ARCH",
4-
"apt-get update && apt-get --assume-yes install libxcb-render0-dev:$CROSS_DEB_ARCH libxcb-shape0-dev:$CROSS_DEB_ARCH libxcb-xfixes0-dev:$CROSS_DEB_ARCH libxkbcommon-dev:$CROSS_DEB_ARCH libssl-dev:$CROSS_DEB_ARCH libgtk-3-dev:$CROSS_DEB_ARCH"
4+
"apt-get update"
5+
# https://github.com/cross-rs/cross/issues/1784
6+
"apt-get -y install qemu-user-static binfmt-support",
7+
"apt-get -y install libxcb-render0-dev:$CROSS_DEB_ARCH libxcb-shape0-dev:$CROSS_DEB_ARCH libxcb-xfixes0-dev:$CROSS_DEB_ARCH libxkbcommon-dev:$CROSS_DEB_ARCH libssl-dev:$CROSS_DEB_ARCH libgtk-3-dev:$CROSS_DEB_ARCH"
58
]

0 commit comments

Comments
 (0)