Skip to content

Update DESCRIPTION

Update DESCRIPTION #90

Workflow file for this run

# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
paths-ignore:
- 'README.md'
pull_request:
name: build-ss-R-CMD-check
jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- {os: ubuntu-latest, r: 'release'}
- {os: macOS-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v3
- name: Get the latest SS3 executable for linux and move to expected location
if: matrix.config.os == 'ubuntu-latest'
run: |
curl https://api.github.com/repos/nmfs-stock-synthesis/stock-synthesis/releases/latest | grep "browser_download_url" | grep -Eo 'https://[^\"]*' | grep "ss_linux" | xargs wget
mv ss_linux ss
sudo chmod a+x ss
cp ss inst/extdata/ss
rm ss
- name: Get the latest SS3 executable for windows and move to expected location
if: matrix.config.os == 'windows-latest'
run: |
Invoke-WebRequest -Uri https://github.com/nmfs-stock-synthesis/stock-synthesis/releases/download/v3.30.21/ss_win.exe -Outfile "D:\a\ss3diags\ss3diags\ss_win.exe"
mv ss_win.exe ss.exe
cp ss.exe inst/extdata/ss.exe
- uses: nick-fields/retry@v2
if: matrix.config.os == 'macOS-latest'
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
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
any::rcmdcheck
any::remotes
- uses: r-lib/actions/check-r-package@v2
with:
error-on: '"error"'
- name: remove ss executable
run: |
if ["$RUNNER_OS" == "Linux" ]; then
rm inst/extdata/ss.exe
else
rm inst/extdata/ss
fi
shell: bash