Skip to content

Commit

Permalink
Update build-slurm-exporter.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
trent-safe-ai authored Oct 19, 2023
1 parent f4ea3bd commit e035007
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/build-slurm-exporter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,21 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.17 # Use the specific Go version.

- name: Install Slurm dependencies
run: |
sudo apt-get update
sudo apt-get update
sudo apt-get install -y munge libmunge-dev libmunge2 slurm-wlm slurm-wlm-doc
- name: Check MUNGE installation
run: |
which munge
munge --version
- name: Locate create-munge-key
run: |
find / -name create-munge-key 2>/dev/null
- name: Configure Munge
run: |
/usr/sbin/create-munge-key
Expand All @@ -39,11 +48,11 @@ jobs:
- name: Configure Slurm
run: |
echo "ControlMachine=$(hostname)" | tee /etc/slurm-llnl/slurm.conf
systemctl enable slurmctld
systemctl start slurmctld
systemctl enable slurmd
systemctl start slurmd
echo "ControlMachine=$(hostname)" | sudo tee /etc/slurm-llnl/slurm.conf
sudo systemctl enable slurmctld
sudo systemctl start slurmctld
sudo systemctl enable slurmd
sudo systemctl start slurmd
- name: Test Slurm installation
run: sinfo
Expand Down

0 comments on commit e035007

Please sign in to comment.