From f58cb0b45d6801296b5020962bde78c7fa759b29 Mon Sep 17 00:00:00 2001 From: nekosu Date: Sat, 7 Oct 2023 16:42:29 +0800 Subject: [PATCH] ci: hack win --- .github/workflows/ci.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7afd3d5fb..e6d723229 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,6 +71,24 @@ jobs: fail-fast: false steps: + - name: Windows runner hack + shell: cmd + run: | + dir d:\a + cd .. + mkdir C:\MaaFramework + rmdir MaaFramework + mklink /j MaaFramework C:\MaaFramework + dism /Online /Disable-Feature /FeatureName:Windows-Defender /Remove /NoRestart /Quiet + cd . + + - name: Windows runner hack (2) + uses: al-cheb/configure-pagefile-action@v1.3 + with: + minimum-size: 16GB + maximum-size: 16GB + disk-root: "D:" + - uses: actions/checkout@v3 with: submodules: true @@ -273,7 +291,6 @@ jobs: name: MAA-nupkgs path: "pkgs/nupkgs/*.nupkg" - release: if: ${{ needs.meta.outputs.is_release == 'true' }} needs: [meta, windows, ubuntu, macos, nuget_pack] @@ -299,7 +316,7 @@ jobs: for f in *; do (cd $f && zip -r ../$f-${{ needs.meta.outputs.tag }}.zip .) done - + - uses: softprops/action-gh-release@v1 with: files: assets/*.zip