Skip to content

Commit

Permalink
ffa
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbkoch committed Jul 24, 2024
1 parent 6205933 commit 8cc838d
Showing 1 changed file with 46 additions and 6 deletions.
52 changes: 46 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ on:

env:
python_bld_ver: 3.9
ubuntu_test: ubuntu-latest
mac_test: macOS-latest
windows_test: windows-latest
# ubuntu_test: ubuntu-latest
# mac_test: macOS-latest
# windows_test: windows-latest

jobs:
hello-world:
Expand Down Expand Up @@ -64,10 +64,50 @@ jobs:
artifact_name: "libebm_win_debug_64"
runs-on: ${{ matrix.image }}
steps:
- name: Checkout repository
- name: Check out repository
uses: actions/checkout@v2
- name: Hello World
run: echo "Hello, World!"

- name: Download CUDA installer
if: startsWith(matrix.image, 'windows')
run: |
curl -O https://developer.download.nvidia.com/compute/cuda/11.2.2/network_installers/cuda_11.2.2_win10_network.exe
- name: Build on Windows
if: startsWith(matrix.image, 'windows')
run: |
SET PATH=%PATH%;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\
SET CudaToolkitDir=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2
cuda_11.2.2_win10_network.exe -s nvcc_11.2 visual_studio_integration_11.2 cudart_11.2
IF ERRORLEVEL 1 (
ECHO cuda_11.2.2_win10_network.exe FAILED
EXIT /B 201
)
.\build.bat ${{ matrix.options }} ${{ matrix.asm }}
- name: Build on Linux
if: startsWith(matrix.image, 'ubuntu')
run: |
sudo apt --yes update
sudo apt --yes install nvidia-cuda-toolkit
/bin/sh ./build.sh ${{ matrix.options }} ${{ matrix.asm }}
- name: Build on macOS
if: startsWith(matrix.image, 'macOS')
run: |
/bin/sh ./build.sh ${{ matrix.options }} ${{ matrix.asm }}
- name: Publish native shared library
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.artifact_name }}
path: bld/lib

- name: Publish assembly x64
if: ${{ matrix.asm != '' }}
uses: actions/upload-artifact@v2
with:
name: asm-${{ matrix.artifact_name }}
path: bld/asm/



Expand Down

0 comments on commit 8cc838d

Please sign in to comment.