Skip to content

Commit

Permalink
Use home dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Apr 19, 2024
1 parent 3e05668 commit d660a51
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
path: |
~/gnucobol
~/cobolcheck
key: gnucobol-3.2.7
key: gnucobol-3.2.7-cobolcheck

- name: Download GnuCOBOL
if: steps.cache-gnu-cobol.outputs.cache-hit != 'true'
Expand All @@ -52,7 +52,9 @@ jobs:
- name: Extract GnuCOBOL
if: steps.cache-gnu-cobol.outputs.cache-hit != 'true'
shell: pwsh
run: 7z x $HOME\gnucobol-3.2.7z -o$HOME\gnucobol -y
run: |
$home = "$HOME\gnucobol"
7z x $HOME\gnucobol-3.2.7z -o$home -y
- name: Fetch CobolCheck
if: steps.cache-gnu-cobol.outputs.cache-hit != 'true'
Expand Down
4 changes: 4 additions & 0 deletions bin/setup-environment.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
ls ${env:GITHUB_WORKSPACE}
ls $HOME
ls $HOME\gnucobol

$gnucobolDir = "${HOME}\gnucobol"
$cobolcheckDir = "${HOME}\cobolcheck"
$env:Path = "${gnucobolDir}\bin;${cobolcheckDir};${env:Path}"
Expand Down

0 comments on commit d660a51

Please sign in to comment.