Skip to content

Commit 55610b1

Browse files
authored
Merge pull request #2 from LavaGang/alpha-development
Alpha development
2 parents d77196e + e1ad3a0 commit 55610b1

21 files changed

Lines changed: 182 additions & 64 deletions

.github/dependabot.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ updates:
1111
schedule:
1212
interval: "daily"
1313

14-
- package-ecosystem: "cargo"
15-
directory: "/"
16-
schedule:
17-
interval: "monthly"
18-
ignore:
19-
- dependency-name: "*"
20-
14+
#- package-ecosystem: "cargo"
15+
# target-branch: "alpha-development"
16+
# directory: "/"
17+
# schedule:
18+
# interval: "monthly"
19+
# ignore:
20+
# - dependency-name: "*"
2121

2222
- package-ecosystem: "github-actions"
2323
target-branch: "alpha-development"

.github/workflows/build.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ run-name: 0.7.2${{ github.event_name != 'workflow_dispatch' && format('-ci.{0}',
44

55
on:
66
push:
7-
branches: [ master, alpha-development, v0.6.0-rewrite ]
7+
branches: [ master, alpha-development ]
88
pull_request:
9-
branches: [ master, alpha-development, v0.6.0-rewrite ]
9+
branches: [ master, alpha-development ]
1010
workflow_dispatch:
1111

1212
jobs:
@@ -15,4 +15,16 @@ jobs:
1515
uses: ./.github/workflows/compile_all.yml
1616
with:
1717
SKIP_DEBUG: false
18-
VERSION: "0.7.2${{ github.event_name != 'workflow_dispatch' && format('.{0}', github.run_number) || '' }}"
18+
VERSION: "0.7.2${{ github.event_name != 'workflow_dispatch' && format('.{0}', github.run_number) || '' }}"
19+
PACKAGE_VERSION: "0.7.2${{ github.event_name != 'workflow_dispatch' && format('{0}', github.run_number) || '' }}"
20+
PACKAGE_NAME: MelonLoaderNightly
21+
22+
upload_thunderstore:
23+
name: Upload to Thunderstore
24+
if: github.event_name != 'pull_request'
25+
needs: [ build ]
26+
uses: ./.github/workflows/upload_thunderstore.yml
27+
with:
28+
VERSION: "0.7.2${{ github.event_name != 'workflow_dispatch' && format('{0}', github.run_number) || '' }}"
29+
PACKAGE_NAME: MelonLoaderNightly
30+
secrets: inherit

.github/workflows/compile_all.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ on:
77
SKIP_DEBUG:
88
required: true
99
type: boolean
10+
PACKAGE_VERSION:
11+
required: true
12+
type: string
13+
PACKAGE_NAME:
14+
required: true
15+
type: string
1016

1117
jobs:
1218
compile_windows:
@@ -41,4 +47,5 @@ jobs:
4147
uses: ./.github/workflows/compile_thunderstore.yml
4248
needs: [ compile_windows ]
4349
with:
44-
VERSION: ${{ inputs.VERSION }}
50+
VERSION: ${{ inputs.PACKAGE_VERSION }}
51+
PACKAGE_NAME: ${{ inputs.PACKAGE_NAME }}

.github/workflows/compile_linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
- name: Upload Debug for linux-x64
2929
if: inputs.SKIP_DEBUG != true
30-
uses: actions/upload-artifact@v6
30+
uses: actions/upload-artifact@v7
3131
with:
3232
name: MelonLoader.Linux.x64.CI.Debug
3333
path: Output/Debug/linux-x64
@@ -36,7 +36,7 @@ jobs:
3636
run: dotnet build --no-restore -c Release -p:Platform="x64" -p:Version="${{ inputs.VERSION }}"
3737

3838
- name: Upload Release for linux-x64
39-
uses: actions/upload-artifact@v6
39+
uses: actions/upload-artifact@v7
4040
with:
4141
name: MelonLoader.Linux.x64.CI.Release
4242
path: Output/Release/linux-x64

.github/workflows/compile_macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
- name: Upload Debug for osx-x64
3030
if: inputs.SKIP_DEBUG != true
31-
uses: actions/upload-artifact@v6
31+
uses: actions/upload-artifact@v7
3232
with:
3333
name: MelonLoader.macOS.x64.CI.Debug
3434
path: Output/Debug/osx-x64
@@ -37,7 +37,7 @@ jobs:
3737
run: dotnet build --no-restore -c Release -p:Platform="x64" -p:Version="${{ inputs.VERSION }}"
3838

3939
- name: Upload Release for osx-x64
40-
uses: actions/upload-artifact@v6
40+
uses: actions/upload-artifact@v7
4141
with:
4242
name: MelonLoader.macOS.x64.CI.Release
4343
path: Output/Release/osx-x64

.github/workflows/compile_nuget.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
run: dotnet pack -c Release -p:Platform="x64" -p:Version="${{ inputs.VERSION }}"
2323

2424
- name: Upload NuGet Artifact
25-
uses: actions/upload-artifact@v6
25+
uses: actions/upload-artifact@v7
2626
with:
2727
name: MelonLoader.NuGet
2828
path: Output/Release/win-x64/MelonLoader/LavaGang.MelonLoader.${{ inputs.VERSION }}.nupkg
Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
env:
2-
PACKAGE_NAME: MelonLoader
32
PACKAGE_DESC: The World's First Universal Mod Loader for Unity Games compatible with both Il2Cpp and Mono
43
PACKAGE_REPO: https://github.com/${{ github.repository }}
54

@@ -9,6 +8,9 @@ on:
98
VERSION:
109
required: true
1110
type: string
11+
PACKAGE_NAME:
12+
required: true
13+
type: string
1214

1315
jobs:
1416
compile_thunderstore:
@@ -18,7 +20,7 @@ jobs:
1820
- uses: actions/checkout@v6
1921

2022
- name: Download Windows x64 Artifact
21-
uses: actions/download-artifact@v7
23+
uses: actions/download-artifact@v8
2224
with:
2325
name: MelonLoader.Windows.x64.CI.Release
2426
path: ./compiled_release/thunderstore
@@ -32,21 +34,16 @@ jobs:
3234
run: |
3335
cat <<EOF > compiled_release/thunderstore/manifest.json
3436
{
35-
"name": "${{ env.PACKAGE_NAME }}",
37+
"name": "${{ inputs.PACKAGE_NAME }}",
3638
"version_number": "${{ inputs.VERSION }}",
3739
"website_url": "${{ env.PACKAGE_REPO }}",
3840
"description": "${{ env.PACKAGE_DESC }}",
3941
"dependencies": []
4042
}
4143
EOF
4244
43-
- name: Package Zip Archive
44-
run: |
45-
cd compiled_release/thunderstore
46-
zip -r ../${{ github.repository_owner }}-${{ env.PACKAGE_NAME }}-${{ inputs.VERSION }}.zip ./
47-
4845
- name: Upload Thunderstore Artifact
49-
uses: actions/upload-artifact@v6
46+
uses: actions/upload-artifact@v7
5047
with:
5148
name: MelonLoader.Thunderstore
52-
path: compiled_release/${{ github.repository_owner }}-${{ env.PACKAGE_NAME }}-${{ inputs.VERSION }}.zip
49+
path: compiled_release/thunderstore

.github/workflows/compile_windows.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
- name: Upload Debug for win-x64
2929
if: inputs.SKIP_DEBUG != true
30-
uses: actions/upload-artifact@v6
30+
uses: actions/upload-artifact@v7
3131
with:
3232
name: MelonLoader.Windows.x64.CI.Debug
3333
path: Output/Debug/win-x64
@@ -36,7 +36,7 @@ jobs:
3636
run: dotnet build --no-restore -c Release -p:Platform="x64" -p:Version="${{ inputs.VERSION }}"
3737

3838
- name: Upload Release for win-x64
39-
uses: actions/upload-artifact@v6
39+
uses: actions/upload-artifact@v7
4040
with:
4141
name: MelonLoader.Windows.x64.CI.Release
4242
path: Output/Release/win-x64
@@ -47,7 +47,7 @@ jobs:
4747

4848
- name: Upload Debug for win-x86
4949
if: inputs.SKIP_DEBUG != true
50-
uses: actions/upload-artifact@v6
50+
uses: actions/upload-artifact@v7
5151
with:
5252
name: MelonLoader.Windows.x86.CI.Debug
5353
path: Output/Debug/win-x86
@@ -56,7 +56,7 @@ jobs:
5656
run: dotnet build --no-restore -c Release -p:Platform="x86" -p:Version="${{ inputs.VERSION }}"
5757

5858
- name: Upload Release for win-x86
59-
uses: actions/upload-artifact@v6
59+
uses: actions/upload-artifact@v7
6060
with:
6161
name: MelonLoader.Windows.x86.CI.Release
6262
path: Output/Release/win-x86

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
with:
3131
SKIP_DEBUG: true
3232
VERSION: ${{ needs.fix_tag_version.outputs.clean_version }}
33+
PACKAGE_VERSION: ${{ needs.fix_tag_version.outputs.clean_version }}
34+
PACKAGE_NAME: MelonLoader
3335

3436
upload:
3537
name: Upload
@@ -38,4 +40,7 @@ jobs:
3840
with:
3941
TAG: ${{ github.ref_name }}
4042
RELEASE_NAME: ${{ github.ref_name }} Open-Beta
41-
VERSION: ${{ needs.fix_tag_version.outputs.clean_version }}
43+
VERSION: ${{ needs.fix_tag_version.outputs.clean_version }}
44+
PACKAGE_VERSION: ${{ needs.fix_tag_version.outputs.clean_version }}
45+
PACKAGE_NAME: MelonLoader
46+
secrets: inherit

.github/workflows/upload_all.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ on:
1010
VERSION:
1111
required: true
1212
type: string
13+
PACKAGE_VERSION:
14+
required: true
15+
type: string
16+
PACKAGE_NAME:
17+
required: true
18+
type: string
1319

1420
jobs:
1521
upload_github:
@@ -18,13 +24,17 @@ jobs:
1824
with:
1925
TAG: ${{ inputs.TAG }}
2026
RELEASE_NAME: ${{ inputs.RELEASE_NAME }}
27+
secrets: inherit
2128

2229
upload_nuget:
2330
name: NuGet
2431
uses: ./.github/workflows/upload_nuget.yml
32+
secrets: inherit
2533

26-
#upload_thunderstore:
27-
# name: Thunderstore
28-
# uses: ./.github/workflows/upload_thunderstore.yml
29-
# with:
30-
# VERSION: ${{ inputs.VERSION }}
34+
upload_thunderstore:
35+
name: Thunderstore
36+
uses: ./.github/workflows/upload_thunderstore.yml
37+
with:
38+
VERSION: ${{ inputs.PACKAGE_VERSION }}
39+
PACKAGE_NAME: ${{ inputs.PACKAGE_NAME }}
40+
secrets: inherit

0 commit comments

Comments
 (0)