Skip to content

Commit

Permalink
CI(OSGeo4W): Use setup-OSGeo4W's root path output
Browse files Browse the repository at this point in the history
  • Loading branch information
echoix committed Nov 24, 2024
1 parent 0896cbf commit 476a739
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/osgeo4w.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:

- name: Setup OSGeo4W environment
uses: echoix/setup-OSGeo4W@f4311523e39f2c8b10e34ebbc3f2ff437ecfb9ed # v0.2.0
id: osgeo4w
with:
package-dir: "D:/OSGeo4W_pkg"
packages: |
Expand Down Expand Up @@ -96,7 +97,9 @@ jobs:
run: .github/workflows/print_versions.sh

- name: Test executing of the grass command
run: .github/workflows/test_simple.bat 'C:\OSGeo4W\opt\grass\grass85.bat'
run: .github/workflows/test_simple.bat '${{env.O4WROOT}}\opt\grass\grass85.bat'
env:
O4WROOT: ${{ steps.osgeo4w.outputs.root }}

- name: Test executing of the grass command in bash
shell: msys2 {0}
Expand All @@ -116,7 +119,9 @@ jobs:
shell: cmd /D /E:ON /V:OFF /S /C "CALL C:/OSGeo4W/OSGeo4W.bat "{0}""

- name: Run tests
run: .github/workflows/test_thorough.bat 'C:\OSGeo4W\opt\grass\grass85.bat' 'C:\OSGeo4W\bin\python3'
run: .github/workflows/test_thorough.bat '${{env.O4WROOT}}\opt\grass\grass85.bat' '${{env.O4WROOT}}\bin\python3'
env:
O4WROOT: ${{ steps.osgeo4w.outputs.root }}

- name: Make HTML test report available
if: ${{ always() }}
Expand Down

0 comments on commit 476a739

Please sign in to comment.