Skip to content

Commit f7eabff

Browse files
committed
Fix CI checkout path - use workspace subdirectory
actions/checkout@v4 doesn't allow paths outside the workspace. Changed from `../cfd` to `cfd` subdirectory within workspace.
1 parent 2c7a352 commit f7eabff

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/build-wheels.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,27 +59,27 @@ jobs:
5959
echo "Using CFD library branch: main"
6060
fi
6161
62-
# Checkout the CFD C library (sibling repository)
62+
# Checkout the CFD C library into workspace subdirectory
6363
- name: Checkout CFD C library
6464
uses: actions/checkout@v4
6565
with:
6666
repository: ${{ github.repository_owner }}/cfd
67-
path: ../cfd
67+
path: cfd
6868
ref: ${{ steps.cfd-version.outputs.ref }}
6969
fetch-depth: 0
7070

7171
# Build CFD C library (static)
7272
- name: Build CFD C library (Linux/macOS)
7373
if: runner.os != 'Windows'
7474
run: |
75-
cd ../cfd
75+
cd cfd
7676
cmake -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF
7777
cmake --build build --config Release
7878
7979
- name: Build CFD C library (Windows)
8080
if: runner.os == 'Windows'
8181
run: |
82-
cd ..\cfd
82+
cd cfd
8383
cmake -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF
8484
cmake --build build --config Release
8585
@@ -93,7 +93,8 @@ jobs:
9393
CIBW_ARCHS_LINUX: x86_64
9494

9595
# Environment for static linking and stable ABI
96-
CIBW_ENVIRONMENT: "CMAKE_BUILD_TYPE=Release CFD_STATIC_LINK=ON CFD_USE_STABLE_ABI=ON"
96+
# CFD_ROOT points to the cfd subdirectory in the workspace
97+
CIBW_ENVIRONMENT: "CMAKE_BUILD_TYPE=Release CFD_STATIC_LINK=ON CFD_USE_STABLE_ABI=ON CFD_ROOT=./cfd"
9798

9899
# Test the built wheels
99100
CIBW_TEST_COMMAND: >

0 commit comments

Comments
 (0)