Skip to content

Commit

Permalink
More tweaking
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Apr 19, 2024
1 parent 7d23961 commit 3191b38
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,17 @@ jobs:
- name: Setup environment
shell: pwsh
run: |
ls $HOME
ls $HOME\cobol
ls $HOME\cobol\gnucobol
ls $HOME\cobol\gnucobol\bin
ls $HOME\gnucobol
$env:Path = "$HOME\cobol\gnucobol\bin;$HOME\bin;" + $env:Path
[System.Environment]::SetEnvironmentVariable('COB_CONFIG_DIR', "$HOME\cobol\gnucobol\config")
[System.Environment]::SetEnvironmentVariable('COB_COPY_DIR', "$HOME\cobol\gnucobol\copy")
[System.Environment]::SetEnvironmentVariable('COB_CFLAGS', "-I $HOME\cobol\gnucobol\include")
[System.Environment]::SetEnvironmentVariable('COB_LDFLAGS', "-L $HOME\cobol\gnucobol\lib")
[System.Environment]::SetEnvironmentVariable('COB_LIBRARY_PATH', "$HOME\cobol\gnucobol\lib")
[System.Environment]::SetEnvironmentVariable('COB_LIBS', "$HOME\cobol\gnucobol\bin\libcob-4.dll")
ls ${env:GITHUB_WORKSPACE}
ls ${env:GITHUB_WORKSPACE}\bin
$gnucobolDir = Join-Path $env:GITHUB_WORKSPACE -ChildPath "gnucobol"
$env:Path = "${gnucobolDir}\bin;${env:GITHUB_WORKSPACE}\bin;${env:Path}"
printenv
[System.Environment]::SetEnvironmentVariable('COB_CONFIG_DIR', "${gnucobolDir}\config")
[System.Environment]::SetEnvironmentVariable('COB_COPY_DIR', "${gnucobolDir}\copy")
[System.Environment]::SetEnvironmentVariable('COB_CFLAGS', "-I ${gnucobolDir}\include")
[System.Environment]::SetEnvironmentVariable('COB_LDFLAGS', "-L ${gnucobolDir}\lib")
[System.Environment]::SetEnvironmentVariable('COB_LIBRARY_PATH', "${gnucobolDir}\lib")
[System.Environment]::SetEnvironmentVariable('COB_LIBS', "${gnucobolDir}\bin\libcob-4.dll")
- name: Run tests for all exercises
shell: pwsh
Expand Down
2 changes: 1 addition & 1 deletion bin/fetch-cobolcheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Function Get-DownloadUrl {
}

$downloadUrl = Get-DownloadUrl
$outputDir = Join-Path -Path $HOME -ChildPath "bin"
$outputDir = Join-Path -Path $PSScriptRoot -ChildPath "bin"
$outputFile = Join-Path -Path $outputDir -ChildPath "cobolcheck.exe"
New-Item -ItemType Directory -Force -Path $outputDir | Out-Null
Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts

0 comments on commit 3191b38

Please sign in to comment.