Skip to content

Commit

Permalink
[CI] Add build on Alpine Linux
Browse files Browse the repository at this point in the history
This covers building with musl libc.
  • Loading branch information
amadio committed Feb 15, 2023
1 parent 9a534a1 commit a8b39a5
Showing 1 changed file with 83 additions and 0 deletions.
83 changes: 83 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,89 @@ jobs:
# ./common/test-runner ./XrdClTests/libXrdClTests.so 'All Tests/FileSystemTest/'
# ./common/test-runner ./XrdClTests/libXrdClTests.so 'All Tests/LocalFileHandlerTest/'
cmake-alpine-musl:

runs-on: ubuntu-latest
container: alpine

steps:
- name: Install external dependencies
shell: sh
run: |
apk add \
bash \
cmake \
cppunit-dev \
curl-dev \
fuse-dev \
fuse3-dev \
g++ \
git \
json-c-dev \
krb5-dev \
libxml2-dev \
linux-headers \
make \
openssl-dev \
py3-pip \
python3-dev \
readline-dev \
tinyxml-dev \
util-linux-dev \
zlib-dev
- name: Clone repository
uses: actions/checkout@v3

- name: Build with cmake
run: |
cd ..
cmake \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DPYTHON_EXECUTABLE=$(command -v python3) \
-DFORCE_ENABLED=ON \
-DENABLE_HTTP=OFF \
-DENABLE_TESTS=ON \
-DENABLE_VOMS=OFF \
-DENABLE_XRDEC=OFF \
-DENABLE_XRDCLHTTP=OFF \
-DENABLE_MACAROONS=OFF \
-DENABLE_SCITOKENS=OFF \
-DPIP_OPTIONS="--verbose" \
-S xrootd \
-B build
cmake build -LH
cmake \
--build build \
--clean-first \
--parallel $(($(nproc) - 1))
cmake --build build --target install
python3 -m pip list
- name: Verify install
run: |
command -v xrootd
command -v xrdcp
- name: Verify Python bindings
run: |
python3 --version --version
python3 -m pip list
python3 -m pip show xrootd
python3 -c 'import XRootD; print(XRootD)'
python3 -c 'import pyxrootd; print(pyxrootd)'
python3 -c 'from XRootD import client; print(client.FileSystem("root://someserver:1094"))'
- name: Run libXrdCl tests
run: |
cd ../build/tests
./common/test-runner ./XrdClTests/libXrdClTests.so 'All Tests/UtilsTest/'
./common/test-runner ./XrdClTests/libXrdClTests.so 'All Tests/SocketTest/'
./common/test-runner ./XrdClTests/libXrdClTests.so 'All Tests/PollerTest/'
cmake-centos7:

runs-on: ubuntu-latest
Expand Down

0 comments on commit a8b39a5

Please sign in to comment.