Skip to content

Commit

Permalink
#68 try home for xsd cache
Browse files Browse the repository at this point in the history
  • Loading branch information
kwabenantim committed Apr 29, 2024
1 parent 31ef972 commit ad1075e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/actions/set-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ runs:
source /etc/os-release
os_ver="$(echo ${ID}${VERSION_ID} | sed 's/\.//')"
echo "os_ver=${os_ver}" >> $GITHUB_OUTPUT
echo "modules_dir=/modules" >> $GITHUB_OUTPUT
echo "modules_dir=$HOME/modules" >> $GITHUB_OUTPUT
shell: bash
6 changes: 4 additions & 2 deletions .github/actions/setup-xsd/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,17 @@ runs:
- name: install xsd module
if: steps.cache-xsd.outputs.cache-hit != 'true'
working-directory: ${{ github.workspace }}
run: |
./scripts/install_xsd.sh \
./install_xsd.sh \
--version=${{ inputs.xsd_ver }} \
--modules-dir=${{ steps.set-env.outputs.modules_dir }}
ls ${{ steps.set-env.outputs.modules_dir }}
working-directory: ${{ github.workspace }}/scripts
shell: bash

- name: test xsd module
run: |
ls ${{ steps.set-env.outputs.modules_dir }}
source /etc/profile.d/modules.sh
module use ${{ steps.set-env.outputs.modules_dir }}
module load xsd/${{ inputs.xsd_ver }}
Expand Down

0 comments on commit ad1075e

Please sign in to comment.