Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Commit

Permalink
switch run with est action to Windows
Browse files Browse the repository at this point in the history
- linux build is much slower right now
  • Loading branch information
iantaylor-NOAA committed Sep 6, 2022
1 parent 5f9ee2a commit 6a6a996
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/run-ss3-with-est.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# run fast running SS models with estimation
# run fast running SS models with estimation (using Windows only)
name: run-with-est
on:
workflow_call:

jobs:
run-with-est:
runs-on: ubuntu-latest
runs-on: windows-latest
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"
Expand All @@ -26,24 +26,23 @@ jobs:

- name: Get admb and put in path
run: |
wget https://github.com/admb-project/admb/releases/download/admb-13.0/admb-13.0-linux.zip
sudo unzip admb-13.0-linux.zip -d /usr/local/bin
sudo chmod 755 /usr/local/bin/admb-13.0/bin/admb
echo "/usr/local/bin/admb-13.0/bin" >> $GITHUB_PATH
Invoke-WebRequest -Uri https://github.com/admb-project/admb/releases/download/admb-13.0/admb-13.0-windows.zip -OutFile "D:\a\stock-synthesis\stock-synthesis\admb-13.0.zip"
Expand-Archive -LiteralPath "D:\a\stock-synthesis\stock-synthesis\admb-13.0.zip" -DestinationPath "D:\a\stock-synthesis\stock-synthesis\"
echo "D:\a\stock-synthesis\stock-synthesis\admb-13.0\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Build stock synthesis
- name: Build stock synthesis for windows
run: |
rm -rf SS330
mkdir SS330
/bin/bash ./Make_SS_330_new.sh -b SS330
cd Compile
./Make_SS_safe.bat
./Make_SS_fast.bat
- name: move exes, scripts to needed locations
run: |
mv test-models-repo/models test-models-repo/model_runs
mv SS330/ss test-models-repo/model_runs/ss
mv test-models-repo\models test-models-repo\model_runs
mv Compile/ss.exe test-models-repo\model_runs\ss.exe
- name: change permissions on ss exes
run: chmod a+x test-models-repo/model_runs/ss
#- name: change permissions on ss exes
# run: chmod a+x test-models-repo/model_runs/ss

- name: run models
run: |
Expand Down

0 comments on commit 6a6a996

Please sign in to comment.