Skip to content

Commit

Permalink
ci: hack win
Browse files Browse the repository at this point in the history
  • Loading branch information
neko-para committed Oct 7, 2023
1 parent 8b243c5 commit f58cb0b
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
minimum-size: 16GB
maximum-size: 16GB
disk-root: "D:"

- uses: actions/checkout@v3
with:
submodules: true
Expand Down Expand Up @@ -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]
Expand All @@ -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
Expand Down

0 comments on commit f58cb0b

Please sign in to comment.