Skip to content

Add linux aarch64 target to ci test #3217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 20 additions & 10 deletions .github/workflows/bindgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,24 @@ jobs:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest]
steps:
- uses: actions/checkout@v4

- name: Test expectations
run: cd bindgen-tests/tests/expectations && cargo test

test:
runs-on: ${{matrix.os}}
runs-on: ${{matrix.platform.os}}
strategy:
matrix:
os: [ubuntu-latest]
platform:
- os: ubuntu-latest
libtinfo: libtinfo5_6.3-2ubuntu0.1_amd64.deb
ubuntu_repo: https://mirrors.kernel.org/ubuntu/pool/universe/n/ncurses/
- os: ubuntu-24.04-arm
libtinfo: libtinfo5_6.3-2ubuntu0.1_arm64.deb
ubuntu_repo: https://ports.ubuntu.com/ubuntu-ports/pool/universe/n/ncurses/
llvm_version: ["9.0", "16.0"]
release_build: [0, 1]
no_default_features: [0, 1]
Expand All @@ -118,14 +124,18 @@ jobs:
include:
# Test with extra asserts + docs just with latest llvm versions to
# prevent explosion
- os: ubuntu-latest
- platform:
os: ubuntu-latest
libtinfo: libtinfo5_6.3-2ubuntu0.1_amd64.deb
ubuntu_repo: https://mirrors.kernel.org/ubuntu/pool/universe/n/ncurses/
llvm_version: "16.0"
release_build: 0
no_default_features: 0
feature_extra_asserts: 1

# Ensure stuff works on macos too
- os: macos-latest
- platform:
os: macos-latest
llvm_version: "16.0"
release_build: 0
no_default_features: 0
Expand All @@ -138,22 +148,22 @@ jobs:
with:
toolchain: stable
- name: Install libtinfo
if: matrix.os == 'ubuntu-latest'
if: startsWith(matrix.platform.os, 'ubuntu')
run: |
wget https://mirrors.kernel.org/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.1_amd64.deb
sudo dpkg -i libtinfo5_6.3-2ubuntu0.1_amd64.deb
wget ${{matrix.platform.ubuntu_repo}}${{matrix.platform.libtinfo}}
sudo dpkg -i ${{matrix.platform.libtinfo}}
- name: Install LLVM and Clang
uses: KyleMayes/[email protected]
with:
version: ${{matrix.llvm_version}}
- name: Run all the tests
env:
GITHUB_ACTIONS_OS: ${{matrix.os}}
GITHUB_ACTIONS_OS: ${{matrix.platform.os}}
BINDGEN_RELEASE_BUILD: ${{matrix.release_build}}
BINDGEN_FEATURE_RUNTIME: ${{matrix.feature_runtime}}
BINDGEN_FEATURE_EXTRA_ASSERTS: ${{matrix.feature_extra_asserts}}
BINDGEN_NO_DEFAULT_FEATURES: ${{matrix.no_default_features}}
BINDGEN_RUST_FOR_LINUX_TEST: ${{matrix.os == 'ubuntu-latest' && matrix.llvm_version == '16.0' && matrix.feature_extra_asserts == 0 && 1 || 0}}
BINDGEN_RUST_FOR_LINUX_TEST: ${{startsWith(matrix.platform.os, 'ubuntu') && matrix.llvm_version == '16.0' && matrix.feature_extra_asserts == 0 && 1 || 0}}
run: ./ci/test.sh

test-book:
Expand Down
1 change: 1 addition & 0 deletions dist-workspace.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ install-path = "CARGO_HOME"
global = "ubuntu-22.04"
aarch64-apple-darwin = "macos-14"
x86_64-apple-darwin = "macos-13"
aarch64-unknown-linux-gnu = "ubuntu-24.04-arm"
Loading