Skip to content

Commit

Permalink
Add CI to build the code
Browse files Browse the repository at this point in the history
  • Loading branch information
loostrum committed Jul 18, 2024
1 parent 849da92 commit c04b773
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: build

on:
push:
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: Install cuda
uses: Jimver/[email protected]
with:
cuda: ${{ env.cuda-version }}
method: "network"
sub-packages: '["runtime", "nvcc", "nvrtc-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 }} -S . -B build
- name: Build the code
shell: bash -el {0}
run: |
cd build && make -j

0 comments on commit c04b773

Please sign in to comment.