Add c_char definition for loongarch64 #356
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: [stable, nightly, 1.63] | |
env: | |
RUSTFLAGS: -D warnings | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
rustup set profile minimal | |
rustup install ${{ matrix.rust }} | |
rustup default ${{ matrix.rust }} | |
cargo check --features "netlink" | |
cargo check --no-default-features --features "std netlink" | |
cargo check --no-default-features --features "no_std netlink" | |
cargo check --no-default-features --features "no_std general errno" | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
env: | |
# -D warnings is commented out in our install-rust action; re-add it here. | |
RUSTFLAGS: -D warnings | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- uses: ./.github/actions/install-rust | |
with: | |
toolchain: stable | |
- run: > | |
rustup target add | |
x86_64-unknown-linux-musl | |
x86_64-unknown-linux-gnux32 | |
i686-unknown-linux-gnu | |
i686-unknown-linux-musl | |
riscv64gc-unknown-linux-gnu | |
aarch64-unknown-linux-gnu | |
aarch64-unknown-linux-musl | |
powerpc64le-unknown-linux-gnu | |
armv5te-unknown-linux-gnueabi | |
loongarch64-unknown-linux-gnu | |
- run: cargo check --tests -vv | |
- run: cargo check --tests -vv --target=x86_64-unknown-linux-musl | |
- run: cargo check --tests -vv --target=x86_64-unknown-linux-gnux32 | |
- run: cargo check --tests -vv --target=i686-unknown-linux-gnu | |
- run: cargo check --tests -vv --target=i686-unknown-linux-musl | |
- run: cargo check --tests -vv --target=riscv64gc-unknown-linux-gnu | |
- run: cargo check --tests -vv --target=aarch64-unknown-linux-gnu | |
- run: cargo check --tests -vv --target=aarch64-unknown-linux-musl | |
- run: cargo check --tests -vv --target=powerpc64le-unknown-linux-gnu | |
- run: cargo check --tests -vv --target=armv5te-unknown-linux-gnueabi | |
- run: cargo check --tests -vv --target=loongarch64-unknown-linux-gnu | |
gen: | |
name: Update generated files | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | |
sudo add-apt-repository -y 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main' | |
sudo apt install libclang-dev | |
cd gen && LD_LIBRARY_PATH=/usr/lib/llvm-19/lib cargo run --release | |
git diff --exit-code |