diff --git a/.gitea/workflows/build_windows.yaml b/.gitea/workflows/build_windows.yaml index 5a72731..ee5f595 100644 --- a/.gitea/workflows/build_windows.yaml +++ b/.gitea/workflows/build_windows.yaml @@ -5,8 +5,22 @@ jobs: build: runs-on: [windows11] steps: - - name: Checkout code - uses: actions/checkout@v4 + - name: Set up SSH + 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 run: | resources/build.ps1 build diff --git a/resources/build.ps1 b/resources/build.ps1 index 1bb4095..a63a33c 100644 --- a/resources/build.ps1 +++ b/resources/build.ps1 @@ -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' } . $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" $librariesPath = "E:\Projects\Libraries"