diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..ec57e3c7 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,32 @@ +name: CI Workflow +on: + # Run this workflow every time a new commit pushed to upstream/fork repository. + # Run workflow on fork repository will help contributors find and resolve issues before sending a PR. + pull_request: + branches-ignore: + - 'dependabot/**' + push: + branches: + - main +permissions: + contents: read # for actions/checkout to fetch code + +env: + DEBIAN_FRONTEND: noninteractive + +jobs: + build: + runs-on: ubuntu-latest + container: + image: nvidia/cuda:12.2.0-devel-ubuntu20.04 + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Install C build tools + run: | + apt update + apt install -y cmake + - name: Build project + run: | + chmod +x ./build.sh + ./build.sh \ No newline at end of file