修复记忆加载问题,新增独立的会话目录,新增工作目录 #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| rid: [win-x64, win-arm64, linux-x64, linux-arm64, osx-x64, osx-arm64] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '10.0.x' | |
| dotnet-quality: 'preview' | |
| - name: Publish | |
| run: dotnet publish sharpclaw -c Release -r ${{ matrix.rid }} --self-contained -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:DebugType=none -p:GenerateDocumentationFile=false -o out/${{ matrix.rid }} | |
| - name: Package | |
| run: | | |
| cd out/${{ matrix.rid }} | |
| rm -f *.pdb *.xml | |
| zip -r ../../sharpclaw-${{ matrix.rid }}.zip . | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: sharpclaw-${{ matrix.rid }} | |
| path: sharpclaw-${{ matrix.rid }}.zip | |
| release: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| path: artifacts | |
| merge-multiple: true | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: build-${{ github.run_number }} | |
| name: Build ${{ github.run_number }} | |
| files: artifacts/*.zip | |
| generate_release_notes: true |