Skip to content

Commit

Permalink
Merge pull request #91 from PIFSCstockassessments/90-build-ss-r-cmd-c…
Browse files Browse the repository at this point in the history
…heck-macos-latest-release-error-mv-rename-ss_osx-to-ss-no-such-file-or-directory

adding retry action to mac-os
  • Loading branch information
efletcherPIFSC authored Jul 20, 2023
2 parents 8b79e7e + 0308f39 commit 88f8353
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,18 @@ jobs:
mv ss_win.exe ss.exe
cp ss.exe inst/extdata/ss.exe
- name: Get the latest SS3 executable for macOS and move to expected location
- uses: nick-fields/retry@v2
if: matrix.config.os == 'macOS-latest'
run: |
curl https://api.github.com/repos/nmfs-stock-synthesis/stock-synthesis/releases/latest | grep "browser_download_url" | grep -Eo 'https://[^\"]*' | grep "ss_osx" | xargs wget
mv ss_osx ss
sudo chmod a+x ss
cp ss inst/extdata/ss
rm ss
with:
timeout_minutes: 3
max_attempts: 3
retry_on: error
command: |
curl https://api.github.com/repos/nmfs-stock-synthesis/stock-synthesis/releases/latest | grep "browser_download_url" | grep -Eo 'https://[^\"]*' | grep "ss_osx" | xargs wget
mv ss_osx ss
sudo chmod a+x ss
cp ss inst/extdata/ss
rm ss
- uses: r-lib/actions/setup-pandoc@v2

Expand Down

0 comments on commit 88f8353

Please sign in to comment.