Run save file sending on a different thread. #101
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: Compile and publish releases | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy: | |
| name: Create | |
| runs-on: 'ubuntu-latest' | |
| strategy: | |
| matrix: | |
| dotnet-version: [ '8.0.x' ] | |
| steps: | |
| - name: Get latest code | |
| uses: actions/checkout@v3 | |
| - name: Setup .NET Core SDK ${{ matrix.dotnet-version }} | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: ${{ matrix.dotnet-version }} | |
| - name: Install dependencies | |
| run: dotnet restore | |
| - name: Publish for Linux x64 | |
| working-directory: ./Lawrence | |
| run: > | |
| dotnet publish -c Release -f net8.0 -r linux-x64 --self-contained -p:PublishSingleFile=true -o bin/publish/linux-x64 && | |
| cp -f ../.github/binaries/liblua54.so bin/publish/linux-x64/liblua54.so && | |
| cd bin/publish/linux-x64 && | |
| zip Lawrence-linux-x64.zip -r . | |
| - name: Publish for Windows x64 | |
| working-directory: ./Lawrence | |
| run: > | |
| dotnet publish -c Release -f net8.0 -r win-x64 --self-contained -p:PublishSingleFile=true -o bin/publish/win-x64 && | |
| cd bin/publish/win-x64 && | |
| zip Lawrence-windows-x64.zip -r . | |
| - name: Create release | |
| id: create_release | |
| uses: actions/create-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: v0.0.6-${{ github.run_number }}+${{ github.run_id }}-alpha | |
| release_name: Release v0.0.6-${{ github.run_number }}-${{ github.run_id }}-alpha | |
| draft: false | |
| make_latest: true | |
| - name: Upload Linux assets | |
| id: upload-linux-release-asset | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./Lawrence/bin/publish/linux-x64/Lawrence-linux-x64.zip | |
| asset_name: Lawrence-linux-x64.zip | |
| asset_content_type: application/zip | |
| - name: Upload Windows assets | |
| id: upload-windows-release-asset | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./Lawrence/bin/publish/win-x64/Lawrence-windows-x64.zip | |
| asset_name: Lawrence-windows-x64.zip | |
| asset_content_type: application/zip |