Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated build with github actions (Moved to PR #115) #112

Closed
Closed
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
3288bb7
updated 7z command in create package
ironictoo Aug 3, 2021
9038319
Fixed CUBLAS linking on linux, static and dynamic
ironictoo Jul 11, 2019
b6236ca
Merge branch 'master' of https://github.com/gpufit/Gpufit into linux_…
ironictoo Aug 10, 2021
95b136e
updated version in linus python install script
ironictoo Aug 10, 2021
5787df2
Added scripts for binary release, install, and testing in linux
ironictoo Aug 10, 2021
14f79f5
added linux python install script
ironictoo Aug 10, 2021
f283f45
updated file permissions on copy for linux python install
ironictoo Aug 10, 2021
8a0f845
use new cmake cuda tools, requires cmake 3.18
ironictoo Aug 12, 2021
efd1b08
Merge remote-tracking branch 'upstream/master' into cmake_update
ironictoo Jul 22, 2022
664420e
automated build with github actions (Windows only)
jimkring Oct 7, 2022
d289462
source folder is current directory
jimkring Oct 7, 2022
69dabd2
don't install visual_studio_integration subpackage on linux
jimkring Oct 7, 2022
5f3459b
call python not python.exe for cross-platform support
jimkring Oct 7, 2022
9b081f0
linux build improvements
jimkring Oct 7, 2022
d6218fb
fix linux Configure CMake
jimkring Oct 7, 2022
47fa46c
typo
jimkring Oct 7, 2022
8dba739
Linux build command is simply make
jimkring Oct 7, 2022
207d073
add conditionals
jimkring Oct 7, 2022
f41dd00
create build directory
jimkring Oct 7, 2022
979626d
fix paths
jimkring Oct 7, 2022
a6caf5f
linux cmake -DCMAKE_BUILD_TYPE=RELEASE
jimkring Oct 7, 2022
e9c2919
upload entire build folder
jimkring Oct 7, 2022
cead996
separate steps for windows and linux artifacts
jimkring Oct 7, 2022
c64e19d
fixed Linux artifact upload
jimkring Oct 8, 2022
081076b
Merge branch 'cmake_update' into pr_build_action
ironictoo Oct 11, 2022
c28ed1d
Merge remote-tracking branch 'upstream/master' into pr_build_action
ironictoo Oct 11, 2022
909a932
created .deb file for linux install
ironictoo Sep 5, 2019
7525638
add cuda include dir to c++ compiles
ironictoo Oct 11, 2022
be45592
attempt to fix static linking with msvc
ironictoo Oct 11, 2022
b4c5250
Merge pull request #1 from ironictoo/pr_build_action
jimkring Oct 11, 2022
42adefe
added more version of cuda and ubuntu to test matrix
ironictoo Oct 12, 2022
3636700
remove quotes in matrix
ironictoo Oct 12, 2022
2bc1edd
move cuda matrix
ironictoo Oct 12, 2022
9d0cf73
indentation errors
ironictoo Oct 12, 2022
968e74d
valid cuda-os combinations
ironictoo Oct 12, 2022
46fc229
make pip verbose
ironictoo Oct 12, 2022
7becb29
cmake output python location
ironictoo Oct 12, 2022
22446d8
fix find python in cmake, drop old cuda from ubuntu
ironictoo Oct 12, 2022
540d086
found another old python reference
ironictoo Oct 12, 2022
1832970
delete redundant message
ironictoo Oct 12, 2022
39cb33a
use jimkring/action-install-cuda-toolkit fork
jimkring Oct 15, 2022
a8c80ed
Merge pull request #2 from ironictoo/pr_build_action
jimkring Oct 15, 2022
5ad294a
Added cuda 11.3.0
jimkring Oct 15, 2022
cbd44bb
use jimkring/action-install-cuda-toolkit fork
jimkring Oct 15, 2022
c750151
test latest 11.3.x build
jimkring Oct 15, 2022
a1a9274
try "11.3.1" since "11.3" didn't work
jimkring Oct 15, 2022
5befd0e
added missing Python version
jimkring Oct 15, 2022
286fda0
Set build job name using matrix values
jimkring Oct 15, 2022
fdb0757
tweak build job name
jimkring Oct 15, 2022
a5b687e
ubuntu 11.3.1
jimkring Oct 15, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
automated build with github actions (Windows only)
jimkring committed Oct 7, 2022
commit 664420e4cf335becb747065d30b81b45e0a65925
96 changes: 96 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: Build

on:
push:
workflow_dispatch:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
# explicit include-based build matrix of known valid options
matrix:
include:
# Windows2019 & VS 2019 supports cuda 10.1+
- os: windows-2019
cuda: "11.4.0"
visual_studio: "Visual Studio 16 2019"
python: "3.9"

env:
build_dir: "build"
config: "Release"

steps:
- uses: actions/checkout@v2

- name: Cache build
uses: actions/cache@v3
with:
path: ${{github.workspace}}/build
key: ${{ matrix.os }}-build
restore-keys: ${{ matrix.os }}-build

- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python }}"
cache: "pip" # caching pip dependencies

- name: Upgrade Pip and Install wheel
run: |
python.exe -m pip install --upgrade pip
pip install wheel
- name: Install CUDA
uses: Jimver/[email protected]
id: cuda-toolkit
with:
sub-packages: '["nvcc", "visual_studio_integration", "cublas", "curand", "nvrtc", "cudart"]'
cuda: ${{ matrix.cuda }}
method: network
use-github-cache: false

- name: nvcc check
shell: powershell
run: |
nvcc -V
ls $env:CUDA_PATH
ls $env:CUDA_PATH\bin
ls $env:CUDA_PATH\include
- name: cmake version
shell: bash
run: cmake --version

- name: Configure CMake
id: configure
shell: bash
run: cmake source -B ${{ env.build_dir }} -G "${{ matrix.visual_studio }}" -A x64

- name: Configure Error Processing
if: ${{ (failure() && steps.configure.outcome == 'failure') || success() }}
working-directory: ${{ env.build_dir }}
shell: bash
run: |
if [[ -f "CMakeFiles/CMakeOutput.log" ]]; then
echo "---- CMakeFiles/CMakeOutput.log"
cat CMakeFiles/CMakeOutput.log
echo "----"
fi
if [[ -f "CMakeFiles/CMakeError.log" ]]; then
echo "---- CMakeFiles/CMakeError.log"
cat CMakeFiles/CMakeError.log
echo "----"
fi
- name: Build
working-directory: ${{ env.build_dir }}
run: cmake --build . --config ${{ env.config }} --target ALL_BUILD --verbose

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-x64-cuda-${{ matrix.cuda }}
path: build/Release/**/*