Skip to content

Commit

Permalink
Merge pull request HDFGroup#632 from derobins/autotools_build_mode_gh…
Browse files Browse the repository at this point in the history
…_action

Fix build mode in Autotools GH actions
  • Loading branch information
byrnHDF committed Feb 27, 2024
2 parents db81903 + 1de4f30 commit a123cdd
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 7 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/aocc-auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
description: "release vs. debug build"
required: true
type: string
build_option:
description: "--enable-production or --disable-production"
required: true
type: string

permissions:
contents: read
Expand Down Expand Up @@ -48,7 +52,7 @@ jobs:
mkdir "${{ runner.workspace }}/build"
cd "${{ runner.workspace }}/build"
$GITHUB_WORKSPACE/configure \
--enable-build-mode=${{ inputs.build_mode }} \
${{ inputs.build_option }} \
--enable-netcdf \
--enable-shared \
--disable-fortran \
Expand Down Expand Up @@ -116,7 +120,7 @@ jobs:
mkdir "${{ runner.workspace }}/build"
cd "${{ runner.workspace }}/build"
$GITHUB_WORKSPACE/configure \
--enable-build-mode=${{ inputs.build_mode }} \
${{ inputs.build_option }} \
--enable-netcdf \
--disable-shared \
--enable-fortran \
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/autotools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
netcdf: enable
shared: enable
build_mode: "debug"
build_option: "--disable-production"

call-release-netcdf-autotools:
name: "Autotools Release NetCDF Workflows"
Expand All @@ -26,6 +27,7 @@ jobs:
netcdf: enable
shared: enable
build_mode: "production"
build_option: "--enable-production"

call-debug-static-autotools:
name: "Autotools Debug Static Workflows"
Expand All @@ -34,6 +36,7 @@ jobs:
netcdf: disable
shared: disable
build_mode: "debug"
build_option: "--disable-production"

call-release-static-autotools:
name: "Autotools Release Static Workflows"
Expand All @@ -42,21 +45,26 @@ jobs:
netcdf: disable
shared: disable
build_mode: "production"
build_option: "--enable-production"

call-release-auto-intel:
name: "Autotools Intel Workflows"
uses: ./.github/workflows/intel-auto.yml
with:
build_mode: "production"
build_option: "--enable-production"

call-release-auto-nvhpc:
name: "Autotools nvhpc Workflows"
uses: ./.github/workflows/nvhpc-auto.yml
with:
build_mode: "production"
build_option: "--enable-production"

call-release-auto-aocc:
name: "Autotools aocc Workflows"
uses: ./.github/workflows/aocc-auto.yml
with:
build_mode: "production"
build_option: "--enable-production"

6 changes: 5 additions & 1 deletion .github/workflows/intel-auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
description: "release vs. debug build"
required: true
type: string
build_option:
description: "--enable-production or --disable-production"
required: true
type: string

permissions:
contents: read
Expand Down Expand Up @@ -57,7 +61,7 @@ jobs:
mkdir "${{ runner.workspace }}/build"
cd "${{ runner.workspace }}/build"
$GITHUB_WORKSPACE/configure \
--enable-build-mode=${{ inputs.build_mode }} \
${{ inputs.build_option }} \
--enable-netcdf \
--enable-shared \
--disable-fortran
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/main-auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
description: "release vs. debug build"
required: true
type: string
build_option:
description: "--enable-production or --disable-production"
required: true
type: string
shared:
description: "shared enable/disable"
required: true
Expand Down Expand Up @@ -59,7 +63,7 @@ jobs:
mkdir "${{ runner.workspace }}/build"
cd "${{ runner.workspace }}/build"
$GITHUB_WORKSPACE/configure \
--enable-build-mode=${{ inputs.build_mode }} \
${{ inputs.build_option }} \
--${{ inputs.netcdf }}-netcdf \
--disable-fortran \
--${{ inputs.shared }}-java \
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/nvhpc-auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
description: "release vs. debug build"
required: true
type: string
build_option:
description: "--enable-production or --disable-production"
required: true
type: string

permissions:
contents: read
Expand Down Expand Up @@ -46,8 +50,7 @@ jobs:
mkdir "${{ runner.workspace }}/build"
cd "${{ runner.workspace }}/build"
$GITHUB_WORKSPACE/configure \
FCFLAGS="-fPIC -fortranlibs" \
--enable-build-mode=${{ inputs.build_mode }} \
${{ inputs.build_option }} \
--disable-fortran \
--enable-shared \
#cat config.log
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ppc64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
mkdir "build"
cd "build"
../configure \
--enable-build-mode=production \
--enable-production \
--enable-netcdf \
--disable-fortran \
--disable-java \
Expand Down

0 comments on commit a123cdd

Please sign in to comment.