Skip to content

Commit

Permalink
Use GITHUB_ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
Dana Robinson committed Oct 27, 2024
1 parent 180b95b commit 433b55e
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/set_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,13 @@ permissions:
jobs:
set_environment_vars:
runs-on: ubuntu-latest
outputs:
linux_version: ${{ steps.set_outputs.outputs.linux_version }}
macos_version: ${{ steps.set_outputs.outputs.macos_version }}
windows_version: ${{ steps.set_outputs.outputs.windows_version }}
gcc_packages: ${{ steps.set_outputs.outputs.gcc_packages }}
gcc_compilers: ${{ steps.set_outputs.outputs.gcc_compilers }}
steps:
- name: Set up common test environment
id: set_output
run: |
echo "::set-output name=linux_version::ubuntu-latest"
echo "::set-output name=macos_version::macos-latest"
echo "::set-output name=windows_version::windows-latest"
echo "::set-output name=gcc_packages::gcc-12 g++-12 gfortran-12"
echo "::set-output name=gcc_compilers::CC=gcc-12 CXX=g++-12 FC=gfortran-12"
echo "MY_LINUX_VERSION=ubuntu-latest" >> $GITHUB_ENV
echo "MY_MACOS_VERSION=macos-latest" >> $GITHUB_ENV
echo "MY_WINDOWS_VERSION=windows-latest" >> $GITHUB_ENV
echo "MY_GCC_PACKAGES=gcc-12 g++-12 gfortran-12" >> $GITHUB_ENV
echo "MY_GCC_COMPILERS=CC=gcc-12 CXX=g++-12 FC=gfortran-12" >> $GITHUB_ENV
echo "--- GITHUB_ENV ---"
echo $GITHUB_ENV

0 comments on commit 433b55e

Please sign in to comment.