Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions .github/workflows/build-admb-and-ss3-from-source.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Builds admb from source and then builds the stock synthesis executables from source for testing and distribution.
# for macOS 13 (couldn't get this to run on macOS 12), macOS latest (arm64 architecture), linux, Windows
# for macOS x86_64, macOS latest (arm64 architecture), linux, Windows
# Runs on a scheduled basis weekly to ensure that this workflow will work IF the build-ss3.yml workflow stops
# working due to issues with the admb docker image.
name: build-admb-and-ss3-from-source
Expand All @@ -18,7 +18,7 @@ jobs:
config:
- {os: windows-latest}
- {os: macos-latest}
- {os: macos-13}
- {os: macos-15-intel}
- {os: ubuntu-latest}
# Limit run time to 90 min to avoid wasting action minutes.
# Compiling admb and ss3 on all operating systems takes ~30 min
Expand All @@ -29,11 +29,11 @@ jobs:
- uses: actions/checkout@v5

- name: Update Homebrew
if: matrix.config.os == 'macos-13'
if: matrix.config.os == 'macos-15-intel'
run: brew update

- name: Install qpdf
if: matrix.config.os == 'macos-13'
if: matrix.config.os == 'macos-15-intel'
run: brew install qpdf

# Set up R
Expand Down Expand Up @@ -69,27 +69,27 @@ jobs:

# Build ADMB for macOS
- name: Clean, macOS
if: matrix.config.os == 'macos-latest' || matrix.config.os == 'macos-13'
if: matrix.config.os == 'macos-latest' || matrix.config.os == 'macos-15-intel'
run: cd admb && make clean

- name: See where admb is, macOS
if: matrix.config.os == 'macos-latest' || matrix.config.os == 'macos-13'
if: matrix.config.os == 'macos-latest' || matrix.config.os == 'macos-15-intel'
run: |
ls
cd admb && ls

- name: Compile admb, macOS
if: matrix.config.os == 'macos-latest' || matrix.config.os == 'macos-13'
if: matrix.config.os == 'macos-latest' || matrix.config.os == 'macos-15-intel'
run: |
cd admb && make -j 4

# - name: See where admb is, mac
# if: matrix.config.os == 'macos-latest' || matrix.config.os == 'macos-13'
# if: matrix.config.os == 'macos-latest' || matrix.config.os == 'macos-15-intel'
# run: |
# cd admb && ls -l

- name: Change permissions of admb and put in path, macOS
if: matrix.config.os == 'macos-latest' || matrix.config.os == 'macos-13'
if: matrix.config.os == 'macos-latest' || matrix.config.os == 'macos-15-intel'
run: |
sudo mv admb /usr/local/bin
sudo chmod 755 /usr/local/bin/admb
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:

- name: Get the last tag on unix (macOS and linux)
id: get-latest-tag-unix
if: matrix.config.os == 'macos-latest' || matrix.config.os == 'macos-13' || matrix.config.os == 'ubuntu-latest'
if: matrix.config.os == 'macos-latest' || matrix.config.os == 'macos-15-intel' || matrix.config.os == 'ubuntu-latest'
run: |
git tag
latest_tag=$(git describe --abbrev=0 --tags)
Expand All @@ -152,7 +152,7 @@ jobs:

- name: Pull the last tag value to use in the Rscript on unix (macOS and linux)
id: get-version-unix
if: matrix.config.os == 'macos-latest' || matrix.config.os == 'macos-13' || matrix.config.os == 'ubuntu-latest'
if: matrix.config.os == 'macos-latest' || matrix.config.os == 'macos-15-intel' || matrix.config.os == 'ubuntu-latest'
run: |
echo "${{ steps.get-latest-tag-unix.outputs.tag }}" > .github/last_tag.txt
echo "${{ steps.get-latest-tag-unix.outputs.tag_commit }}" > .github/last_tag_commit.txt
Expand Down Expand Up @@ -244,7 +244,7 @@ jobs:

# Build SS3 for macOS
- name: Build stock synthesis for macOS
if: matrix.config.os == 'macos-latest' || matrix.config.os == 'macos-13'
if: matrix.config.os == 'macos-latest' || matrix.config.os == 'macos-15-intel'
run: |
rm -rf SS330
rm -rf ss3_osx.tar
Expand All @@ -254,13 +254,13 @@ jobs:
/bin/bash ./Make_SS_330_new.sh -b SS330 -o

- name: Verify binary on macOS
if: matrix.config.os == 'macos-latest' || matrix.config.os == 'macos-13'
if: matrix.config.os == 'macos-latest' || matrix.config.os == 'macos-15-intel'
run: |
shasum -a 256 SS330/ss3
shasum -a 256 SS330/ss3_opt

- name: Delete unnecessary files and change exe names on macOS
if: matrix.config.os == 'macos-latest' || matrix.config.os == 'macos-13'
if: matrix.config.os == 'macos-latest' || matrix.config.os == 'macos-15-intel'
run: |
cd SS330
rm *.obj *.htp *.cpp ss3_opt.tpl
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/build-ss3.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Builds the stock synthesis executables for testing and distribution using the admb docker image.
# for macOS 12, and macos-14 (arm64 architecture), linux, Windows
# for macOS x86_64, and macos-latest, linux, Windows
# Runs on every push and PR (even draft PRs)
name: build-ss3

Expand Down Expand Up @@ -27,7 +27,7 @@ jobs:
matrix:
config:
- {os: windows-latest}
- {os: macos-13}
- {os: macos-15-intel}
- {os: macos-latest}
- {os: ubuntu-latest}
# Limit run time to 90 min to avoid wasting action minutes.
Expand All @@ -43,7 +43,7 @@ jobs:
repository: 'nmfs-ost/ss3-source-code'

# Checkout ADMB repository
- name: Checkout admb for macos-13 build
- name: Checkout admb for macos-15-intel build
uses: actions/checkout@v5
with:
repository: admb-project/admb
Expand All @@ -62,21 +62,21 @@ jobs:
git fetch --tags
git fetch --prune --unshallow || true

# Build ADMB for macos-13
- name: Build ADMB for macos-13 and put in path
if: matrix.config.os == 'macos-13' || matrix.config.os == 'macos-latest'
# Build ADMB for macos-15-intel
- name: Build ADMB for macos-15-intel and put in path
if: matrix.config.os == 'macos-15-intel' || matrix.config.os == 'macos-latest'
run: |
cd admb && make clean
- name: See where admb is
if: matrix.config.os == 'macos-13' || matrix.config.os == 'macos-latest'
if: matrix.config.os == 'macos-15-intel' || matrix.config.os == 'macos-latest'
run: |
cd admb && ls
- name: Compile admb, macOS
if: matrix.config.os == 'macos-13' || matrix.config.os == 'macos-latest'
if: matrix.config.os == 'macos-15-intel' || matrix.config.os == 'macos-latest'
run: |
cd admb && make -j 4
- name: Change permissions of admb and put in path, macOS
if: matrix.config.os == 'macos-13' || matrix.config.os == 'macos-latest'
if: matrix.config.os == 'macos-15-intel' || matrix.config.os == 'macos-latest'
run: |
sudo mv admb /usr/local/bin
sudo chmod 755 /usr/local/bin/admb
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:

- name: Get the last tag on unix (macOS and linux)
id: get-latest-tag-unix
if: matrix.config.os == 'macos-13' || matrix.config.os == 'macos-latest' || matrix.config.os == 'ubuntu-latest'
if: matrix.config.os == 'macos-15-intel' || matrix.config.os == 'macos-latest' || matrix.config.os == 'ubuntu-latest'
run: |
git tag
latest_tag=$(git describe --abbrev=0 --tags)
Expand All @@ -116,7 +116,7 @@ jobs:

- name: Pull the last tag value to use in the Rscript on unix (macOS and linux)
id: get-version-unix
if: matrix.config.os == 'macos-13' || matrix.config.os == 'macos-latest' || matrix.config.os == 'ubuntu-latest'
if: matrix.config.os == 'macos-15-intel' || matrix.config.os == 'macos-latest' || matrix.config.os == 'ubuntu-latest'
run: |
echo "${{ steps.get-latest-tag-unix.outputs.tag }}" > .github/last_tag.txt
echo "${{ steps.get-latest-tag-unix.outputs.tag_commit }}" > .github/last_tag_commit.txt
Expand Down Expand Up @@ -205,7 +205,7 @@ jobs:
mv SS330/ss3_opt.exe SS330/ss3_opt_win.exe

- name: Build stock synthesis for mac with admb from source
if: matrix.config.os == 'macos-13' || matrix.config.os == 'macos-latest'
if: matrix.config.os == 'macos-15-intel' || matrix.config.os == 'macos-latest'
run: |
rm -rf SS330
rm -rf ss3_osx.tar
Expand All @@ -231,13 +231,13 @@ jobs:
# /bin/bash ./Make_SS_330_new.sh --admb docker -b SS330 -o

- name: Verify binary on mac
if: matrix.config.os == 'macos-13' || matrix.config.os == 'macos-latest'
if: matrix.config.os == 'macos-15-intel' || matrix.config.os == 'macos-latest'
run: |
shasum -a 256 SS330/ss3
shasum -a 256 SS330/ss3_opt

- name: Delete unneeded files and change exe names on mac
if: matrix.config.os == 'macos-13' || matrix.config.os == 'macos-latest'
if: matrix.config.os == 'macos-15-intel' || matrix.config.os == 'macos-latest'
run: |
cd SS330
rm *.obj *.htp *.cpp ss3_opt.tpl ss3.tpl
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-simple-with-ss3-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-13, macos-latest, windows-latest]
os: [ubuntu-latest, macos-15-intel, macos-latest, windows-latest]
include:
- os: ubuntu-latest
artifact_name: ss3-ubuntu-latest
exe: ss3_linux
- os: macos-13
artifact_name: ss3-macos-13
- os: macos-15-intel
artifact_name: ss3-macos-15-intel
exe: ss3_osx
- os: macos-latest
artifact_name: ss3-macos-latest
Expand Down
Loading