Skip to content

Commit

Permalink
ubuntu.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mrprajesh authored Feb 20, 2024
1 parent 571188e commit bf52962
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@

name: Ubuntu

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master and dev branch
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
BUILD_TYPE: Release
ARCHITECTURES: 75

jobs:
build:
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-20.04]

# https://github.blog/changelog/2021-02-08-github-actions-skip-pull-request-and-push-workflows-with-skip-ci/
if: "!contains(github.event.commits[0].message, '[skip ubuntu]')"
runs-on: ${{matrix.os}}

steps:

# Fetch CUDA toolkit using Jimver/cuda-toolkit
- name: Fetch CUDA toolkit
uses: Jimver/[email protected]
id: cuda-toolkit
with:
cuda: '12.1.0'
linux-local-args: '["--toolkit"]'

- name: Check nvcc version
run: nvcc -V

- uses: actions/checkout@v3

- name: Configure make
run: make

- name: Build all applications
run: ./Hello.out

0 comments on commit bf52962

Please sign in to comment.