Skip to content
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

common: add arm64 build #6106

Merged
merged 1 commit into from
Sep 11, 2024
Merged
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
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,25 +76,49 @@ jobs:
strategy:
fail-fast: false
matrix:
CC: [gcc, clang]
include:
# common parameters for both gcc and clang
- LD: ld
OBJCOPY: objcopy
ARCH: x86_64
BUILD_ALL: y
# include CXX specific for each of the x86_64 compilers
- CC: gcc
CXX: g++
- CC: clang
CXX: clang++
# add aarch64 cross-compilation (requested by DAOS)
- CC: aarch64-linux-gnu-gcc
CXX: aarch64-linux-gnu-g++-11
LD: aarch64-linux-gnu-ld
OBJCOPY: aarch64-linux-gnu-objcopy
ARCH: aarch64
BUILD_ALL: n # exclude non-required parts from the build
steps:
- name: Clone the git repo
uses: actions/checkout@v4

- name: Install dependencies
run: sudo apt-get -y install pandoc

- if: ${{ contains(matrix.CC, 'aarch64') }}
name: Install dependencies (aarch64)
run: sudo apt-get -y install gcc-aarch64-linux-gnu g++-11-aarch64-linux-gnu binutils-aarch64-linux-gnu

- name: Build sources
env:
NDCTL_ENABLE: n # just to speed up the job
PMEMOBJ_IGNORE_DIRTY_SHUTDOWN: y # not recommended for production
PMEMOBJ_IGNORE_BAD_BLOCKS: y # not recommended for production
BUILD_EXAMPLES: ${{ matrix.BUILD_ALL }}
BUILD_BENCHMARKS: ${{ matrix.BUILD_ALL }}
DOC: ${{ matrix.BUILD_ALL }}
CC: ${{ matrix.CC }}
CXX: ${{ matrix.CXX }}
LD: ${{ matrix.LD }}
OBJCOPY: ${{ matrix.OBJCOPY }}
ARCH: ${{ matrix.ARCH }}
run: make -j$(nproc) test


Expand Down
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ XXX
* Version X.X.X

- remove non-Linux support from all compilation paths (OS_KERNEL_NAME)
- add an aarch64 cross-compilation (requested by DAOS)

Thu May 23 2024 Oksana Sałyk <oksana.salyk@intel.com>

Expand Down
Loading