Skip to content

Commit

Permalink
Update CI to support deploying for NativeAOT-LLVM
Browse files Browse the repository at this point in the history
  • Loading branch information
hez2010 committed Nov 13, 2024
1 parent 0a64866 commit 492cd40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-version: 9.0.x
- name: Install Workload
run: dotnet workload install wasm-tools
- name: Build for Desktop
Expand All @@ -34,16 +34,16 @@ jobs:
if: ${{ github.event.inputs.nuget == 'true' }}
run: dotnet nuget push ./packages/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}
- name: Build for Browser
run: dotnet publish sizoscopeX.Browser -c Release /p:Version=${{ github.event.inputs.version }}
run: dotnet publish sizoscopeX.Browser -c Release -r browser-x64 /p:Version=${{ github.event.inputs.version }}
- name: Fix Permissions
run: |
chmod -v -R +rX "./sizoscopeX.Browser/bin/Release/net7.0/browser-wasm/AppBundle/" | while read line; do
chmod -v -R +rX "./sizoscopeX.Browser/bin/Release/net9.0-browser/browser-wasm/publish/" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: Upload Broswer AppBundle
- name: Upload Browser app
uses: actions/upload-pages-artifact@v2
with:
path: './sizoscopeX.Browser/bin/Release/net7.0/browser-wasm/AppBundle'
path: './sizoscopeX.Browser/bin/Release/net9.0-browser/browser-wasm/publish'

deploy:
needs: build
Expand Down
1 change: 1 addition & 0 deletions sizoscopeX.sln
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ソリューション項目
ProjectSection(SolutionItems) = preProject
.gitignore = .gitignore
Directory.Packages.props = Directory.Packages.props
.github\workflows\dotnet.yml = .github\workflows\dotnet.yml
nuget.config = nuget.config
EndProjectSection
EndProject
Expand Down

0 comments on commit 492cd40

Please sign in to comment.