Răsfoiți Sursa

fix github-actions

Artem V. Ageev 8 luni în urmă
părinte
comite
893817458e
3 a modificat fișierele cu 6 adăugiri și 2 ștergeri
  1. 3 1
      make.ps1
  2. 3 1
      make.sh
  3. 0 0
      use/components.txt

+ 3 - 1
make.ps1

@@ -47,9 +47,11 @@ Function Build-Project {
         $env:PATH+=";$($VAR.Path)"
         Get-Command $VAR.Cmd
     }
-    If ( Test-Path -Path 'use\components.txt' ) {
+    If ( Test-Path -Path 'use' ) {
         & git submodule update --recursive --init | Out-Host
         & git submodule update --recursive --remote | Out-Host
+    }
+    If ( Test-Path -Path 'use\components.txt' ) {
         Get-Content -Path 'use\components.txt' | ForEach-Object {
             If ((! (& lazbuild --verbose-pkgsearch $_)) &&
                 (! (& lazbuild --add-package $_)) &&

+ 3 - 1
make.sh

@@ -20,9 +20,11 @@ function priv_lazbuild
                 ;;
         esac
     fi
-    if [[ -f 'use/components.txt' ]]; then
+    if [[ -d 'use' ]]; then
         git submodule update --init --recursive
         git submodule update --recursive --remote
+    fi
+    if [[ -f 'use/components.txt' ]]; then
         while read -r; do
             if [[ -n "${REPLY}" ]] &&
                 ! (lazbuild --verbose-pkgsearch "${REPLY}") &&

+ 0 - 0
use/components.txt