Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK and Network as submodules #937

Merged
merged 7 commits into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 4 additions & 32 deletions .github/workflows/update-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Clone server repository
uses: actions/checkout@v3
with:
clean: true
path: "Server"
submodules: recursive
token: ${{ secrets.CI_TOKEN }}

- name: Clone SDK repository
uses: actions/checkout@v3
with:
Expand All @@ -27,30 +19,16 @@ jobs:
submodules: recursive
token: ${{ secrets.CI_TOKEN }}

- name: Update SDK files from server repository
- name: Update SDK files from dev branch
if: always()
shell: bash
run: |
rm -rf ./SDK/include/*
mv -f ./Server/SDK/include ./SDK
cd SDK
git config user.name open.mp
git config user.email [email protected]
git add .
git commit -m "Update SDK" -m "with https://github.com/openmultiplayer/open.mp/commit/${{ github.sha }}" || true
git rebase dev
git push || true

update-network:
runs-on: ubuntu-latest
steps:
- name: Clone server repository
uses: actions/checkout@v3
with:
clean: true
path: "Server"
submodules: recursive
token: ${{ secrets.CI_TOKEN }}

- name: Clone Network repository
uses: actions/checkout@v3
with:
Expand All @@ -61,15 +39,9 @@ jobs:
submodules: recursive
token: ${{ secrets.CI_TOKEN }}

- name: Update Network files from server repository
- name: Update Network files from dev branch
if: always()
shell: bash
run: |
rm -rf ./Network/*
mv -f ./Server/Shared/Network/* ./Network
cd Network
git config user.name open.mp
git config user.email [email protected]
git add .
git commit -m "Update Network" -m "with https://github.com/openmultiplayer/open.mp/commit/${{ github.sha }}" || true
git rebase dev
git push || true
18 changes: 6 additions & 12 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,9 @@
[submodule "lib/cmake-conan"]
path = lib/cmake-conan
url = https://github.com/openmultiplayer/cmake-conan.git
[submodule "SDK/lib/glm"]
path = SDK/lib/glm
url = https://github.com/g-truc/glm
[submodule "SDK/lib/robin-hood-hashing"]
path = SDK/lib/robin-hood-hashing
url = https://github.com/martinus/robin-hood-hashing
[submodule "SDK/lib/span-lite"]
path = SDK/lib/span-lite
url = https://github.com/martinmoene/span-lite
[submodule "SDK/lib/string-view-lite"]
path = SDK/lib/string-view-lite
url = https://github.com/martinmoene/string-view-lite
[submodule "SDK"]
path = SDK
url = https://github.com/openmultiplayer/open.mp-sdk
[submodule "Shared/Network"]
path = Shared/Network
url = https://github.com/openmultiplayer/open.mp-network
1 change: 1 addition & 0 deletions SDK
Submodule SDK added at 3dc9cf
68 changes: 0 additions & 68 deletions SDK/CMakeLists.txt

This file was deleted.

34 changes: 0 additions & 34 deletions SDK/README.md

This file was deleted.

Loading
Loading