mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -04:00
Fixup workflows
This commit is contained in:
parent
8180d540e4
commit
06cd9259e0
54
.github/workflows/build.yml
vendored
54
.github/workflows/build.yml
vendored
@ -24,24 +24,26 @@ jobs:
|
|||||||
id: compile
|
id: compile
|
||||||
run: |
|
run: |
|
||||||
msbuild MCGalaxy.sln /p:Configuration=Release /p:TargetFrameworkVersion=v2.0 /p:DefineConstants="NET_20"
|
msbuild MCGalaxy.sln /p:Configuration=Release /p:TargetFrameworkVersion=v2.0 /p:DefineConstants="NET_20"
|
||||||
|
|
||||||
- uses: ./.github/actions/notify_failure
|
|
||||||
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
|
||||||
with:
|
|
||||||
NOTIFY_MESSAGE: 'Failed to compile MCGalaxy .NET 2.0 build'
|
|
||||||
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
|
||||||
|
|
||||||
- uses: ./.github/actions/upload_build
|
- uses: ./.github/actions/upload_build
|
||||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||||
with:
|
with:
|
||||||
SOURCE_FILE: 'bin/Release'
|
SOURCE_FILE: 'bin/Release'
|
||||||
DEST_NAME: 'MCGalaxy-net2.0'
|
DEST_NAME: 'MCGalaxy-net2.0'
|
||||||
|
|
||||||
|
|
||||||
- uses: ./.github/actions/notify_success
|
- uses: ./.github/actions/notify_success
|
||||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||||
with:
|
with:
|
||||||
DESTINATION_URL: '${{ secrets.NOTIFY_URL }}'
|
DESTINATION_URL: '${{ secrets.NOTIFY_URL }}'
|
||||||
WORKFLOW_NAME: 'net20'
|
WORKFLOW_NAME: 'net20'
|
||||||
|
|
||||||
|
|
||||||
|
- uses: ./.github/actions/notify_failure
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
NOTIFY_MESSAGE: 'Failed to produce MCGalaxy .NET 2.0 build'
|
||||||
|
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
||||||
|
|
||||||
|
|
||||||
#============================================
|
#============================================
|
||||||
@ -59,12 +61,6 @@ jobs:
|
|||||||
cp -R bin/Release bin/Release_normal
|
cp -R bin/Release bin/Release_normal
|
||||||
rm bin/Release/MCGalaxy_.dll bin/Release/MCGalaxy_.pdb
|
rm bin/Release/MCGalaxy_.dll bin/Release/MCGalaxy_.pdb
|
||||||
msbuild MCGalaxy/MCGalaxy_.csproj /p:Configuration=Release /t:Rebuild /p:DefineConstants="TEN_BIT_BLOCKS"
|
msbuild MCGalaxy/MCGalaxy_.csproj /p:Configuration=Release /t:Rebuild /p:DefineConstants="TEN_BIT_BLOCKS"
|
||||||
|
|
||||||
- uses: ./.github/actions/notify_failure
|
|
||||||
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
|
||||||
with:
|
|
||||||
NOTIFY_MESSAGE: 'Failed to compile MCGalaxy .NET build'
|
|
||||||
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
|
||||||
|
|
||||||
- uses: ./.github/actions/upload_build
|
- uses: ./.github/actions/upload_build
|
||||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||||
@ -77,12 +73,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
SOURCE_FILE: 'bin/Release'
|
SOURCE_FILE: 'bin/Release'
|
||||||
DEST_NAME: 'MCGalaxy-net40-infid'
|
DEST_NAME: 'MCGalaxy-net40-infid'
|
||||||
|
|
||||||
|
|
||||||
- uses: ./.github/actions/notify_success
|
- uses: ./.github/actions/notify_success
|
||||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||||
with:
|
with:
|
||||||
DESTINATION_URL: '${{ secrets.NOTIFY_URL }}'
|
DESTINATION_URL: '${{ secrets.NOTIFY_URL }}'
|
||||||
WORKFLOW_NAME: 'net40'
|
WORKFLOW_NAME: 'net40'
|
||||||
|
|
||||||
|
|
||||||
|
- uses: ./.github/actions/notify_failure
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
NOTIFY_MESSAGE: 'Failed to produce MCGalaxy .NET 4.0 build'
|
||||||
|
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
||||||
|
|
||||||
|
|
||||||
#============================================
|
#============================================
|
||||||
@ -103,12 +107,6 @@ jobs:
|
|||||||
id: compile
|
id: compile
|
||||||
run: |
|
run: |
|
||||||
dotnet build CLI/MCGalaxyCLI_dotnet6.csproj --no-restore
|
dotnet build CLI/MCGalaxyCLI_dotnet6.csproj --no-restore
|
||||||
|
|
||||||
- uses: ./.github/actions/notify_failure
|
|
||||||
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
|
||||||
with:
|
|
||||||
NOTIFY_MESSAGE: 'Failed to compile MCGalaxy dotnet build'
|
|
||||||
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
|
||||||
|
|
||||||
- uses: ./.github/actions/upload_build
|
- uses: ./.github/actions/upload_build
|
||||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||||
@ -152,6 +150,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
DESTINATION_URL: '${{ secrets.NOTIFY_URL }}'
|
DESTINATION_URL: '${{ secrets.NOTIFY_URL }}'
|
||||||
WORKFLOW_NAME: 'net60'
|
WORKFLOW_NAME: 'net60'
|
||||||
|
|
||||||
|
|
||||||
|
- uses: ./.github/actions/notify_failure
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
NOTIFY_MESSAGE: 'Failed to produce MCGalaxy dotnet 6.0 build'
|
||||||
|
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
||||||
|
|
||||||
|
|
||||||
#============================================
|
#============================================
|
||||||
@ -172,12 +177,6 @@ jobs:
|
|||||||
id: compile
|
id: compile
|
||||||
run: |
|
run: |
|
||||||
dotnet build CLI/MCGalaxyCLI_dotnet8.csproj --no-restore
|
dotnet build CLI/MCGalaxyCLI_dotnet8.csproj --no-restore
|
||||||
|
|
||||||
- uses: ./.github/actions/notify_failure
|
|
||||||
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
|
||||||
with:
|
|
||||||
NOTIFY_MESSAGE: 'Failed to compile MCGalaxy dotnet build'
|
|
||||||
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
|
||||||
|
|
||||||
- uses: ./.github/actions/upload_build
|
- uses: ./.github/actions/upload_build
|
||||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||||
@ -191,3 +190,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
DESTINATION_URL: '${{ secrets.NOTIFY_URL }}'
|
DESTINATION_URL: '${{ secrets.NOTIFY_URL }}'
|
||||||
WORKFLOW_NAME: 'net80'
|
WORKFLOW_NAME: 'net80'
|
||||||
|
|
||||||
|
|
||||||
|
- uses: ./.github/actions/notify_failure
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
NOTIFY_MESSAGE: 'Failed to produce MCGalaxy dotnet 8.0 build'
|
||||||
|
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
||||||
|
16
.github/workflows/release.yml
vendored
16
.github/workflows/release.yml
vendored
@ -82,13 +82,6 @@ jobs:
|
|||||||
make_standalone_tar mcg-linux64
|
make_standalone_tar mcg-linux64
|
||||||
|
|
||||||
find .
|
find .
|
||||||
|
|
||||||
|
|
||||||
- uses: ./.github/actions/notify_failure
|
|
||||||
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
|
||||||
with:
|
|
||||||
NOTIFY_MESSAGE: 'Failed to produce release'
|
|
||||||
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
|
||||||
|
|
||||||
|
|
||||||
# Generate .NET release files
|
# Generate .NET release files
|
||||||
@ -135,4 +128,11 @@ jobs:
|
|||||||
if: ${{ always() && steps.compile.outcome == 'success' }}
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
||||||
with:
|
with:
|
||||||
DESTINATION_URL: '${{ secrets.NOTIFY_URL }}'
|
DESTINATION_URL: '${{ secrets.NOTIFY_URL }}'
|
||||||
WORKFLOW_NAME: 'release'
|
WORKFLOW_NAME: 'release'
|
||||||
|
|
||||||
|
|
||||||
|
- uses: ./.github/actions/notify_failure
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
NOTIFY_MESSAGE: 'Failed to produce release'
|
||||||
|
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user