fix ci.
Some checks failed
Build Applications / PullDocker (push) Failing after 5s
Build Applications / Build (push) Failing after 3s
Windows CI / build (push) Failing after 1s

This commit is contained in:
amass 2024-10-16 00:10:50 +08:00
parent 34294c5c85
commit dd25ec9aa4
2 changed files with 17 additions and 3 deletions

View File

@ -5,8 +5,22 @@ jobs:
build: build:
runs-on: [windows11] runs-on: [windows11]
steps: steps:
- name: Checkout code - name: Set up SSH
uses: actions/checkout@v4 run: |
mkdir $HOME\.ssh
echo $env:SSH_PRIVATE_KEY | Out-File -FilePath $HOME\.ssh\id_ed25519 -Encoding ascii
icacls $HOME\.ssh\id_ed25519 /inheritance:r /grant:r "$($env:USERNAME):(F)"
ssh-keyscan -t ed25519 -p 22022 frp-by1.wwvvww.cn | Out-File -FilePath $HOME\.ssh\known_hosts -Encoding ascii
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Clone repository
run: |
$branch = "${{ github.ref }}" -replace '^refs/heads/', ''
Write-Host "git clone --depth 1 --branch=$branch ssh://git@frp-by1.wwvvww.cn:22022/${{ env.GITEA_REPOSITORY }}.git"
git clone --depth 1 --branch=$branch ssh://git@frp-by1.wwvvww.cn:22022/${{ env.GITEA_REPOSITORY }}.git .
git checkout ${{ github.sha }}
env:
GITEA_REPOSITORY: ${{ secrets.GITEA_REPOSITORY }}
- name: Build and deploy - name: Build and deploy
run: | run: |
resources/build.ps1 build resources/build.ps1 build

View File

@ -4,7 +4,7 @@ $MsvcScript = 'D:\Program Files\Microsoft Visual Studio\2022\\Community\Common7\
if (!(Test-Path $MsvcScript)) { $MsvcScript = 'D:\Program Files\Microsoft Visual Studio\2022\\Professional\Common7\Tools\Launch-VsDevShell.ps1' } if (!(Test-Path $MsvcScript)) { $MsvcScript = 'D:\Program Files\Microsoft Visual Studio\2022\\Professional\Common7\Tools\Launch-VsDevShell.ps1' }
. $MsvcScript -SkipAutomaticLocation -Arch amd64 . $MsvcScript -SkipAutomaticLocation -Arch amd64
$qtHome = "D:\Qt\6.7.3\msvc2019_64" $qtHome = "D:\Qt\6.8.0\msvc2022_64"
$openSSLRoot = "D:\Qt\Tools\OpenSSLv3\Win_x64" $openSSLRoot = "D:\Qt\Tools\OpenSSLv3\Win_x64"
$librariesPath = "E:\Projects\Libraries" $librariesPath = "E:\Projects\Libraries"