You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by sl...@apache.org on 2019/08/20 12:27:14 UTC

[incubator-daffodil] branch daffodil-498-windows-ci updated: Hack to add sbt to path

This is an automated email from the ASF dual-hosted git repository.

slawrence pushed a commit to branch daffodil-498-windows-ci
in repository https://gitbox.apache.org/repos/asf/incubator-daffodil.git


The following commit(s) were added to refs/heads/daffodil-498-windows-ci by this push:
     new 53d95ed  Hack to add sbt to path
53d95ed is described below

commit 53d95ed869707cadf8b946969da99aa6b787d48d
Author: Steve Lawrence <sl...@apache.org>
AuthorDate: Tue Aug 20 08:26:49 2019 -0400

    Hack to add sbt to path
---
 .github/workflows/main.yml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 98ea829..b63031a 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -46,6 +46,13 @@ jobs:
       - name: Install Dependencies (Windows)
         run: |
           choco install sbt
+          # This is a bit of a hack--PATH is not updated to include SBT, and
+          # Github Actions does not have a way to modify the PATH. So create a
+          # symlink in a directory that is in PATH to SBT 
+          dir "C:\ProgramData\Chocolatey\bin"
+          mklink "C:\ProgramData\Chocolatey\bin\sbt.exe" "C:\Program Files (x86)\sbt\bin\sbt.exe"
+          dir "C:\ProgramData\Chocolatey\bin"
+          dir "C:\Program Files (x86)\sbt\bin"
         if: matrix.os == 'windows-latest'
 
       - name: Windows Environment Variables