Skip to content

Commit

Permalink
Add shell session commands to PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
gerlero committed Jul 28, 2024
1 parent 5f438e3 commit fea912f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,16 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup OpenFOAM
- name: Set up OpenFOAM
uses: ./
with:
openfoam-version: ${{ matrix.openfoam-version }}
- name: Run icoFoam -help
run: icoFoam -help
- name: Regression test
- name: Test shell session
if: matrix.openfoam-version >= 1000
run: |
source $WM_DIR/scripts/AllwmakeParseArguments
openfoam -help
openfoam${{ matrix.openfoam-version }} -help
- name: Regression test
run: source $WM_DIR/scripts/AllwmakeParseArguments
8 changes: 8 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ runs:
run: |
brew install --no-quarantine gerlero/openfoam/openfoam@${{ inputs.openfoam-version }}
shell: bash
- name: Set up shell session commands
if: steps.prep.outputs.openfoam-flavor == 'com'
run: |
mkdir -p /setup-openfoam/bin
ln -s "$FOAM_ETC/openfoam" /setup-openfoam/bin/openfoam${{ inputs.openfoam-version }}
ln -s "$FOAM_ETC/openfoam" /setup-openfoam/bin/openfoam
echo /setup-openfoam/bin >> "$GITHUB_PATH"
shell: bash
- name: Activate OpenFOAM for future steps
run: |
source "${{ steps.prep.outputs.openfoam-bashrc }}" || true
Expand Down

0 comments on commit fea912f

Please sign in to comment.