Skip to content

Commit

Permalink
Merge branch 'develop' into cmake-aec-openjpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
AlysonStahl-NOAA authored Jul 22, 2024
2 parents f0301e1 + 9b019ee commit 6e8f609
Show file tree
Hide file tree
Showing 42 changed files with 60 additions and 399 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/developer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,3 @@ jobs:
uses: actions/upload-pages-artifact@v1
with:
path: wgrib2/build/docs/html # Path to the built site files


65 changes: 17 additions & 48 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,60 +16,23 @@ concurrency:
jobs:
build-docs:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
env:
FC: gfortran
CC: gcc

permissions:
id-token: write
pages: write
actions: read

steps:

- name: install
run: |
sudo apt-get update
sudo apt-get install libnetcdf-dev libnetcdff-dev netcdf-bin pkg-config
sudo apt-get install libpng-dev libaec-dev doxygen
- name: cache-jasper
id: cache-jasper
uses: actions/cache@v4
with:
path: ~/jasper
key: jasper-${{ runner.os }}-1.900.1

- name: checkout-jasper
if: steps.cache-jasper.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: jasper-software/jasper
path: jasper
ref: version-1.900.1

- name: build-jasper
if: steps.cache-jasper.outputs.cache-hit != 'true'
run: |
cd jasper
./configure --prefix=$HOME/Jasper
make
make install
- name: checkout-ip
uses: actions/checkout@v4
with:
repository: NOAA-EMC/NCEPLIBS-ip
path: ip
ref: v5.0.0

- name: build-ip
run: |
cd ip
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=~/ip
make -j2
make install
sudo apt-get install doxygen
- name: checkout
uses: actions/checkout@v4
Expand All @@ -88,11 +51,11 @@ jobs:
cd wgrib2
mkdir build
cd build
cmake .. -DENABLE_DOCS=ON -DCMAKE_PREFIX_PATH="~/ip"
cmake .. -DUSE_IPOLATES=OFF -DENABLE_DOCS=ON
make VERBOSE=1
- name: upload
uses: actions/upload-artifact@master
uses: actions/upload-artifact@v2
with:
name: page
path: wgrib2/build/docs/html
Expand All @@ -105,17 +68,23 @@ jobs:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}

permissions:
id-token: write
pages: write
actions: read

steps:
- uses: actions/download-artifact@master
- uses: actions/download-artifact@v2
with:
name: page
path: .
- uses: actions/configure-pages@v1
- uses: actions/upload-pages-artifact@v1
- name: Setup Pages
uses: actions/configure-pages@v2
- uses: actions/upload-pages-artifact@v2
with:
path: .
- id: deployment
uses: actions/deploy-pages@main
uses: actions/deploy-pages@v3



236 changes: 0 additions & 236 deletions INSTALLING

This file was deleted.

Loading

0 comments on commit 6e8f609

Please sign in to comment.