Skip to content

Commit

Permalink
Merge pull request #6106 from janekmi/arm64-build
Browse files Browse the repository at this point in the history
common: add arm64 build
  • Loading branch information
janekmi committed Sep 11, 2024
2 parents b269c35 + 58fb897 commit 7f098a5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
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 <[email protected]>

Expand Down

0 comments on commit 7f098a5

Please sign in to comment.