Skip to content

Commit

Permalink
added slurm mocks to pkdown
Browse files Browse the repository at this point in the history
  • Loading branch information
mduncans committed Sep 9, 2024
1 parent 370beea commit d3cba86
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,34 @@ jobs:
with:
use-public-rspm: true

- name: Download mocked binaries
run: |
mkdir -p /usr/local/bin
cd /tmp
gh release download "sinfo/v0.2.1" -R a2-ai-tech-training/slurm-mocks -p "*Linux_x86_64.tar.gz" -D /usr/local/bin/
tar -xvf /usr/local/bin/sinfo_Linux_x86_64.tar.gz
mv ./sinfo /usr/local/bin/sinfo
chmod 755 /usr/local/bin/sinfo
gh release download "sacct/v0.2.0" -R a2-ai-tech-training/slurm-mocks -p "*Linux_x86_64.tar.gz" -D /usr/local/bin/
tar -xvf /usr/local/bin/sacct_Linux_x86_64.tar.gz
mv ./sacct /usr/local/bin/sacct
chmod 755 /usr/local/bin/sacct
gh release download "squeue/v0.2.0" -R a2-ai-tech-training/slurm-mocks -p "*Linux_x86_64.tar.gz" -D /usr/local/bin/
tar -xvf /usr/local/bin/squeue_Linux_x86_64.tar.gz
mv ./squeue /usr/local/bin/squeue
chmod 755 /usr/local/bin/squeue
gh release download "sbatch/v0.2.0" -R a2-ai-tech-training/slurm-mocks -p "*Linux_x86_64.tar.gz" -D /usr/local/bin/
tar -xvf /usr/local/bin/sbatch_Linux_x86_64.tar.gz
mv ./sbatch /usr/local/bin/sbatch
chmod 755 /usr/local/bin/sbatch
echo "/usr/local/bin" >> $GITHUB_PATH
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
Expand Down

0 comments on commit d3cba86

Please sign in to comment.