Jérémie Dumas 5 лет назад
Родитель
Сommit
682e4b9685
2 измененных файлов с 6 добавлено и 7 удалено
  1. 5 6
      .github/workflows/continuous.yml
  2. 1 1
      .github/workflows/nightly.yml

+ 5 - 6
.github/workflows/continuous.yml

@@ -110,11 +110,10 @@ jobs:
           fetch-depth: 10
       - uses: seanmiddleditch/gha-setup-ninja@master
 
-        # https://github.com/actions/cache/issues/101
       - name: Set env
         run: |
-          echo "::set-env name=appdata::$($env:LOCALAPPDATA)"
-          echo "::set-env name=BOOST_ROOT::$env:BOOST_ROOT_1_69_0"
+          echo "BOOST_ROOT=$env:BOOST_ROOT_1_72_0" >> ${env:GITHUB_ENV}
+          echo "appdata=$env:LOCALAPPDATA" >> ${env:GITHUB_ENV}
 
       - name: Cache build
         id: cache-build
@@ -127,8 +126,8 @@ jobs:
         run: |
           Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
           scoop install sccache --global
-          # Scoop modifies the PATH so we make the modified PATH global.
-          echo "::set-env name=PATH::$env:PATH"
+          # Scoop modifies the PATH so we make it available for the next steps of the job
+          echo "${env:PATH}" >> ${env:GITHUB_PATH}
 
         # 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 `)
@@ -144,7 +143,7 @@ jobs:
             -DLIBIGL_WITH_COMISO=OFF ^
             -B build ^
             -S .
-          cmake --build build
+          cmake --build build -j 2
 
       - name: Tests
         run: cd build; ctest --verbose

+ 1 - 1
.github/workflows/nightly.yml

@@ -164,7 +164,7 @@ jobs:
 
       - name: Set env
         run: |
-          echo "::set-env name=BOOST_ROOT::$env:BOOST_ROOT_1_69_0"
+          echo "BOOST_ROOT=$env:BOOST_ROOT_1_72_0" >> ${env:GITHUB_ENV}
 
         # 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 `)