summaryrefslogtreecommitdiff
path: root/.github/workflows/main.yml
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2025-02-10 17:35:31 -0800
committerGitHub <[email protected]>2025-02-10 17:35:31 -0800
commit0e39753a623978eb37bf044b21fde1a5909bff03 (patch)
tree13416ab3a165dde580fe847b06bde7c966482088 /.github/workflows/main.yml
parent6b244a5d3be7811f16c312905c1c7fee137ac7a4 (diff)
parent48af0c94ca6d7b05f800f535b3de4cefafcfa655 (diff)
Merge pull request #313 from accel-sim/dev
Purdue Updates Merging
Diffstat (limited to '.github/workflows/main.yml')
-rw-r--r--.github/workflows/main.yml105
1 files changed, 105 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..8e0ae23
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,105 @@
+# This is a basic workflow to help you get started with Actions
+
+name: Short-Tests
+
+# Controls when the workflow will run
+on:
+ push:
+ branches-ignore:
+ - "gh-readonly-queue**"
+ merge_group:
+ pull_request:
+
+ # Allows you to run this workflow manually from the Actions tab
+ workflow_dispatch:
+
+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
+jobs:
+ build-TITANV:
+ runs-on: ubuntu-latest
+ container:
+ image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7
+ env:
+ CONFIG: TITANV
+
+ # Steps represent a sequence of tasks that will be executed as part of the job
+ steps:
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
+ - uses: actions/checkout@v4
+ - name: Run Simulation
+ run: /bin/bash $GITHUB_WORKSPACE/short-tests.sh
+
+ build-TITANV-LOCALXBAR:
+ runs-on: ubuntu-latest
+ container:
+ image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7
+ env:
+ CONFIG: TITANV-LOCALXBAR
+
+ # Steps represent a sequence of tasks that will be executed as part of the job
+ steps:
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
+ - uses: actions/checkout@v4
+ - name: Run Simulation
+ run: /bin/bash $GITHUB_WORKSPACE/short-tests.sh
+
+ build-QV100:
+ runs-on: ubuntu-latest
+ container:
+ image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7
+ env:
+ CONFIG: QV100
+
+ # Steps represent a sequence of tasks that will be executed as part of the job
+ steps:
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
+ - uses: actions/checkout@v4
+ - name: Run Simulation
+ run: /bin/bash $GITHUB_WORKSPACE/short-tests.sh
+
+ build-2060:
+ runs-on: ubuntu-latest
+ container:
+ image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7
+ env:
+ CONFIG: RTX2060
+
+ # Steps represent a sequence of tasks that will be executed as part of the job
+ steps:
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
+ - uses: actions/checkout@v4
+ - name: Run Simulation
+ run: /bin/bash $GITHUB_WORKSPACE/short-tests.sh
+
+ build-3070:
+ runs-on: ubuntu-latest
+ container:
+ image: tgrogers/accel-sim_regress:Ubuntu-22.04-cuda-11.7
+ env:
+ CONFIG: RTX3070
+
+ # Steps represent a sequence of tasks that will be executed as part of the job
+ steps:
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
+ - uses: actions/checkout@v4
+ - name: Run Simulation
+ run: /bin/bash $GITHUB_WORKSPACE/short-tests.sh
+ format-code:
+ if: github.event_name == 'pull_request'
+ runs-on: tgrogers-raid
+ needs: [build-TITANV, build-TITANV-LOCALXBAR, build-QV100, build-2060, build-3070]
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ ref: ${{github.event.pull_request.head.ref}}
+ repository: ${{github.event.pull_request.head.repo.full_name}}
+ ssh-key: ''
+
+ - name: Run clang-format
+ run: |
+ git config user.name "purdue-jenkins"
+ git config user.email "[email protected]"
+ git remote set-url origin [email protected]:${{github.event.pull_request.head.repo.full_name}}
+ git remote -v
+ /bin/bash ./format-code.sh
+ if git status --untracked-files=no | grep -q "nothing to commit"; then echo "No changes to commit."; else git commit -a -m "Automated Format"; git push; fi