Skip to content

Commit

Permalink
Merge pull request #3354 from CombatExtended-Continued/Update-Workflo…
Browse files Browse the repository at this point in the history
…ws-for-new-Loader

Update Workflows for new Loader
  • Loading branch information
perkinslr authored Aug 20, 2024
2 parents ad366a7 + a78f6b7 commit 4281cdf
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 15 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/duplicates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Check Patch Duplicates
on:
pull_request:
branches: [ master, Development ]

# Restrict the permissions of the ephemeral GitHub token used by this workflow
permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check for duplicate virtual file paths
run: |
python3 DupeFinder.py -c
8 changes: 3 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ jobs:
rm -rf AssemblyPublicizer
git clone https://github.com/CombatExtended-Continued/AssemblyPublicizer
mkdir -p Assemblies
mkdir -p AssembliesCore
mkdir -p AssembliesCompat
mkdir -p ${{ runner.temp }}/downloads
- name: build loader
- name: remove loader
run: |
TEMP=${{ runner.temp }}/ python Make.py --csproj Source/Loader/Loader.csproj --output Assemblies/0CombatExtendedLoader.dll --download-libs --all-libs
rm Assemblies/CombatExtendedLoader.dll
- name: build core
run: |
Expand All @@ -33,7 +31,7 @@ jobs:
- name: package
run: |
mkdir CombatExtended
cp -r Source/ Assemblies/ AssembliesCore/ AssembliesCompat/ About/ Defs/ Languages/ Patches/ Royalty/ Ideology/ Biotech/ Anomaly/ Sounds/ Textures/ ModPatches/ LoadFolders.xml README.md SupportedThirdPartyMods.md CombatExtended
cp -r Source/ Assemblies/ About/ Defs/ Languages/ Patches/ Royalty/ Ideology/ Biotech/ Anomaly/ Sounds/ Textures/ ModPatches/ LoadFolders.xml README.md SupportedThirdPartyMods.md CombatExtended
zip -9 -r build.zip CombatExtended
- name: Upload to DO
run: |
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,13 @@ jobs:
wget https://raw.githubusercontent.com/CombatExtended-Continued/CombatExtended/Development/Make.py -O Make.py
wget https://raw.githubusercontent.com/CombatExtended-Continued/CombatExtended/Development/BuildCompat.py -O BuildCompat.py
mkdir -p Assemblies
mkdir -p AssembliesCore
mkdir -p AssembliesCompat
mkdir -p ${{ runner.temp }}/downloads
rm -rf AssemblyPublicizer
git clone https://github.com/CombatExtended-Continued/AssemblyPublicizer
- name: build loader
- name: remove loader
run: |
TEMP=${{ runner.temp }}/ python Make.py --csproj Source/Loader/Loader.csproj --output Assemblies/0CombatExtendedLoader.dll --download-libs --all-libs
rm Assemblies/CombatExtendedLoader.dll
- name: build core
run: |
Expand All @@ -46,7 +44,7 @@ jobs:
- name: package
run: |
mkdir CombatExtended
cp -r Source/ Assemblies/ AssembliesCompat/ AssembliesCore/ About/ Defs/ Languages/ Patches/ Royalty/ Ideology/ Biotech/ Anomaly/ Sounds/ Textures/ ModPatches/ LoadFolders.xml README.md SupportedThirdPartyMods.md CombatExtended
cp -r Source/ Assemblies/ About/ Defs/ Languages/ Patches/ Royalty/ Ideology/ Biotech/ Anomaly/ Sounds/ Textures/ ModPatches/ LoadFolders.xml README.md SupportedThirdPartyMods.md CombatExtended
zip -9 -r build.zip CombatExtended
- name: Upload to DO
run: |
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@ jobs:
rm -rf AssemblyPublicizer
git clone https://github.com/CombatExtended-Continued/AssemblyPublicizer
mkdir -p Assemblies
mkdir -p AssembliesCore
mkdir -p AssembliesCompat
mkdir -p ${{ runner.temp }}/downloads
- name: build loader
- name: remove loader
run: |
TEMP=${{ runner.temp }}/ python Make.py --csproj Source/Loader/Loader.csproj --output Assemblies/0CombatExtendedLoader.dll --download-libs --all-libs
rm Assemblies/CombatExtendedLoader.dll
- name: build core
run: |
TEMP=${{ runner.temp }}/ python Make.py --csproj Source/CombatExtended/CombatExtended.csproj --output Assemblies/CombatExtended.dll --download-libs --all-libs --publicizer $PWD/AssemblyPublicizer
Expand All @@ -32,7 +30,7 @@ jobs:
- name: package
run: |
mkdir CombatExtended
cp -r Assemblies/ AssembliesCore/ AssembliesCompat/ About/ Defs/ Languages/ Patches/ Royalty/ Ideology/ Biotech/ Anomaly/ Sounds/ Textures/ ModPatches/ LoadFolders.xml README.md SupportedThirdPartyMods.md CombatExtended
cp -r Assemblies/ About/ Defs/ Languages/ Patches/ Royalty/ Ideology/ Biotech/ Anomaly/ Sounds/ Textures/ ModPatches/ LoadFolders.xml README.md SupportedThirdPartyMods.md CombatExtended
zip -9 -r CombatExtended.zip CombatExtended
- name: Upload Package
id: upload-package
Expand Down
File renamed without changes.

0 comments on commit 4281cdf

Please sign in to comment.