Skip to content

Commit

Permalink
Merge pull request #10 from A2-ai/pkgdown_ci
Browse files Browse the repository at this point in the history
Pkgdown ci
  • Loading branch information
mduncans authored Sep 9, 2024
2 parents 531ea0e + d3cba86 commit 4022851
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
branches: [main, master, pkgdown_ci]
pull_request:
branches: [main, master]
release:
Expand Down Expand Up @@ -30,9 +30,42 @@ 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: any::pkgdown, local::.
extra-packages: |
metrumresearchgroup/mrgmisc
metrumresearchgroup/nmrec
metrumresearchgroup/bbr
any::pkgdown
local::.
needs: website

- name: Build site
Expand Down

0 comments on commit 4022851

Please sign in to comment.