-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb7008d
commit dc3631b
Showing
14 changed files
with
80 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
name: Publish wheel packages | ||
on: | ||
workflow_call: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
name: Publish non-native platform wheels | ||
on: | ||
workflow_call: | ||
|
@@ -22,7 +23,8 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
os: | ||
- ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
@@ -37,17 +39,18 @@ jobs: | |
- name: Build package | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_BEFORE_BUILD_LINUX: ./build --clean && SUBPROJECTS=${{ inputs.subproject }} TEST_SUPPORT=disabled GPU_SUPPORT=disabled ./build install | ||
CIBW_BEFORE_BUILD_LINUX: ./build --clean && SUBPROJECTS=${{ inputs.subproject }} TEST_SUPPORT=disabled GPU_SUPPORT=disabled | ||
./build install | ||
CIBW_BUILD_FRONTEND: build | ||
CIBW_ARCHS_LINUX: aarch64 | ||
CIBW_SKIP: 'pp* *musllinux*' | ||
CIBW_SKIP: pp* *musllinux* | ||
with: | ||
package-dir: python/subprojects/${{ inputs.subproject }}/ | ||
- name: Setup Python | ||
if: ${{ inputs.pypi_repository }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
python-version: 3.x | ||
- name: Upload wheels to PyPI | ||
if: ${{ inputs.pypi_repository }} | ||
env: | ||
|
@@ -62,5 +65,5 @@ jobs: | |
uses: actions/upload-artifact@v4 | ||
with: | ||
name: wheels-${{ inputs.subproject }}-${{ runner.os }}-aarch64 | ||
path: 'wheelhouse/*.whl' | ||
path: wheelhouse/*.whl | ||
if-no-files-found: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
name: Publish platform wheels | ||
on: | ||
workflow_call: | ||
|
@@ -22,7 +23,10 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
- windows-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
@@ -41,19 +45,23 @@ jobs: | |
- name: Build package | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_BEFORE_BUILD_LINUX: ./build --clean && SUBPROJECTS=${{ inputs.subproject }} TEST_SUPPORT=disabled GPU_SUPPORT=disabled ./build install | ||
CIBW_BEFORE_BUILD_MACOS: rm -rf venv && ./build --clean && SUBPROJECTS=${{ inputs.subproject }} TEST_SUPPORT=disabled GPU_SUPPORT=disabled CPLUS_INCLUDE_PATH=/opt/homebrew/opt/libomp/include/ LIBRARY_PATH=/opt/homebrew/opt/libomp/lib/ ./build install | ||
CIBW_BEFORE_BUILD_WINDOWS: .\build.bat --clean && set SUBPROJECTS=${{ inputs.subproject }} && set TEST_SUPPORT=disabled && set GPU_SUPPORT=disabled && .\build.bat install | ||
CIBW_BEFORE_BUILD_LINUX: ./build --clean && SUBPROJECTS=${{ inputs.subproject }} TEST_SUPPORT=disabled GPU_SUPPORT=disabled | ||
./build install | ||
CIBW_BEFORE_BUILD_MACOS: rm -rf venv && ./build --clean && SUBPROJECTS=${{ inputs.subproject }} TEST_SUPPORT=disabled | ||
GPU_SUPPORT=disabled CPLUS_INCLUDE_PATH=/opt/homebrew/opt/libomp/include/ LIBRARY_PATH=/opt/homebrew/opt/libomp/lib/ | ||
./build install | ||
CIBW_BEFORE_BUILD_WINDOWS: .\build.bat --clean && set SUBPROJECTS=${{ inputs.subproject }} && set TEST_SUPPORT=disabled | ||
&& set GPU_SUPPORT=disabled && .\build.bat install | ||
CIBW_BUILD_FRONTEND: build | ||
CIBW_ARCHS: auto64 | ||
CIBW_SKIP: 'pp* *musllinux*' | ||
CIBW_SKIP: pp* *musllinux* | ||
with: | ||
package-dir: python/subprojects/${{ inputs.subproject }}/ | ||
- name: Setup Python | ||
if: ${{ inputs.pypi_repository }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
python-version: 3.x | ||
- name: Upload wheels to PyPI | ||
if: ${{ inputs.pypi_repository }} | ||
env: | ||
|
@@ -68,5 +76,5 @@ jobs: | |
uses: actions/upload-artifact@v4 | ||
with: | ||
name: wheels-${{ inputs.subproject }}-${{ runner.os }}-x86_64 | ||
path: 'wheelhouse/*.whl' | ||
path: wheelhouse/*.whl | ||
if-no-files-found: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
--- | ||
name: Test build | ||
on: | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
jobs: | ||
changes: | ||
name: Detect changes | ||
|
@@ -94,7 +98,7 @@ jobs: | |
if: ${{ needs.changes.outputs.cpp_tests == 'true' }} && (success() || failure()) | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
with: | ||
check_name: "C++ Test Results" | ||
check_name: C++ Test Results | ||
files: | | ||
cpp/build/meson-logs/testlog.junit.xml | ||
- name: Test Python code | ||
|
@@ -104,7 +108,7 @@ jobs: | |
if: ${{ needs.changes.outputs.python_tests == 'true' }} && (success() || failure()) | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
with: | ||
check_name: "Python Test Results" | ||
check_name: Python Test Results | ||
files: | | ||
python/build/test-results/*.xml | ||
macos_build: | ||
|
@@ -131,14 +135,15 @@ jobs: | |
with: | ||
key: ${{ runner.os }}-test-build-ccache | ||
- name: Compile via Clang | ||
run: TEST_SUPPORT=disabled CPLUS_INCLUDE_PATH=/opt/homebrew/opt/libomp/include/:/opt/homebrew/opt/opencl-clhpp-headers/include/ LIBRARY_PATH=/opt/homebrew/opt/libomp/lib/ ./build compile | ||
run: TEST_SUPPORT=disabled CPLUS_INCLUDE_PATH=/opt/homebrew/opt/libomp/include/:/opt/homebrew/opt/opencl-clhpp-headers/include/ | ||
LIBRARY_PATH=/opt/homebrew/opt/libomp/lib/ ./build compile | ||
windows_build: | ||
needs: changes | ||
if: ${{ needs.changes.outputs.cpp == 'true' }} | ||
name: Test Windows build | ||
runs-on: windows-latest | ||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
SCCACHE_GHA_ENABLED: 'true' | ||
steps: | ||
- name: Look up Git repository in cache | ||
uses: actions/cache/restore@v4 | ||
|
@@ -161,7 +166,7 @@ jobs: | |
- name: Prepare sccache | ||
uses: mozilla-actions/[email protected] | ||
- name: Compile via MSVC | ||
run: | | ||
run: |- | ||
$env:TEST_SUPPORT = "disabled" | ||
$env:INCLUDE += ";$($pwd.Path)\vcpkg\packages\opencl_x64-windows\include" | ||
$env:LIB += ";$($pwd.Path)\vcpkg\packages\opencl_x64-windows\lib" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters