[FEAT]: Build Workflow + Templates (#15)

This commit is contained in:
Jeremy Felder
2023-03-14 11:58:27 +02:00
committed by GitHub
parent 00231723b9
commit db43edb64b
6 changed files with 114 additions and 3 deletions

32
.github/ISSUE_TEMPLATE/bug_issue.md vendored Normal file
View File

@@ -0,0 +1,32 @@
---
name: ":bug: Bug Report"
about: Create a bug report to help us improve the repo
title: "[BUG]: "
labels: bug
---
## Description
Please provide a clear and concise description of the bug.
### Reproduce
Please list the steps to reproduce the issue.
## Expected Behavior
Please provide a clear and concise description of what you expected to happen.
## Environment
Please complete the following information:
OS + Version:
Cargo Version:
GPU type:
## Additional context
Please provide any additional context that may be helpful in confirming and resolving this issue.

View File

@@ -0,0 +1,14 @@
---
name: ":sparkles: Feature Request"
about: Request the inclusion of a new feature or functionality
title: "[FEAT]: "
labels: enhancement
---
## Description
Please provide a clear and concise description of the feature you would like included.
## Motivation
Please provide a clear and concise description of the motivation for adding this feature.

View File

@@ -0,0 +1,7 @@
## Describe the changes
This PR...
## Linked Issues
Closes #

46
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,46 @@
name: Build
on:
pull_request:
branches: [ "main" ]
paths:
- "icicle/**"
- "src/**"
- "Cargo.toml"
- "build.rs"
env:
CARGO_TERM_COLOR: always
ARCH_TYPE: sm_70
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
# Checkout code
- uses: actions/checkout@v3
# Download (or from cache) and install CUDA Toolkit 12.1.0
- uses: Jimver/cuda-toolkit@v0.2.9
id: cuda-toolkit
with:
cuda: '12.1.0'
use-github-cache: true
# Build from cargo - Rust utils are preinstalled on latest images
# https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md#rust-tools
- name: Build
run: cargo build --release --verbose
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: Jimver/cuda-toolkit@v0.2.9
id: cuda-toolkit
with:
cuda: '12.1.0'
use-github-cache: true
- name: Build
run: cargo build --release --verbose