Skip to content

Commit

Permalink
build ubuntu 22.04-arm for testing with r4ss tests
Browse files Browse the repository at this point in the history
  • Loading branch information
e-perl-NOAA committed Feb 4, 2025
1 parent 9fa9c36 commit 685a6dd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build-admb-and-ss3-from-source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- {os: macos-latest}
- {os: macos-13}
- {os: ubuntu-latest}
- {os: ubuntu-22.04}
- {os: ubuntu-22.04-arm}
# Limit run time to 90 min to avoid wasting action minutes.
# Compiling admb and ss3 on all operating systems takes ~30 min
timeout-minutes: 90
Expand Down Expand Up @@ -90,11 +90,11 @@ jobs:
# Build ADMB for Linux
- name: Update Ubuntu packages
if: matrix.config.os == 'ubuntu-latest' || matrix.config.os == 'ubuntu-22.04'
if: matrix.config.os == 'ubuntu-latest' || matrix.config.os == 'ubuntu-22.04-arm'
run: sudo apt-get update

- name: Change permissions of admb and put in path, linux
if: matrix.config.os == 'ubuntu-latest' || matrix.config.os == 'ubuntu-22.04'
if: matrix.config.os == 'ubuntu-latest' || matrix.config.os == 'ubuntu-22.04-arm'
run: |
cd admb && make clean
num_cpus=`cat /proc/cpuinfo | grep processor | wc -l`
Expand Down Expand Up @@ -133,7 +133,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' || matrix.config.os == 'ubuntu-22.04'
if: matrix.config.os == 'macos-latest' || matrix.config.os == 'macos-13' || matrix.config.os == 'ubuntu-latest' || matrix.config.os == 'ubuntu-22.04-arm'
run: |
git tag
latest_tag=$(git describe --abbrev=0 --tags)
Expand All @@ -145,7 +145,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' || matrix.config.os == 'ubuntu-22.04'
if: matrix.config.os == 'macos-latest' || matrix.config.os == 'macos-13' || matrix.config.os == 'ubuntu-latest' || matrix.config.os == 'ubuntu-22.04-arm'
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 @@ -262,7 +262,7 @@ jobs:
# Build SS3 for Linux
- name: Build stock synthesis for linux with p flag
if: matrix.config.os == 'ubuntu-latest' || matrix.config.os == 'ubuntu-22.04'
if: matrix.config.os == 'ubuntu-latest' || matrix.config.os == 'ubuntu-22.04-arm'
run: |
rm -rf SS330
rm -rf ss3_osx.tar
Expand All @@ -272,13 +272,13 @@ jobs:
/bin/bash ./Make_SS_330_new.sh -b SS330 -o -p
- name: Verify binary on linux
if: matrix.config.os == 'ubuntu-latest' || matrix.config.os == 'ubuntu-22.04'
if: matrix.config.os == 'ubuntu-latest' || matrix.config.os == 'ubuntu-22.04-arm'
run: |
sha256sum SS330/ss3
sha256sum SS330/ss3_opt
- name: Delete unneeded files and change exe names on linux
if: matrix.config.os == 'ubuntu-latest' || matrix.config.os == 'ubuntu-22.04'
if: matrix.config.os == 'ubuntu-latest' || matrix.config.os == 'ubuntu-22.04-arm'
run: |
cd SS330
rm *.obj *.htp *.cpp ss3_opt.tpl ss3.tpl
Expand Down

0 comments on commit 685a6dd

Please sign in to comment.