-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from FelixNgFender/multiplayer
Multiplayer
- Loading branch information
Showing
1,643 changed files
with
265,931 additions
and
56,268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,32 +10,53 @@ permissions: | |
id-token: write | ||
|
||
jobs: | ||
build-client-docs-as-artifact: | ||
build-protos-docs: | ||
name: Build protos docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Buf CLI | ||
uses: bufbuild/[email protected] # must match mise.toml | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install protoc | ||
uses: arduino/setup-protoc@v1 | ||
|
||
- name: Build protos docs | ||
run: buf generate | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: protos-docs | ||
path: ./website/docs/protos | ||
|
||
build-client-docs: | ||
name: Build client docs | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install docfx | ||
run: dotnet tool install -g docfx | ||
- name: Dotnet Setup | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 8.x | ||
|
||
- name: Update docfx | ||
run: dotnet tool update -g docfx | ||
|
||
- name: Run script to build the documentation | ||
working-directory: ./unity/Documentation | ||
run: ./scripts/build.cmd | ||
|
||
# - name: Move docs to website directory | ||
# run: | | ||
# mkdir -p ./website/docs/client/ | ||
# cp -r ./unity/Documentation/clientHTMLOutput/* ./website/docs/client/ | ||
# Upload the website directory as an artifact | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: client-docs | ||
path: ./unity/Documentation/clientHTMLOutput | ||
path: ./website/docs/client | ||
|
||
build-server-docs: | ||
name: Build server docs | ||
needs: build-client-docs-as-artifact | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -44,12 +65,12 @@ jobs: | |
id: install_python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
python-version: "3.12" | ||
|
||
- name: Install Poetry | ||
uses: abatilo/actions-poetry@v2 | ||
with: | ||
poetry-version: "1.8.3" | ||
poetry-version: "1.8.4" | ||
|
||
- name: Setup a local virtual environment (if no poetry.toml file) | ||
working-directory: ./python | ||
|
@@ -61,7 +82,10 @@ jobs: | |
uses: actions/cache/restore@v4 | ||
with: | ||
path: ./python/.venv | ||
key: venv-${{ runner.os }}-${{ steps.install_python.outputs.python-version }}-${{ hashFiles('./python/poetry.lock') }} | ||
key: | ||
venv-${{ runner.os }}-${{ | ||
steps.install_python.outputs.python-version }}-${{ | ||
hashFiles('./python/poetry.lock') }} | ||
|
||
- name: Install docs dependencies | ||
working-directory: ./python | ||
|
@@ -70,35 +94,36 @@ jobs: | |
echo "$(poetry env info --path)/bin" >> $GITHUB_PATH | ||
echo "VIRTUAL_ENV=$(poetry env info --path)/bin" >> $GITHUB_ENV | ||
# - name: Saved cached virtualenv | ||
# uses: actions/cache/save@v4 | ||
# with: | ||
# path: ./python/.venv | ||
# key: venv-${{ runner.os }}-${{ steps.install_python.outputs.python-version }}-${{ hashFiles('./python/poetry.lock') }} | ||
|
||
- name: Build the documentation | ||
working-directory: ./python | ||
run: python tools/make_docs_cli.py | ||
|
||
- name: Move docs to website directory | ||
run: | | ||
mkdir -p ./website/docs/server/ | ||
cp -r ./python/docs/* ./website/docs/server/ | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: server-docs | ||
path: ./website/docs/server | ||
|
||
upload-website: | ||
name: Upload website | ||
needs: [build-protos-docs, build-client-docs, build-server-docs] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: protos-docs | ||
path: ./website/docs/protos | ||
|
||
# Get client docs to use as part of pages artifact | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: client-docs | ||
path: ./website/docs/client | ||
|
||
# # cleanup client docs artifacts | ||
# - name: Delete client docs artifact | ||
# run: | | ||
# github.rest.actions.deleteArtifact({ | ||
# owner: context.repo.owner, | ||
# repo: context.repo.repo, | ||
# artifact_id: ${{ steps.artifact-download.outputs.artifact-id }} | ||
# }); | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: server-docs | ||
path: ./website/docs/server | ||
|
||
- uses: actions/upload-pages-artifact@v3 | ||
with: | ||
|
@@ -107,7 +132,7 @@ jobs: | |
# Single deploy job since we're just deploying | ||
deploy-website: | ||
name: Deploy website | ||
needs: build-server-docs | ||
needs: upload-website | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pages: write | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"printWidth": 80, | ||
"proseWrap": "always" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"recommendations": [ | ||
"ms-python.python", | ||
"ms-python.vscode-pylance", | ||
"redhat.vscode-yaml", | ||
"charliermarsh.ruff", | ||
"ms-toolsai.jupyter", | ||
"streetsidesoftware.code-spell-checker", | ||
"visualstudiotoolsforunity.vstuc" | ||
"DavidAnson.vscode-markdownlint", | ||
"bufbuild.vscode-buf", | ||
"ms-python.python", | ||
"ms-python.vscode-pylance", | ||
"charliermarsh.ruff" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.