Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix github action
authoradegomme <13270544+adegomme@users.noreply.github.com>
Wed, 16 Dec 2020 11:32:31 +0000 (12:32 +0100)
committerArnaud Giersch <arnaud.giersch@free.fr>
Wed, 16 Dec 2020 20:44:03 +0000 (21:44 +0100)
see https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#environment-files

.github/workflows/jarfile.yml

index 367e20d..0586c7d 100644 (file)
@@ -29,9 +29,9 @@ jobs:
       run: |
         Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
         scoop install gcc --global
-        echo "BOOST_ROOT=${BOOST_ROOT_1_72_0}"              >> $GITHUB_ENV
-        echo "BOOST_INCLUDEDIR=${BOOST_ROOT}\boost\include" >> $GITHUB_ENV
-        echo "BOOST_LIBRARYDIR=${BOOST_ROOT}\lib"           >> $GITHUB_ENV
+        echo "BOOST_ROOT=${env:BOOST_ROOT_1_72_0}" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
+        echo "BOOST_INCLUDEDIR=${env:BOOST_ROOT_1_72_0}\boost\include" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
+        echo "BOOST_LIBRARYDIR=${env:BOOST_ROOT_1_72_0}\lib" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
     - name: Build jar with Cmake
       run: |
           mkdir build