From 6a6a99676dc4f90541f6cd08e99f0748355e2ea5 Mon Sep 17 00:00:00 2001 From: Ian Taylor Date: Tue, 6 Sep 2022 15:19:58 -0700 Subject: [PATCH] switch run with est action to Windows - linux build is much slower right now --- .github/workflows/run-ss3-with-est.yml | 27 +++++++++++++------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/.github/workflows/run-ss3-with-est.yml b/.github/workflows/run-ss3-with-est.yml index 1c53b0d..470f88f 100644 --- a/.github/workflows/run-ss3-with-est.yml +++ b/.github/workflows/run-ss3-with-est.yml @@ -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" @@ -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: |