Skip to content

Commit

Permalink
Return to publishing single-file executable 🧪
Browse files Browse the repository at this point in the history
Let's see if the single-file bundling works with dotnet core SDK 3.1.202.

For the recent improvement in .net core, see (also):
+ dotnet/core-setup#9013
+ https://github.com/dotnet/core/blob/0e083d8449ab3c11c1dd7a769e21d12eaceb782e/release-notes/3.1/3.1.4/3.1.4.md
+ https://devblogs.microsoft.com/dotnet/net-core-may-2020/

Last year, several users were blocked by issues specific to the single-file distribution, causing us to avoid it until now. The error reports showed several people got the "The application to execute does not exist" error on application startup:

+ Viir/bots@6a41758
+ Viir/bots#3 (comment)
+ dotnet/core#3830 (comment)
+ https://forum.botengine.org/t/how-to-automate-mining-asteroids-in-eve-online/628/94?u=viir
  • Loading branch information
Viir committed May 15, 2020
1 parent 93ef095 commit 28af30f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,31 @@ jobs:

strategy:
matrix:
environment: [ubuntu-18.04,windows-2019]
environment: [ubuntu-18.04, windows-2019]
include:
- environment: ubuntu-18.04
publish-runtime-id: linux-x64
- environment: windows-2019
publish-runtime-id: win10-x64

runs-on: ${{ matrix.environment }}

steps:
- uses: actions/checkout@v1
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.100'
dotnet-version: '3.1.202'
- name: Try use dotnet core 3
run: dotnet --info
- uses: actions/checkout@v1
- name: Run tests
run: dotnet test ./implement/PersistentProcess/PersistentProcess.Test/PersistentProcess.Test.csproj --logger trx
- name: dotnet publish
run: dotnet publish -c Debug ./implement/elm-fullstack
env:
PUBLISH_RUNTIME_ID: ${{ matrix.publish-runtime-id }}
run: dotnet publish -c Debug --runtime ${{ env.PUBLISH_RUNTIME_ID }} --self-contained true /p:PublishReadyToRun=true /p:PublishSingleFile=true ./implement/elm-fullstack
- name: Publish artifacts
uses: actions/upload-artifact@v1
with:
name: elm-fullstack-bin-${{github.sha}}-${{ matrix.environment }}
path: ./implement/elm-fullstack/bin/Debug/netcoreapp3.1/publish
name: elm-fullstack-bin-${{github.sha}}-${{ matrix.publish-runtime-id }}
path: ./implement/elm-fullstack/bin/Debug/netcoreapp3.1/${{ matrix.publish-runtime-id }}/publish
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ steps:
- task: UseDotNet@2
inputs:
packageType: 'sdk' # Options: runtime, sdk
version: '3.1.100'
version: '3.1.202'

- script: dotnet --version

Expand Down

0 comments on commit 28af30f

Please sign in to comment.