File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ will then just work out of the box.
16
16
17
17
Note that this action will define `GALLIUM_DRIVER` environnement variable that is needed for mesa to work as expected.
18
18
19
+ The path can contain wildcards, which means the mesa files can be copied to multiple directories in a single action use.
20
+ If the directories do not exists, they will be created.
21
+
19
22
# # Defining mesa version
20
23
21
24
Which mesa version to use can be set like this :
Original file line number Diff line number Diff line change 28
28
cd install_mesa_local_dir
29
29
curl.exe -L --output install_mesa_local_archive.7z --url https://github.com/pal1000/mesa-dist-win/releases/download/${{inputs.version}}/mesa3d-${{inputs.version}}-release-msvc.7z
30
30
C:\'Program Files'\7-Zip\7z.exe x install_mesa_local_archive.7z
31
+ # Create the directories if they do not exist
32
+ Get-ChildItem -Directory ${{inputs.path}}* | ForEach-Object { New-Item -ItemType Directory -Force -Path $_ }
31
33
# A * is added next line to force Get-ChildItem to look for directory within the path
32
34
Get-ChildItem -Directory ${{inputs.path}}* | ForEach-Object { Copy-Item -Path .\x64\opengl32.dll, .\x64\libglapi.dll, .\x64\libgallium_wgl.dll -Destination $_ }
33
35
echo "GALLIUM_DRIVER=llvmpipe"| Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
You can’t perform that action at this time.
0 commit comments