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