Skip to content

Commit

Permalink
remove ubuntu 20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
e-perl-NOAA committed Jan 15, 2025
1 parent 211cdb0 commit 383dbc6
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 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,6 @@ jobs:
- {os: macos-latest}
- {os: macos-13}
- {os: ubuntu-latest}
- {os: ubuntu-20.04}
# 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 +89,11 @@ jobs:
# Build ADMB for Linux
- name: Update Ubuntu packages
if: matrix.config.os == 'ubuntu-latest' || matrix.config.os == 'ubuntu-20.04'
if: matrix.config.os == 'ubuntu-latest'
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-20.04'
if: matrix.config.os == 'ubuntu-latest'
run: |
cd admb && make clean
num_cpus=`cat /proc/cpuinfo | grep processor | wc -l`
Expand Down Expand Up @@ -133,7 +132,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-20.04'
if: matrix.config.os == 'macos-latest' || matrix.config.os == 'macos-13' || matrix.config.os == 'ubuntu-latest'
run: |
git tag
latest_tag=$(git describe --abbrev=0 --tags)
Expand All @@ -145,7 +144,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-20.04'
if: matrix.config.os == 'macos-latest' || matrix.config.os == 'macos-13' || 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 @@ -262,7 +261,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-20.04'
if: matrix.config.os == 'ubuntu-latest'
run: |
rm -rf SS330
rm -rf ss3_osx.tar
Expand All @@ -272,13 +271,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-20.04'
if: matrix.config.os == 'ubuntu-latest'
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-20.04'
if: matrix.config.os == 'ubuntu-latest'
run: |
cd SS330
rm *.obj *.htp *.cpp ss3_opt.tpl ss3.tpl
Expand Down

0 comments on commit 383dbc6

Please sign in to comment.