Skip to content

get macos info for macos-14 #13

get macos info for macos-14

get macos info for macos-14 #13

name: update-ss3-test-models-mac
on:
push:
jobs:
update-ss3-test-models-mac:
runs-on: macos-14
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: setup R
uses: r-lib/actions/setup-r@v2
- name: install remotes
run: Rscript -e 'install.packages("remotes")'
- name: install r4ss
run: Rscript -e 'remotes::install_github("r4ss/r4ss")'
- name: install other r packages
run: Rscript -e 'install.packages(c("purrr","furrr","parallely","future"))'
- name: get R info
run: |
.Platform
R.version[["os"]]
shell: Rscript {0}
# - name: Get the latest SS3 executable
# run: |
# wget -O ss3 https://github.com/nmfs-ost/ss3-source-code/releases/latest/download/ss3_osx_m2
# sudo chmod a+x ss3
# mv ss3 models/ss3
# - name: Run models
# run: |
# mod_names <- list.dirs(file.path("models"), full.names = FALSE, recursive = FALSE)
# mod_paths <- list.dirs(file.path("models"), full.names = TRUE, recursive = FALSE)
# print(mod_names)
# ncores <- parallelly::availableCores(omit = 1)
# future::plan(future::multisession, workers = ncores)
# mod_ran <- furrr::future_map(mod_paths, function(x){r4ss::run(dir = x, exe = "/Users/runner/work/ss3-test-models/ss3-test-models/models/ss3", verbose = TRUE)})
# print(mod_ran)
# shell: Rscript {0}