ci: add arm linux

This commit is contained in:
iff 2024-11-22 17:35:32 +01:00
parent 609c7609d7
commit ce271043b3

View file

@ -17,6 +17,9 @@ jobs:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
deb: true
- os: ubuntu-latest
target: aarch64-unknown-linux-gnu
deb: true
- os: macos-latest
target: x86_64-apple-darwin
- os: macos-latest
@ -39,18 +42,24 @@ jobs:
override: true
target: ${{ matrix.target }}
# will need to static link openssl
# - name: install cross
# if: ${{ runner.os == 'Linux' }}
# uses: actions-rs/cargo@v1
# with:
# command: install
# args: cross --locked
- name: install cross
if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}
uses: actions-rs/cargo@v1
with:
command: install
args: cross --locked
- name: build
if: ${{ matrix.target != 'aarch64-unknown-linux-gnu' }}
run:
cargo build --release --all-features --locked --target ${{ matrix.target }}
- name: build (cross)
if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}
run: >
cross build --release --locked --target ${{ matrix.target }}
--features=runtime-rules,request-ai
- name: install cargo-deb
if: ${{ matrix.deb == true }}
uses: actions-rs/install@v0.1