Skip to content

Commit

Permalink
Try include cobolcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Apr 19, 2024
1 parent cc8a230 commit 58a6f4d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ jobs:
id: cache-gnu-cobol
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: ~/gnucobol
path: |
~/gnucobol
~/cobolcheck
key: gnucobol-3.2.7

- name: Download GnuCOBOL
Expand Down
4 changes: 3 additions & 1 deletion bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ Function Get-DownloadUrl {
}

$downloadUrl = Get-DownloadUrl
$outputFile = Join-Path -Path $HOME -ChildPath "gnucobol" | -ChildPath "bin" | -ChildPath "cobolcheck.exe"
$outputDir = Join-Path -Path $HOME -ChildPath "cobolcheck"
$outputFile = Join-Path -Path $outputDir -ChildPath "cobolcheck.exe"
New-Item -ItemType Directory -Path $outputDir -Force | Out-Null
Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts
3 changes: 2 additions & 1 deletion bin/setup-environment.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
$gnucobolDir = "${env:GITHUB_WORKSPACE}\gnucobol"
$env:Path = "$gnucobolDir\bin;${env:Path}"
$cobolcheckDir = "${env:GITHUB_WORKSPACE}\cobolcheck"
$env:Path = "${gnucobolDir}\bin;${cobolcheckDir};${env:Path}"
[System.Environment]::SetEnvironmentVariable('COB_CONFIG_DIR', "${gnucobolDir}\config")
[System.Environment]::SetEnvironmentVariable('COB_COPY_DIR', "${gnucobolDir}\copy")
[System.Environment]::SetEnvironmentVariable('COB_CFLAGS', "-I ${gnucobolDir}\include")
Expand Down

0 comments on commit 58a6f4d

Please sign in to comment.