Skip to content

Commit

Permalink
try download artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
e-perl-NOAA committed Nov 13, 2024
1 parent 3f26fa7 commit 6f9f4d1
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-admb-and-ss3-from-source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:

# Set up R
- name: Set up R, specify rtools version and path for Windows
if: matrix.config.os == 'windows-latest'
uses: r-lib/actions/setup-r@v2
with:
r-version: 'release'
Expand Down Expand Up @@ -255,7 +256,7 @@ jobs:
if: matrix.config.os == 'macos-latest' || matrix.config.os == 'macos-13'
run: |
cd SS330
rm *.obj *.htp *.cpp ss3_opt.tpl
rm *.obj *.htp *.cpp ss3_opt.tpl ss3.tpl
mv ss3 ss3_osx
mv ss3_opt ss3_opt_osx
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/test-all-os-with-model.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: test-all-os-with-model
on:
workflow_dispatch:
push:
# workflow_run:
# workflows: ["build-ss3"]
# types:
# - completed

jobs:
test-all-os-with-model:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {os: ubuntu-latest}

steps:
- uses: actions/checkout@v4

# - name: Checkout models repo
# uses: actions/checkout@v4
# with:
# repository: 'nmfs-ost/ss3-test-models'
# path: test-models-repo

# - name: Install libcurl and other necessary linux packages
# run: |
# sudo add-apt-repository ppa:ubuntu-toolchain-r/test
# sudo apt-get update
# sudo apt-get install --only-upgrade libstdc++6
# sudo apt-get install -y libcurl4-openssl-dev

# - name: Setup R
# uses: r-lib/actions/setup-r@v2

# - name: Install R packages to run in parallel
# run: Rscript -e 'install.packages(c("remotes"))'

# - name: Install r4ss
# run: Rscript -e 'remotes::install_github("r4ss/r4ss")'

- name: Download artifact
uses: actions/download-artifact@v4
with:
pattern: ss3-*
path: ./

- name: list files
run: ls

# - name: unzip
# run: |
# unzip ss3-ubuntu-latest.zip -d ss3_exes
# mv ss3_exes/ss3_linux test-models-repo/models/BigSkate_2019/ss3
# sudo chmod a+x test-models-repo/models/BigSkate_2019/ss3

# - name: run
# run: Rscript -e 'r4ss::run(dir = file.path(getwd(), "test-models-repo/models/BigSkate_2019"))'

0 comments on commit 6f9f4d1

Please sign in to comment.