fix: configure cross with Cross.toml
This commit is contained in:
parent
f23d50c66a
commit
258b7374fd
3 changed files with 12 additions and 5 deletions
|
@ -14,7 +14,7 @@ jobs:
|
||||||
- x86_64-unknown-linux-gnu
|
- x86_64-unknown-linux-gnu
|
||||||
- aarch64-unknown-linux-gnu
|
- aarch64-unknown-linux-gnu
|
||||||
- x86_64-pc-windows-gnu
|
- x86_64-pc-windows-gnu
|
||||||
- aarch64-apple-darwin
|
# - aarch64-apple-darwin
|
||||||
include:
|
include:
|
||||||
- target: x86_64-unknown-linux-gnu
|
- target: x86_64-unknown-linux-gnu
|
||||||
binary_name: zenyx-x86_64-linux
|
binary_name: zenyx-x86_64-linux
|
||||||
|
@ -25,9 +25,9 @@ jobs:
|
||||||
- target: x86_64-pc-windows-gnu
|
- target: x86_64-pc-windows-gnu
|
||||||
binary_name: zenyx-x86_64-windows.exe
|
binary_name: zenyx-x86_64-windows.exe
|
||||||
ext: ".exe"
|
ext: ".exe"
|
||||||
- target: aarch64-apple-darwin
|
# - target: aarch64-apple-darwin
|
||||||
binary_name: zenyx-aarch64-apple
|
# binary_name: zenyx-aarch64-apple
|
||||||
ext: ""
|
# ext: ""
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: 📥 Checkout source
|
- name: 📥 Checkout source
|
||||||
|
@ -62,7 +62,7 @@ jobs:
|
||||||
- name: 🚀 Build with cross
|
- name: 🚀 Build with cross
|
||||||
uses: https://github.com/actions-rs/cargo@v1
|
uses: https://github.com/actions-rs/cargo@v1
|
||||||
env:
|
env:
|
||||||
CROSS_CONTAINER_IN_CONTAINER: true
|
CROSS_CONTAINER_IN_CONTAINER : true
|
||||||
with:
|
with:
|
||||||
use-cross: true
|
use-cross: true
|
||||||
command: build
|
command: build
|
||||||
|
|
|
@ -15,3 +15,5 @@ split-debuginfo = "off"
|
||||||
|
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
debug = 0
|
debug = 0
|
||||||
|
|
||||||
|
|
||||||
|
|
5
Cross.toml
Normal file
5
Cross.toml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
[build]
|
||||||
|
pre-build = [
|
||||||
|
"dpkg --add-architecture $CROSS_DEB_ARCH",
|
||||||
|
"apt-get update && apt-get --assume-yes install libwayland-dev:$CROSS_DEB_ARCH"
|
||||||
|
]
|
Loading…
Add table
Add a link
Reference in a new issue