Skip to content

Commit e843a65

Browse files
committed
Refactor CI workflow to build in manylinux2014 container, consolidating installation and build steps into a single command for improved efficiency.
1 parent 1cc1838 commit e843a65

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,14 @@ jobs:
1212
build:
1313
name: Build shared library
1414
runs-on: ubuntu-latest
15-
container:
16-
image: quay.io/pypa/manylinux2014_x86_64
17-
options: --user root
1815

1916
steps:
2017
- name: Checkout repository
2118
uses: actions/checkout@v3
2219

23-
- name: Install build dependencies (CMake)
20+
- name: Build in manylinux2014 container
2421
run: |
25-
yum install -y cmake3
26-
ln -sf /usr/bin/cmake3 /usr/bin/cmake
27-
28-
- name: Configure & Build
29-
run: |
30-
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
31-
cmake --build build -j$(nproc)
22+
docker run --rm -v "${{ github.workspace }}:/project" -w /project quay.io/pypa/manylinux2014_x86_64 /bin/bash -c "yum install -y cmake3 && ln -sf /usr/bin/cmake3 /usr/bin/cmake && cmake -S . -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build -j\$(nproc)"
3223
3324
- name: Upload library artifact
3425
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)