Skip to content

Commit

Permalink
Merge pull request #256 from opentween/disable-build-pdb
Browse files Browse the repository at this point in the history
CIでのビルド時に *.pdb の生成を無効化する
  • Loading branch information
upsilon authored Nov 27, 2023
2 parents d0431b8 + 0d64c5e commit 2001d4a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Build
shell: pwsh
run: |
msbuild /target:restore,build "/p:Configuration=$($env:CONFIGURATION)" /verbosity:minimal
msbuild /target:restore,build "/p:Configuration=$($env:CONFIGURATION)" /p:DebugType=None /verbosity:minimal
- name: Upload build result
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -171,12 +171,10 @@ jobs:
$destPath = 'OpenTween.zip'
$headCommit = '${{ github.event.pull_request.head.sha }}'
.\tools\build-zip-archive.ps1 -BinDir $binDir -DestPath $destPath -HeadCommit $headCommit
Copy-Item ($binDir + 'OpenTween.pdb') -Destination '.\'
- name: Upload build result
uses: actions/upload-artifact@v3
with:
name: package
path: |
./OpenTween.zip
./OpenTween.pdb
5 changes: 0 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ for:
artifacts:
- name: OpenTween.zip
path: OpenTween_dev-$(APPVEYOR_BUILD_NUMBER).zip
- name: OpenTween.pdb
path: OpenTween.pdb
- # for release build
matrix:
only:
Expand All @@ -46,8 +44,6 @@ for:
artifacts:
- name: OpenTween.zip
path: $(APPVEYOR_REPO_TAG_NAME).zip
- name: OpenTween.pdb
path: OpenTween.pdb

build:
project: OpenTween.sln
Expand Down Expand Up @@ -91,6 +87,5 @@ after_test:
$headCommit = 'HEAD'
}
.\tools\build-zip-archive.ps1 -BinDir $binDir -DestPath $destPath -HeadCommit $headCommit
Copy-Item ($binDir + 'OpenTween.pdb') -Destination '.\'
# vim: et fenc=utf-8 sts=2 sw=2 ts=2
2 changes: 1 addition & 1 deletion msbuild.rsp
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# MSBuild response file for AppVeyor build

/warnaserror
/warnaserror /p:DebugType=None
2 changes: 1 addition & 1 deletion tools/build-zip-archive.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,5 @@ Write-Host "Build success!"
Value = $timestamp
}
Get-FileHash -Algorithm SHA256 $destPath
Get-FileHash -Algorithm SHA256 $pdbPath
# Get-FileHash -Algorithm SHA256 $pdbPath
) | Format-List

0 comments on commit 2001d4a

Please sign in to comment.