Skip to content

Commit

Permalink
Merge pull request #74 from jeefo/main
Browse files Browse the repository at this point in the history
Switch YaPB to upstream repository
  • Loading branch information
Velaron authored Mar 11, 2024
2 parents 6bb2235 + 6a3cd45 commit 9d1fa6d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Fetch YaPB Graphs from DB
run: scripts/yapb_graph_dl.sh
- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
cache: gradle
- name: Setup Android SDK
uses: android-actions/setup-android@v2
uses: android-actions/setup-android@v3
- name: Build
run: ./gradlew assembleDebug
- name: Sign APK
Expand All @@ -37,7 +37,7 @@ jobs:
env:
BUILD_TOOLS_VERSION: "34.0.0"
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: android
path: app/build/outputs/apk/debug/app-debug-signed.apk
Expand All @@ -46,7 +46,7 @@ jobs:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout sources
# uses: actions/checkout@v3
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
# submodules: recursive
Expand All @@ -61,7 +61,7 @@ jobs:
fail-fast: false
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
Expand All @@ -81,7 +81,7 @@ jobs:
- name: Generate extras.pk3
run: Compress-Archive -Path 3rdparty/cs16client-extras/* -Destination build/extras.pk3 -CompressionLevel NoCompression
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: win32-${{ matrix.arch }}
path: |
Expand All @@ -101,7 +101,7 @@ jobs:
fail-fast: false
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
Expand All @@ -125,7 +125,7 @@ jobs:
- name: Generate extras.pk3
run: zip -0 -r build/extras.pk3 3rdparty/cs16client-extras
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: linux-${{ matrix.arch }}
path: |
Expand All @@ -142,14 +142,15 @@ jobs:
needs: [android, windows, linux]
steps:
- name: Fetch artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
- name: Remove old release
uses: dev-drprasad/[email protected]
uses: ClementTsang/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: continuous
delete_release: true
github_token: ${{ secrets.REPO_TOKEN }}
repo: Velaron/cs16-client
repo: ${{ env.GITHUB_REPOSITORY }}
- name: Repackage binaries
run: |
mv android/app-debug-signed.apk cs16-client.apk
Expand Down Expand Up @@ -193,8 +194,8 @@ jobs:
- name: Upload new release
uses: svenstaro/upload-release-action@v2
with:
repo_name: Velaron/cs16-client
repo_token: ${{ secrets.REPO_TOKEN }}
repo_name: ${{ env.GITHUB_REPOSITORY }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
file_glob: true
file: cs16-client*
tag: continuous
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "3rdparty/yapb"]
path = 3rdparty/yapb
url = https://github.com/Velaron/yapb
url = https://github.com/yapb/yapb
[submodule "3rdparty/mainui_cpp"]
path = 3rdparty/mainui_cpp
url = https://github.com/Velaron/mainui_cpp
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/yapb
Submodule yapb updated 60 files
+68 −9 .github/workflows/build.yml
+11 −0 .gitignore
+1 −1 .gitmodules
+58 −15 CMakeLists.txt
+1 −1 cfg/addons/yapb/conf/avatars.cfg
+70 −70 cfg/addons/yapb/conf/chatter.cfg
+9 −1 cfg/addons/yapb/conf/custom.cfg
+1 −1 cfg/addons/yapb/conf/difficulty.cfg
+1 −1 cfg/addons/yapb/conf/lang/de_chat.cfg
+7 −1 cfg/addons/yapb/conf/lang/de_lang.cfg
+1 −1 cfg/addons/yapb/conf/lang/en_chat.cfg
+1 −1 cfg/addons/yapb/conf/lang/en_names.cfg
+1 −1 cfg/addons/yapb/conf/lang/ru_chat.cfg
+67 −3 cfg/addons/yapb/conf/lang/ru_lang.cfg
+1 −1 cfg/addons/yapb/conf/lang/ru_names.cfg
+1 −1 cfg/addons/yapb/conf/logos.cfg
+1 −1 cfg/addons/yapb/conf/weapon.cfg
+63 −5 cfg/addons/yapb/conf/yapb.cfg
+1 −1 ext/crlib
+1 −1 ext/linkage
+3 −0 inc/analyze.h
+64 −0 inc/chatlib.h
+2 −2 inc/config.h
+4 −3 inc/constant.h
+5 −3 inc/control.h
+50 −166 inc/engine.h
+6 −3 inc/graph.h
+191 −0 inc/hooks.h
+6 −4 inc/manager.h
+4 −3 inc/planner.h
+2 −0 inc/product.h
+7 −1 inc/storage.h
+5 −26 inc/support.h
+2 −2 inc/version.h
+9 −9 inc/version.h.in
+19 −35 inc/yapb.h
+17 −18 meson.build
+5 −5 package.py
+55 −15 src/analyze.cpp
+300 −106 src/botlib.cpp
+39 −10 src/chatlib.cpp
+242 −117 src/combat.cpp
+48 −11 src/config.cpp
+77 −26 src/control.cpp
+96 −19 src/engine.cpp
+3 −3 src/entities.cpp
+208 −49 src/graph.cpp
+189 −0 src/hooks.cpp
+73 −99 src/linkage.cpp
+145 −38 src/manager.cpp
+1 −0 src/message.cpp
+123 −170 src/navigate.cpp
+18 −7 src/planner.cpp
+63 −11 src/storage.cpp
+95 −176 src/support.cpp
+52 −14 src/tasks.cpp
+108 −7 src/vision.cpp
+3 −3 vc/yapb.rc
+18 −15 vc/yapb.vcxproj
+9 −0 vc/yapb.vcxproj.filters

0 comments on commit 9d1fa6d

Please sign in to comment.