Update ci.yml
Some checks failed
CI / React UI Build (push) Successful in 11s
CI / Native Windows Build And Tests (push) Failing after 2m46s
CI / Windows Release Package (push) Has been skipped

This commit is contained in:
2026-05-30 14:43:33 +10:00
parent e88a4a1f3b
commit cfb796756d

View File

@@ -23,25 +23,48 @@ jobs:
env:
GITEA_PAT: ${{ secrets.TOKEN }}
run: |
$repoUrl = "https://aiden:${env:GITEA_PAT}@git.f-40.com/aiden/video-shader.git"
$submoduleUrl = "https://aiden:${env:GITEA_PAT}@git.f-40.com/aiden/video-io-3rdParty.git"
function Invoke-Git {
& git @args
if ($LASTEXITCODE -ne 0) {
exit $LASTEXITCODE
}
}
git init .
git lfs install --local
git remote add origin "$repoUrl"
git fetch --depth=1 origin "${{ gitea.ref }}"
git checkout FETCH_HEAD
function Add-GiteaTokenToUrl([string]$url) {
if ([string]::IsNullOrWhiteSpace($env:GITEA_PAT)) {
return $url
}
return $url -replace "^https://", "https://aiden:$($env:GITEA_PAT)@"
}
git lfs pull origin "${{ gitea.ref }}"
git submodule sync --recursive
git config submodule.video-io-3rdParty.url "$submoduleUrl"
git submodule update --init --recursive --depth=1
git -C video-io-3rdParty lfs pull
$serverUrl = "${{ gitea.server_url }}".TrimEnd("/")
$repository = "${{ gitea.repository }}"
if ([string]::IsNullOrWhiteSpace($serverUrl)) {
$serverUrl = "https://git.f-40.com"
}
if ([string]::IsNullOrWhiteSpace($repository)) {
$repository = "aiden/video-shader-toys"
}
$repoUrl = Add-GiteaTokenToUrl "$serverUrl/$repository.git"
Invoke-Git init .
Invoke-Git lfs install --local
Invoke-Git remote add origin "$repoUrl"
Invoke-Git fetch --depth=1 origin "${{ gitea.ref }}"
Invoke-Git checkout FETCH_HEAD
Invoke-Git lfs pull origin "${{ gitea.ref }}"
Invoke-Git submodule sync --recursive
$submoduleUrl = Invoke-Git config --file .gitmodules --get submodule.video-io-3rdParty.url
$submoduleUrl = Add-GiteaTokenToUrl "$submoduleUrl"
Invoke-Git config submodule.video-io-3rdParty.url "$submoduleUrl"
Invoke-Git submodule update --init --recursive --depth=1
Invoke-Git -C video-io-3rdParty lfs pull
Write-Host "Parent LFS files:"
git lfs ls-files
Invoke-Git lfs ls-files
Write-Host "Submodule LFS files:"
git -C video-io-3rdParty lfs ls-files
Invoke-Git -C video-io-3rdParty lfs ls-files
- name: Verify Visual Studio ATL
shell: powershell
@@ -162,25 +185,48 @@ jobs:
env:
GITEA_PAT: ${{ secrets.TOKEN }}
run: |
$repoUrl = "https://aiden:${env:GITEA_PAT}@git.f-40.com/aiden/video-shader.git"
$submoduleUrl = "https://aiden:${env:GITEA_PAT}@git.f-40.com/aiden/video-io-3rdParty.git"
function Invoke-Git {
& git @args
if ($LASTEXITCODE -ne 0) {
exit $LASTEXITCODE
}
}
git init .
git lfs install --local
git remote add origin "$repoUrl"
git fetch --depth=1 origin "${{ gitea.ref }}"
git checkout FETCH_HEAD
function Add-GiteaTokenToUrl([string]$url) {
if ([string]::IsNullOrWhiteSpace($env:GITEA_PAT)) {
return $url
}
return $url -replace "^https://", "https://aiden:$($env:GITEA_PAT)@"
}
git lfs pull origin "${{ gitea.ref }}"
git submodule sync --recursive
git config submodule.video-io-3rdParty.url "$submoduleUrl"
git submodule update --init --recursive --depth=1
git -C video-io-3rdParty lfs pull
$serverUrl = "${{ gitea.server_url }}".TrimEnd("/")
$repository = "${{ gitea.repository }}"
if ([string]::IsNullOrWhiteSpace($serverUrl)) {
$serverUrl = "https://git.f-40.com"
}
if ([string]::IsNullOrWhiteSpace($repository)) {
$repository = "aiden/video-shader-toys"
}
$repoUrl = Add-GiteaTokenToUrl "$serverUrl/$repository.git"
Invoke-Git init .
Invoke-Git lfs install --local
Invoke-Git remote add origin "$repoUrl"
Invoke-Git fetch --depth=1 origin "${{ gitea.ref }}"
Invoke-Git checkout FETCH_HEAD
Invoke-Git lfs pull origin "${{ gitea.ref }}"
Invoke-Git submodule sync --recursive
$submoduleUrl = Invoke-Git config --file .gitmodules --get submodule.video-io-3rdParty.url
$submoduleUrl = Add-GiteaTokenToUrl "$submoduleUrl"
Invoke-Git config submodule.video-io-3rdParty.url "$submoduleUrl"
Invoke-Git submodule update --init --recursive --depth=1
Invoke-Git -C video-io-3rdParty lfs pull
Write-Host "Parent LFS files:"
git lfs ls-files
Invoke-Git lfs ls-files
Write-Host "Submodule LFS files:"
git -C video-io-3rdParty lfs ls-files
Invoke-Git -C video-io-3rdParty lfs ls-files
- name: Verify Visual Studio ATL
shell: powershell