Skip to content

Commit

Permalink
why not just install slurm?
Browse files Browse the repository at this point in the history
  • Loading branch information
mduncans committed Sep 6, 2024
1 parent dff4ee2 commit 6efb776
Showing 1 changed file with 5 additions and 26 deletions.
31 changes: 5 additions & 26 deletions .github/workflows/RunChecks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,32 +35,10 @@ jobs:
r-version: ${{ matrix.config.r }}
use-public-rspm: true

- name: Download mocked binaries
- name: Install Slurm tools
run: |
mkdir -p /usr/local/bin
cd /tmp
gh release download "sinfo/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/sinfo_Linux_x86_64.tar.gz
mv ./sinfo /usr/local/bin/sinfo
chmod +x /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 +x /usr/local/bin/sacct
echo "/usr/local/bin" >> $GITHUB_PATH
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Grab outputs directory from mocked repo
run: |
cd /tmp
gh repo clone a2-ai-tech-training/slurm-mocks
mv /tmp/slurm-mocks/sinfo/outputs $GITHUB_WORKSPACE/
rm -rf /tmp/slurm-mocks
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
sudo apt-get update
sudo apt-get install -y slurm-client
- uses: r-lib/actions/setup-r-dependencies@v2
with:
Expand All @@ -74,4 +52,5 @@ jobs:
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
build_args: '"--no-build-vignettes"'


0 comments on commit 6efb776

Please sign in to comment.