-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add build yml and markdown link checker
- Loading branch information
1 parent
0e8a8d2
commit cfde495
Showing
2 changed files
with
78 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
branches: | ||
#- main | ||
- add_build_action | ||
workflow_dispatch: | ||
|
||
jobs: | ||
linting: | ||
name: run | ||
runs-on: ubuntu-latest | ||
env: | ||
gcc-version: "12" | ||
cuda-version: "12.2.0" | ||
steps: | ||
|
||
- name: Check out a copy of the repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Show some relevant env vars | ||
run: | | ||
echo "GITHUB_BASE_REF = $GITHUB_BASE_REF" | ||
echo "GITHUB_HEAD_REF = $GITHUB_HEAD_REF" | ||
echo "GITHUB_REF_NAME = $GITHUB_REF_NAME" | ||
- name: Install cuda | ||
uses: Jimver/[email protected] | ||
with: | ||
cuda: ${{ env.cuda-version }} | ||
method: "network" | ||
sub-packages: '["nvcc", "nvrtc-dev", "nvtx"]' | ||
non-cuda-sub-packages: '["libcufft-dev"]' | ||
linux-local-args: '["--toolkit"]' | ||
|
||
- name: Show tool versions | ||
run: | | ||
echo "nvcc: $(nvcc --version)" | ||
echo "g++: $(g++-${{ env.gcc-version}} --version)" | ||
- name: Run CMake | ||
shell: bash -el {0} | ||
run: | | ||
cmake -DCMAKE_CXX_COMPILER=g++-${{ env.gcc-version }} -DCUDAWRAPPERS_BUILD_TESTING=True -S . -B build | ||
- name: Build the code | ||
shell: bash -el {0} | ||
run: | | ||
cd build && make -j |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: markdown-link-check | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
#- main | ||
- add_build_action | ||
pull_request: | ||
branches: | ||
- main | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- ready_for_review | ||
|
||
jobs: | ||
|
||
markdown-link-check: | ||
name: Check markdown links | ||
if: github.event.pull_request.draft == false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@main | ||
- uses: gaurav-nelson/github-action-markdown-link-check@v1 |