summaryrefslogtreecommitdiff
path: root/.github/workflows/linux_builds.yml
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2021-05-03 16:57:55 +0200
committerRémi Verschelde <rverschelde@gmail.com>2021-05-03 20:44:49 +0200
commitafb65ebc2c9ef7ca714fab2f811db1ede95ce399 (patch)
tree3c49db135e82d92ceb13b01e839a69f4d8956773 /.github/workflows/linux_builds.yml
parenta8f45efa435b09c83c48d2671607cc302d9f51f9 (diff)
CI: Add `--doctool` check to find missing classref updates
This will enforce that PRs properly sync the class reference templates to match their changes to the public API, and help notice binding bugs in the process (e.g. missing enum bindings, unexpected API changes or missing argument names). This should also serve as a reminder to contributors that their changes impact the scripting API and might warrant actually filling the descriptions for the new methods/properties/etc.
Diffstat (limited to '.github/workflows/linux_builds.yml')
-rw-r--r--.github/workflows/linux_builds.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/linux_builds.yml b/.github/workflows/linux_builds.yml
index 7b144e6e43..0982d768d6 100644
--- a/.github/workflows/linux_builds.yml
+++ b/.github/workflows/linux_builds.yml
@@ -70,6 +70,23 @@ jobs:
run: |
./bin/godot.linuxbsd.opt.tools.64 --test
+ # Download, unzip and setup SwiftShader library [d4550ab8d3f]
+ - name: Download SwiftShader
+ run: |
+ wget https://github.com/qarmin/gtk_library_store/releases/download/3.24.0/swiftshader.zip
+ unzip swiftshader.zip
+ rm swiftshader.zip
+ curr="$(pwd)/libvk_swiftshader.so"
+ sed -i "s|PATH_TO_CHANGE|$curr|" vk_swiftshader_icd.json
+
+ # Check class reference
+ - name: Check for class reference updates
+ run: |
+ echo "Running --doctool to see if this changes the public API without updating the documentation."
+ echo -e "If a diff is shown, it means that your code/doc changes are incomplete and you should update the class reference with --doctool.\n\n"
+ VK_ICD_FILENAMES=$(pwd)/vk_swiftshader_icd.json DRI_PRIME=0 xvfb-run bin/godot.linuxbsd.opt.tools.64 --doctool . 2>&1 > /dev/null || true
+ git diff --color --exit-code
+
- uses: actions/upload-artifact@v2
with:
name: ${{ github.job }}