-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AssetDB, EditorUI, Editor, AssetBrowser, PropertiesEditor, Explorer, NFD
- Loading branch information
1 parent
c17e6d7
commit 12cb64b
Showing
117 changed files
with
12,541 additions
and
1,207 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
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
bin/zig/zig_* filter=lfs diff=lfs merge=lfs -texts | ||
|
||
*.zig text eol=lf | ||
*.zig text eol=lf | ||
|
||
# .ct_ is prefix for cetech1 assets backed by JSON | ||
*.ct_* linguist-language=json | ||
|
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,22 +1,20 @@ | ||
name: "CI" | ||
name: "Build & Test" | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
branches: ["main"] | ||
paths: | ||
- "bin/**" | ||
- "src/**" | ||
- "include/**" | ||
- "externals/**" | ||
- "build.zig" | ||
|
||
concurrency: | ||
group: ${{ github.head_ref || github.run_id }}-${{ github.actor }} | ||
cancel-in-progress: true | ||
|
||
# paths: | ||
# - "bin/**" | ||
# - "src/**" | ||
# - "include/**" | ||
# - "externals/**" | ||
# - "build.zig" | ||
|
||
jobs: | ||
build: | ||
name: Cross-compile build | ||
|
@@ -28,6 +26,9 @@ jobs: | |
with: | ||
submodules: true | ||
|
||
- name: Prepare | ||
run: sudo apt-get install libgtk-3-dev | ||
|
||
- name: Build x86_64-linux Debug | ||
run: .ci/build.sh x86_64-linux x86_64-linux Debug | ||
- name: Build x86_64-macos Debug | ||
|
@@ -60,7 +61,9 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
sparse-checkout: ".ci/x86_64-macos-test.sh" | ||
sparse-checkout: | | ||
.ci/x86_64-macos-test.sh | ||
tests/ | ||
- name: Download build | ||
uses: actions/cache@v3 | ||
with: | ||
|
@@ -70,24 +73,29 @@ jobs: | |
- name: Test | ||
run: sh .ci/x86_64-macos-test.sh Debug | ||
|
||
test-x86_64-linux: | ||
name: Test x86_64-linux Debug | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 2 | ||
needs: build | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
sparse-checkout: ".ci/x86_64-linux-test.sh" | ||
- name: Download build | ||
uses: actions/cache@v3 | ||
with: | ||
path: build/Debug/x86_64-linux/ | ||
key: x86_64-linux-Debug-cache-${{ github.sha }} | ||
fail-on-cache-miss: true | ||
- name: Test | ||
run: sh .ci/x86_64-linux-test.sh Debug | ||
# TODO: i dont know why but i see files, persmision looks ok | ||
# but cant run because file not found... WTF | ||
# test-x86_64-linux: | ||
# name: Test x86_64-linux Debug | ||
# runs-on: ubuntu-latest | ||
# timeout-minutes: 2 | ||
# needs: build | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# sparse-checkout: | | ||
# .ci/x86_64-macos-linux.sh | ||
# tests/ | ||
# - name: Download build | ||
# uses: actions/cache@v3 | ||
# with: | ||
# path: build/Debug/x86_64-linux/ | ||
# key: x86_64-linux-Debug-cache-${{ github.sha }} | ||
# fail-on-cache-miss: true | ||
# enableCrossOsArchive: true | ||
# - name: Test | ||
# run: sh .ci/x86_64-linux-test.sh Debug | ||
|
||
test-x86_64-windows: | ||
name: Test x86_64-windows Debug | ||
|
@@ -98,14 +106,22 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
sparse-checkout: ".ci/x86_64-windows-test.ps1" | ||
sparse-checkout: | | ||
.ci/x86_64-windows-test.ps1 | ||
tests/ | ||
- name: Download build | ||
uses: actions/cache@v3 | ||
with: | ||
path: build/Debug/x86_64-windows/ | ||
key: x86_64-windows-Debug-cache-${{ github.sha }} | ||
fail-on-cache-miss: true | ||
enableCrossOsArchive: true | ||
- name: configure Pagefile | ||
uses: al-cheb/[email protected] | ||
with: | ||
minimum-size: 8GB | ||
maximum-size: 16GB | ||
disk-root: "C:" | ||
- name: Test | ||
run: .ci/x86_64-windows-test.ps1 Debug | ||
|
||
|
@@ -118,7 +134,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
timeout-minutes: 2 | ||
if: ${{ always() }} | ||
needs: [test-x86_64-linux, test-x86_64-macos, test-x86_64-windows] | ||
needs: | ||
# - test-x86_64-linux | ||
- test-x86_64-macos | ||
- test-x86_64-windows | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
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,41 +1,121 @@ | ||
name: Docs | ||
name: Build and publish docs | ||
|
||
on: | ||
workflow_call: | ||
push: | ||
branches: ["main"] | ||
paths: | ||
- "Writerside/**" | ||
|
||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
pages: write | ||
actions: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
env: | ||
INSTANCE: Writerside/cetech1 | ||
ARTIFACT: webHelpCETECH12-all.zip | ||
DOCKER_VERSION: 232.10165.1 | ||
|
||
jobs: | ||
# Single deploy job since we're just deploying | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build Writerside docs using Docker | ||
uses: JetBrains/writerside-github-action@v4 | ||
with: | ||
instance: ${{ env.INSTANCE }} | ||
artifact: ${{ env.ARTIFACT }} | ||
docker-version: ${{ env.DOCKER_VERSION }} | ||
|
||
- name: Save docs to cache | ||
uses: actions/cache@v3 | ||
with: | ||
key: docs-cache-${{ github.sha }} | ||
path: | | ||
artifacts/${{ env.ARTIFACT }} | ||
artifacts/report.json | ||
test: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Download docs | ||
uses: actions/cache@v3 | ||
with: | ||
key: docs-cache-${{ github.sha }} | ||
path: | | ||
artifacts/${{ env.ARTIFACT }} | ||
artifacts/report.json | ||
fail-on-cache-miss: true | ||
|
||
- name: Test documentation | ||
uses: JetBrains/writerside-checker-action@v1 | ||
with: | ||
instance: ${{ env.INSTANCE }} | ||
|
||
deploy: | ||
timeout-minutes: 5 | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
|
||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Download docs | ||
uses: actions/cache@v3 | ||
with: | ||
submodules: true | ||
key: docs-cache-${{ github.sha }} | ||
path: | | ||
artifacts/${{ env.ARTIFACT }} | ||
artifacts/report.json | ||
fail-on-cache-miss: true | ||
|
||
- name: Unzip artifact | ||
uses: montudor/action-zip@v1 | ||
with: | ||
args: unzip -qq artifacts/${{ env.ARTIFACT }} -d dir | ||
|
||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
- name: Build docs | ||
run: ci/gen-docs.sh x86_64-linux | ||
uses: actions/configure-pages@v2 | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
# Upload entire repository | ||
path: 'docs' | ||
path: dir | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 | ||
uses: actions/deploy-pages@v2 | ||
|
||
cleanup: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 2 | ||
if: ${{ always() }} | ||
needs: [build, test, deploy] | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Cleanup | ||
run: | | ||
gh extension install actions/gh-actions-cache | ||
REPO=${{ github.repository }} | ||
## Setting this to not fail the workflow while deleting cache keys. | ||
set +e | ||
echo "Deleting caches..." | ||
gh actions-cache delete docs-cache-${{ github.sha }} -R $REPO --confirm | ||
echo "Done" | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.