Skip to content

Commit

Permalink
add summary to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ryichsecondary committed Dec 17, 2024
1 parent 1856572 commit 62eb378
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/getting-started-vast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
- name: check out repo
uses: actions/checkout@v3

- name: print info
run: bash .github/workflows/print-info.sh

- name: setup
run: |
nvidia-smi
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/getting-started.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ jobs:
timeout-minutes: 15

steps:
- name: check out repo
uses: actions/checkout@v3

- name: print info
run: bash .github/workflows/print-info.sh

- name: prepare env
run: |
echo "EXEC=docker exec ${{env.TMP_CONTAINER_NAME}}" >> $GITHUB_ENV
Expand All @@ -31,9 +37,6 @@ jobs:
echo "EXEC: $EXEC"
echo "EXEC_W: $EXEC_W"
- name: check out repo
uses: actions/checkout@v3

# optional
#
# - name: install NVIDIA container toolkit
Expand Down Expand Up @@ -70,5 +73,4 @@ jobs:
if: always()
run: |
docker stop $TMP_CONTAINER_NAME
docker rm $TMP_CONTAINER_NAME
docker rm $TMP_CONTAINER_NAME
18 changes: 18 additions & 0 deletions .github/workflows/print-info.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# File: print-info.sh
# Author: Ryoichi Ando ([email protected])
# License: Apache v2.0

echo '## NVIDIA Driver Info' >> $GITHUB_STEP_SUMMARY
echo '```bash' >> $GITHUB_STEP_SUMMARY
nvidia-smi >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY

echo '## OS Info' >> $GITHUB_STEP_SUMMARY
echo '```bash' >> $GITHUB_STEP_SUMMARY
lsb_release -a >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY

echo '## Kernel Info' >> $GITHUB_STEP_SUMMARY
echo '```bash' >> $GITHUB_STEP_SUMMARY
uname -a >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY

0 comments on commit 62eb378

Please sign in to comment.