mirror of
https://github.com/sayanarijit/xplr.git
synced 2024-09-11 11:05:39 +03:00
Don't give up yet
This commit is contained in:
parent
bf7ae3f748
commit
56472998f5
@ -1,4 +1,14 @@
|
||||
# Why dynamic linking?
|
||||
# See https://github.com/sayanarijit/xplr/issues/309
|
||||
|
||||
[target.x86_64-unknown-linux-gnu]
|
||||
rustflags = ["-C", "link-args=-rdynamic"]
|
||||
|
||||
[target.aarch64-unknown-linux-gnu]
|
||||
rustflags = ["-C", "linker=aarch64-linux-gnu-gcc", "-C", "link-args=-rdynamic"]
|
||||
|
||||
[target.aarch64-linux-android]
|
||||
rustflags = ["-C", "linker=aarch64-linux-android-clang", "-C", "link-args=-rdynamic"]
|
||||
|
||||
[target.arm-unknown-linux-gnueabihf]
|
||||
rustflags = ["-C", "linker=arm-linux-gnueabihf-gcc", "-C", "link-args=-rdynamic"]
|
||||
|
46
.github/workflows/cd.yml
vendored
46
.github/workflows/cd.yml
vendored
@ -17,10 +17,8 @@ jobs:
|
||||
- macos-aarch64
|
||||
- linux
|
||||
- linux-musl
|
||||
- aarch64-linux
|
||||
# - aarch64-linux-musl
|
||||
# - aarch64-android
|
||||
# - armv7-linux
|
||||
- linux-aarch64
|
||||
- linux-arm
|
||||
rust: [stable]
|
||||
include:
|
||||
# See the list: https://github.com/cross-rs/cross
|
||||
@ -41,23 +39,13 @@ jobs:
|
||||
os: ubuntu-latest
|
||||
target: x86_64-unknown-linux-musl
|
||||
|
||||
# TODO: make these work
|
||||
#
|
||||
# - build: aarch64-linux
|
||||
# os: ubuntu-latest
|
||||
# target: aarch64-unknown-linux-gnu
|
||||
- build: linux-aarch64
|
||||
os: ubuntu-latest
|
||||
target: aarch64-unknown-linux-gnu
|
||||
|
||||
# - build: aarch64-linux-musl
|
||||
# os: ubuntu-latest
|
||||
# target: aarch64-unknown-linux-musl
|
||||
|
||||
# - build: aarch64-android
|
||||
# os: ubuntu-latest
|
||||
# target: aarch64-linux-android
|
||||
|
||||
# - build: armv7-linux
|
||||
# os: ubuntu-latest
|
||||
# target: armv7-unknown-linux-gnueabihf
|
||||
- build: linux-arm
|
||||
os: ubuntu-latest
|
||||
target: arm-unknown-linux-gnueabihf
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@ -76,13 +64,19 @@ jobs:
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: |
|
||||
sudo apt-get update --fix-missing
|
||||
sudo apt-get install -y --no-install-recommends liblua5.1-0-dev libluajit-5.1-dev gcc musl-tools pkg-config
|
||||
sudo apt-get install -y --no-install-recommends liblua5.1-0-dev libluajit-5.1-dev gcc pkg-config curl git make ca-certificates
|
||||
|
||||
# - if: matrix.os == 'ubuntu-latest' && contains(matrix.build, 'armv7')
|
||||
# run: sudo apt-get install -y --no-install-recommends gcc-arm-linux-gnueabihf libc-dev-armhf-cross
|
||||
#
|
||||
# - if: matrix.os == 'ubuntu-latest' && contains(matrix.build, 'aarch64')
|
||||
# run: sudo apt-get install -y --no-install-recommends gcc-aarch64-linux-gnu libc6-dev-arm64-cross
|
||||
- if: matrix.build == 'linux-musl'
|
||||
run: sudo apt-get install -y musl-tools
|
||||
|
||||
- if: matrix.build == 'linux-aarch64'
|
||||
run: sudo apt-get install -y gcc-aarch64-linux-gnu
|
||||
|
||||
- if: matrix.build == 'linux-arm'
|
||||
run: |
|
||||
sudo apt-get install -y gcc-multilib
|
||||
sudo apt-get install -y gcc-arm-linux-gnueabihf
|
||||
sudo ln -s /usr/include/asm-generic/ /usr/include/asm
|
||||
|
||||
- name: Running cargo build
|
||||
run: cargo build --locked --release --target ${{ matrix.target }}
|
||||
|
50
.github/workflows/ci.yml
vendored
50
.github/workflows/ci.yml
vendored
@ -63,10 +63,8 @@ jobs:
|
||||
- macos-aarch64
|
||||
- linux
|
||||
- linux-musl
|
||||
- aarch64-linux
|
||||
# - aarch64-linux-musl
|
||||
# - aarch64-android
|
||||
# - armv7-linux
|
||||
- linux-aarch64
|
||||
- linux-arm
|
||||
rust: [stable]
|
||||
include:
|
||||
# See the list: https://github.com/cross-rs/cross
|
||||
@ -87,23 +85,13 @@ jobs:
|
||||
os: ubuntu-latest
|
||||
target: x86_64-unknown-linux-musl
|
||||
|
||||
# TODO: make these work
|
||||
#
|
||||
# - build: aarch64-linux
|
||||
# os: ubuntu-latest
|
||||
# target: aarch64-unknown-linux-gnu
|
||||
- build: linux-aarch64
|
||||
os: ubuntu-latest
|
||||
target: aarch64-unknown-linux-gnu
|
||||
|
||||
# - build: aarch64-linux-musl
|
||||
# os: ubuntu-latest
|
||||
# target: aarch64-unknown-linux-musl
|
||||
|
||||
# - build: aarch64-android
|
||||
# os: ubuntu-latest
|
||||
# target: aarch64-linux-android
|
||||
|
||||
# - build: armv7-linux
|
||||
# os: ubuntu-latest
|
||||
# target: armv7-unknown-linux-gnueabihf
|
||||
- build: linux-arm
|
||||
os: ubuntu-latest
|
||||
target: arm-unknown-linux-gnueabihf
|
||||
|
||||
env:
|
||||
RUST_BACKTRACE: full
|
||||
@ -124,16 +112,24 @@ jobs:
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: |
|
||||
sudo apt-get update --fix-missing
|
||||
sudo apt-get install -y --no-install-recommends liblua5.1-0-dev libluajit-5.1-dev gcc musl-tools pkg-config
|
||||
sudo apt-get install -y --no-install-recommends liblua5.1-0-dev libluajit-5.1-dev gcc pkg-config curl git make ca-certificates
|
||||
|
||||
# - if: matrix.os == 'ubuntu-latest' && contains(matrix.build, 'armv7')
|
||||
# run: sudo apt-get install -y --no-install-recommends gcc-arm-linux-gnueabihf libc-dev-armhf-cross
|
||||
#
|
||||
# - if: matrix.os == 'ubuntu-latest' && contains(matrix.build, 'aarch64')
|
||||
# run: sudo apt-get install -y --no-install-recommends gcc-aarch64-linux-gnu libc6-dev-arm64-cross
|
||||
- if: matrix.build == 'linux-musl'
|
||||
run: sudo apt-get install -y musl-tools
|
||||
|
||||
- if: matrix.build == 'linux-aarch64'
|
||||
run: sudo apt-get install -y gcc-aarch64-linux-gnu
|
||||
|
||||
- if: matrix.build == 'linux-arm'
|
||||
run: |
|
||||
sudo apt-get install -y gcc-multilib
|
||||
sudo apt-get install -y gcc-arm-linux-gnueabihf
|
||||
sudo ln -s /usr/include/asm-generic/ /usr/include/asm
|
||||
|
||||
- run: cargo build --target ${{ matrix.target }}
|
||||
- run: cargo test --target ${{ matrix.target }}
|
||||
|
||||
- if: matrix.build == 'macos' || matrix.build == 'linux'
|
||||
run: cargo test --target ${{ matrix.target }}
|
||||
|
||||
# bench:
|
||||
# name: Benchmarks
|
||||
|
Loading…
Reference in New Issue
Block a user