|
|
@ -19,7 +19,7 @@ jobs:
|
|
|
|
- linux-musl
|
|
|
|
- linux-musl
|
|
|
|
- aarch64-linux
|
|
|
|
- aarch64-linux
|
|
|
|
# - aarch64-linux-musl
|
|
|
|
# - aarch64-linux-musl
|
|
|
|
- aarch64-android
|
|
|
|
# - aarch64-android
|
|
|
|
# - armv7-linux
|
|
|
|
# - armv7-linux
|
|
|
|
rust: [stable]
|
|
|
|
rust: [stable]
|
|
|
|
include:
|
|
|
|
include:
|
|
|
@ -28,42 +28,36 @@ jobs:
|
|
|
|
- build: macos
|
|
|
|
- build: macos
|
|
|
|
os: macos-latest
|
|
|
|
os: macos-latest
|
|
|
|
target: x86_64-apple-darwin
|
|
|
|
target: x86_64-apple-darwin
|
|
|
|
binary_postfix: ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- build: macos-aarch64
|
|
|
|
- build: macos-aarch64
|
|
|
|
os: macos-latest
|
|
|
|
os: macos-latest
|
|
|
|
target: aarch64-apple-darwin
|
|
|
|
target: aarch64-apple-darwin
|
|
|
|
binary_postfix: ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- build: linux
|
|
|
|
- build: linux
|
|
|
|
os: ubuntu-latest
|
|
|
|
os: ubuntu-latest
|
|
|
|
target: x86_64-unknown-linux-gnu
|
|
|
|
target: x86_64-unknown-linux-gnu
|
|
|
|
binary_postfix: ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- build: linux-musl
|
|
|
|
- build: linux-musl
|
|
|
|
os: ubuntu-latest
|
|
|
|
os: ubuntu-latest
|
|
|
|
target: x86_64-unknown-linux-musl
|
|
|
|
target: x86_64-unknown-linux-musl
|
|
|
|
binary_postfix: ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- build: aarch64-linux
|
|
|
|
# TODO: make these work
|
|
|
|
os: ubuntu-latest
|
|
|
|
#
|
|
|
|
target: aarch64-unknown-linux-gnu
|
|
|
|
# - build: aarch64-linux
|
|
|
|
binary_postfix: ""
|
|
|
|
# os: ubuntu-latest
|
|
|
|
|
|
|
|
# target: aarch64-unknown-linux-gnu
|
|
|
|
|
|
|
|
|
|
|
|
# - build: aarch64-linux-musl
|
|
|
|
# - build: aarch64-linux-musl
|
|
|
|
# os: ubuntu-latest
|
|
|
|
# os: ubuntu-latest
|
|
|
|
# target: aarch64-unknown-linux-musl
|
|
|
|
# target: aarch64-unknown-linux-musl
|
|
|
|
# binary_postfix: ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- build: aarch64-android
|
|
|
|
# - build: aarch64-android
|
|
|
|
os: ubuntu-latest
|
|
|
|
# os: ubuntu-latest
|
|
|
|
target: aarch64-linux-android
|
|
|
|
# target: aarch64-linux-android
|
|
|
|
binary_postfix: ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# - build: armv7-linux
|
|
|
|
# - build: armv7-linux
|
|
|
|
# os: ubuntu-latest
|
|
|
|
# os: ubuntu-latest
|
|
|
|
# target: armv7-unknown-linux-gnueabihf
|
|
|
|
# target: armv7-unknown-linux-gnueabihf
|
|
|
|
# binary_postfix: ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/checkout@v3
|
|
|
@ -82,13 +76,13 @@ jobs:
|
|
|
|
if: matrix.os == 'ubuntu-latest'
|
|
|
|
if: matrix.os == 'ubuntu-latest'
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
sudo apt-get update --fix-missing
|
|
|
|
sudo apt-get update --fix-missing
|
|
|
|
sudo apt-get install -y --no-install-recommends liblua5.1-0-dev libluajit-5.1-dev
|
|
|
|
sudo apt-get install -y --no-install-recommends liblua5.1-0-dev libluajit-5.1-dev gcc musl-tools pkg-config
|
|
|
|
|
|
|
|
|
|
|
|
- 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')
|
|
|
|
# - if: matrix.os == 'ubuntu-latest' && contains(matrix.build, 'armv7')
|
|
|
|
run: sudo apt-get install -y --no-install-recommends gcc-aarch64-linux-gnu libc6-dev-arm64-cross
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
|
|
|
- name: Running cargo build
|
|
|
|
- name: Running cargo build
|
|
|
|
run: cargo build --locked --release --target ${{ matrix.target }}
|
|
|
|
run: cargo build --locked --release --target ${{ matrix.target }}
|
|
|
@ -102,7 +96,7 @@ jobs:
|
|
|
|
shell: bash
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
cd target/${{ matrix.target }}/release
|
|
|
|
cd target/${{ matrix.target }}/release
|
|
|
|
BINARY_NAME=xplr${{ matrix.binary_postfix }}
|
|
|
|
BINARY_NAME=xplr
|
|
|
|
strip $BINARY_NAME
|
|
|
|
strip $BINARY_NAME
|
|
|
|
RELEASE_NAME=xplr-${{ matrix.build }}
|
|
|
|
RELEASE_NAME=xplr-${{ matrix.build }}
|
|
|
|
tar czvf $RELEASE_NAME.tar.gz $BINARY_NAME
|
|
|
|
tar czvf $RELEASE_NAME.tar.gz $BINARY_NAME
|
|
|
|