Browse Source

Fix CI build on Windows. (#1495)

Jérémie Dumas 5 năm trước cách đây
mục cha
commit
6664ffef18

+ 3 - 1
.github/workflows/continuous.yml

@@ -111,7 +111,9 @@ jobs:
 
 
         # https://github.com/actions/cache/issues/101
         # https://github.com/actions/cache/issues/101
       - name: Set env
       - name: Set env
-        run: echo "::set-env name=appdata::$($env:LOCALAPPDATA)"
+        run: |
+          echo "::set-env name=appdata::$($env:LOCALAPPDATA)"
+          echo "::set-env name=BOOST_ROOT::$env:BOOST_ROOT_1_69_0"
 
 
       - name: Cache build
       - name: Cache build
         id: cache-build
         id: cache-build

+ 5 - 0
.github/workflows/nightly.yml

@@ -149,6 +149,7 @@ jobs:
     env:
     env:
       CC: cl.exe
       CC: cl.exe
       CXX: cl.exe
       CXX: cl.exe
+      BOOST_ROOT: ${{ env.BOOST_ROOT_1_69_0 }}
     strategy:
     strategy:
       fail-fast: false
       fail-fast: false
       matrix:
       matrix:
@@ -166,6 +167,10 @@ jobs:
           fetch-depth: 10
           fetch-depth: 10
       - uses: seanmiddleditch/gha-setup-ninja@master
       - uses: seanmiddleditch/gha-setup-ninja@master
 
 
+      - name: Set env
+        run: |
+          echo "::set-env name=BOOST_ROOT::$env:BOOST_ROOT_1_69_0"
+
         # We run configure + build in the same step, since they both need to call VsDevCmd
         # We run configure + build in the same step, since they both need to call VsDevCmd
         # Also, cmd uses ^ to break commands into multiple lines (in powershell this is `)
         # Also, cmd uses ^ to break commands into multiple lines (in powershell this is `)
       - name: Configure and build
       - name: Configure and build