Skip to content

Commit

Permalink
feat[ci]: test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangjiequan committed Oct 7, 2023
1 parent 34ea728 commit 5ce8bf7
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,27 @@ jobs:
- uses: actions/checkout@v2
- uses: microsoft/[email protected]

# - name: Download FBX SDK
# run: |
# md fbx
# cd fbx
# Invoke-WebRequest "https://damassets.autodesk.net/content/dam/autodesk/www/adn/fbx/2020-2-1/fbx202021_fbxsdk_vs2019_win.exe" -OutFile "fbxsdk.exe"
# Start-Process -FilePath "fbxsdk.exe" /S -Wait
# Invoke-WebRequest "https://damassets.autodesk.net/content/dam/autodesk/www/adn/fbx/2020-2-1/fbx202021_fbxsdk_vs2019_pdbs.exe" -OutFile "fbxpdb.exe"
# Start-Process -FilePath "fbxpdb.exe" /S -Wait
# cd ..
- name: Download FBX SDK
run: |
md fbx
cd fbx
Invoke-WebRequest "https://damassets.autodesk.net/content/dam/autodesk/www/adn/fbx/2020-2-1/fbx202021_fbxsdk_vs2019_win.exe" -OutFile "fbxsdk.exe"
Start-Process -FilePath "fbxsdk.exe" /S -Wait
Invoke-WebRequest "https://damassets.autodesk.net/content/dam/autodesk/www/adn/fbx/2020-2-1/fbx202021_fbxsdk_vs2019_pdbs.exe" -OutFile "fbxpdb.exe"
Start-Process -FilePath "fbxpdb.exe" /S -Wait
cd ..
# - name: Nuget Restore
# run: nuget restore
- name: Nuget Restore
run: nuget restore

# - name: Build .Net472
# run: msbuild /p:Configuration=Release /p:TargetFramework=net472 /verbosity:minimal

# - name: Build .Net5
# run: msbuild /t:AssetStudioGUI:publish /p:Configuration=Release /p:TargetFramework=net5.0-windows /p:SelfContained=false /verbosity:minimal

# - name: Build .Net6
# run: msbuild /t:AssetStudioGUI:publish /p:Configuration=Release /p:TargetFramework=net6.0-windows /p:SelfContained=false /verbosity:minimal
- name: Build .Net6
run: msbuild /t:AssetStudioGUI:publish /p:Configuration=Release /p:TargetFramework=net6.0-windows /p:SelfContained=false /verbosity:minimal

# - name: Upload .Net472 Artifact
# uses: actions/upload-artifact@v2
Expand All @@ -55,11 +55,11 @@ jobs:
# name: AssetStudio.net5
# path: AssetStudioGUI/bin/Release/net5.0-windows/publish

# - name: Upload .Net6 Artifact
# uses: actions/upload-artifact@v2
# with:
# name: AssetStudio.net6
# path: AssetStudioGUI/bin/Release/net6.0-windows/publish
- name: Upload .Net6 Artifact
uses: actions/upload-artifact@v2
with:
name: AssetStudio.net6
path: AssetStudioGUI/bin/Release/net6.0-windows/publish

- name: Create Release
if: github.event_name == 'workflow_dispatch' && github.event.inputs.createRelease == 'true'
Expand Down Expand Up @@ -90,10 +90,10 @@ jobs:
# asset_name: AssetStudio.net5.zip
# asset_content_type: application/zip

# - name: Upload Release Asset (.Net6)
# uses: actions/upload-release-asset@v1
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./AssetStudioGUI/bin/Release/net6.0-windows/publish/AssetStudio.net6.zip
# asset_name: AssetStudio.net6.zip
# asset_content_type: application/zip
- name: Upload Release Asset (.Net6)
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./AssetStudioGUI/bin/Release/net6.0-windows/publish/AssetStudio.net6.zip
asset_name: AssetStudio.net6.zip
asset_content_type: application/zip

0 comments on commit 5ce8bf7

Please sign in to comment.