FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Win cpu build by 9prady9 · Pull Request #2819 · arrayfire/arrayfire · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .cmake  (1) .yml  (1) All 2 file types selected
Only manifest files
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
70 changes: 66 additions & 4 deletions .github/workflows/cpu_build.yml
This file contains hidden or 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
Expand Up @@ -2,7 +2,6 @@ on:
push:
branches:
- master
- cmake_3.5_fixes
pull_request:
branches:
- master
Expand All @@ -14,7 +13,7 @@ jobs:
name: CPU
runs-on: ${{ matrix.os }}
env:
NINJA_VER: 1.9.0
NINJA_VER: 1.10.0
CMAKE_VER: 3.5.1
strategy:
fail-fast: false
Expand Down Expand Up @@ -65,7 +64,7 @@ jobs:
- name: Install Dependencies for Macos
if: matrix.os == 'macos-latest'
run: |
brew install fontconfig glfw freeimage boost fftw lapack openblas
brew install boost fontconfig glfw freeimage fftw lapack openblas
echo "::set-env name=CMAKE_PROGRAM::cmake"

- name: Install Common Dependencies for Ubuntu
Expand All @@ -74,7 +73,6 @@ jobs:
sudo apt-get -qq update
sudo apt-get install -y libfreeimage-dev \
libglfw3-dev \
libboost-dev \
libfftw3-dev \
liblapacke-dev

Expand Down Expand Up @@ -109,6 +107,7 @@ jobs:
mkdir build && cd build
${CMAKE_PROGRAM} -G Ninja \
-DCMAKE_MAKE_PROGRAM:FILEPATH=${GITHUB_WORKSPACE}/ninja \
-DBOOST_ROOT:PATH=${BOOST_ROOT_1_72_0} \
-DAF_BUILD_CUDA:BOOL=OFF -DAF_BUILD_OPENCL:BOOL=OFF \
-DAF_BUILD_UNIFIED:BOOL=OFF -DAF_BUILD_EXAMPLES:BOOL=ON \
-DAF_BUILD_FORGE:BOOL=ON \
Expand All @@ -121,3 +120,66 @@ jobs:
run: |
cd ${GITHUB_WORKSPACE}/build
ctest -D Experimental --track ${CTEST_DASHBOARD} -T Test -T Submit -R cpu -j2

window_build_cpu:
name: CPU (OpenBLAS, windows-latest)
runs-on: windows-latest
env:
VCPKG_HASH: b79f7675aaa82eb6c5a96ae764fb1ce379a9d5d6 # March 29, 2020 - [hdf5] add tools and fortran feature
NINJA_VER: 1.10.0
steps:
- name: Checkout Repository
uses: actions/checkout@master

- name: Checkout Submodules
shell: bash
run: git submodule update --init --recursive

- name: VCPKG Cache
uses: actions/cache@v1
id: vcpkg-cache
with:
path: vcpkg
key: vcpkg-deps-${{ env.VCPKG_HASH }}

- name: Install VCPKG Common Deps
if: steps.vcpkg-cache.outputs.cache-hit != 'true'
run: |
git clone --recursive https://github.com/microsoft/vcpkg
Set-Location -Path .\vcpkg
git reset --hard $env:VCPKG_HASH
.\bootstrap-vcpkg.bat
.\vcpkg.exe install --triplet x64-windows fftw3 freeimage freetype glfw3 openblas
Remove-Item .\downloads,.\buildtrees,.\packages -Recurse -Force

- name: Download Ninja
run: |
Invoke-WebRequest -Uri "https://github.com/ninja-build/ninja/releases/download/v$env:NINJA_VER/ninja-win.zip" -OutFile ninja.zip
Expand-Archive -Path ninja.zip -DestinationPath .

- name: CMake Configure
run: |
$cwd = (Get-Item -Path ".\").FullName
$ref = $env:GITHUB_REF | %{ if ($_ -match "refs/pull/[0-9]+/merge") { $_;} }
$prnum = $ref | %{$_.Split("/")[2]}
$branch = git branch --show-current
$buildname = if($prnum -eq $null) { $branch } else { "PR-$prnum" }
$dashboard = if($prnum -eq $null) { "Continuous" } else { "Experimental" }
$buildname = "$buildname-cpu-openblas"
mkdir build && cd build
cmake .. -G "Visual Studio 16 2019" -A x64 `
-DCMAKE_TOOLCHAIN_FILE:FILEPATH="$env:GITHUB_WORKSPACE\vcpkg\scripts\buildsystems\vcpkg.cmake" `
-DFFTW_INCLUDE_DIR:PATH="$env:GITHUB_WORKSPACE\vcpkg\installed/x64-windows\include" `
-DFFTW_LIBRARY:FILEPATH="$env:GITHUB_WORKSPACE\vcpkg\installed\x64-windows\lib\fftw3.lib" `
-DFFTWF_LIBRARY:FILEPATH="$env:GITHUB_WORKSPACE\vcpkg\installed\x64-windows\lib\fftw3f.lib" `
-DAF_BUILD_CUDA:BOOL=OFF -DAF_BUILD_OPENCL:BOOL=OFF `
-DAF_BUILD_UNIFIED:BOOL=OFF -DAF_BUILD_FORGE:BOOL=ON `
-DBUILDNAME:STRING="$buildname"
echo "::set-env name=CTEST_DASHBOARD::${dashboard}"

- name: Build and Test
run: |
$cwd = (Get-Item -Path ".\").FullName
$Env:PATH += ";$cwd/vcpkg/installed/x64-windows/bin"
Set-Location -Path $cwd/build
ctest -D Experimental --track ${CTEST_DASHBOARD} -T Test -T Submit -C Release -R cpu -E pinverse -j2
4 changes: 3 additions & 1 deletion CMakeModules/CTestCustom.cmake
This file contains hidden or 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
Expand Up @@ -8,7 +8,9 @@
set(CTEST_CUSTOM_ERROR_POST_CONTEXT 50)
set(CTEST_CUSTOM_ERROR_PRE_CONTEXT 50)
if(WIN32)
set(CTEST_CUSTOM_POST_TEST ./bin/print_info.exe)
if(CMAKE_GENERATOR MATCHES "Ninja")
set(CTEST_CUSTOM_POST_TEST ./bin/print_info.exe)
endif()
else()
set(CTEST_CUSTOM_POST_TEST ./test/print_info)
endif()
Expand Down

Back | FazBrowse Home | New Git URL