Remove workflow since it doesn't work on github

This commit is contained in:
2025-04-29 02:49:26 +02:00
parent f07b220dba
commit 2b75b17ca4
3 changed files with 34 additions and 112 deletions

View File

@@ -1,100 +0,0 @@
name: C/C++ CI
on:
push:
branches: [ "master", "nvrhi" ]
pull_request:
branches: [ "master", "nvrhi" ]
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # This cron expression triggers the workflow every day at midnight UTC
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
# Ensure PowerShell Core is installed (just in case it's missing)
- name: Install PowerShell Core
run: |
if (!(Get-Command pwsh -ErrorAction SilentlyContinue)) {
Invoke-WebRequest -Uri https://github.com/PowerShell/PowerShell/releases/download/v7.2.1/PowerShell-7.2.1-win-x64.msi -OutFile $env:temp\pwsh_installer.msi
Start-Process msiexec.exe -ArgumentList "/i", "$env:temp\pwsh_installer.msi", "/quiet", "/norestart" -Wait
}
- name: Init vcpkg
run: ./setup.bat
- name: Configure project
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
- name: Build executable
run: |
cd build
cmake --build . --config Release
- name: Create output structure
run: |
mkdir artifacts
cd artifacts
move ../staticFiles/python .
move ../staticFiles/textures .
move ../staticFiles/renderercfg.yml .
move ../build/bin/Release/* .
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: compiled-binaries
path: artifacts/
nightly_release:
runs-on: ubuntu-latest
needs: build # This step depends on the "build" job
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Generate release version
run: |
DATE=$(date +'%d-%m-%y') # Get the current date in dd-mm-yy format
RELEASE_NAME="eu07_nightly_${DATE}.zip"
echo "Release name: $RELEASE_NAME"
# Create zip file
zip -r $RELEASE_NAME artifacts/
- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
DATE=$(date +'%d-%m-%y')
RELEASE_NAME="eu07_nightly_${DATE}.zip"
# Create a GitHub release
response=$(curl -s -X POST \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
-d '{"tag_name": "nightly-'${DATE}'", "name": "Nightly Release '"${DATE}"'", "body": "Nightly build generated on '"${DATE}"'"}' \
https://api.github.com/repos/${{ github.repository }}/releases)
# Upload the release zip file
upload_url=$(echo $response | jq -r '.upload_url' | sed -e 's/{?name,label}//')
curl -X POST -H "Authorization: token $GITHUB_TOKEN" \
-H "Content-Type: application/zip" \
--data-binary @${RELEASE_NAME} \
"${upload_url}?name=${RELEASE_NAME}"
- name: Clean up
run: |
rm eu07_nightly_*.zip

View File

@@ -729,7 +729,6 @@ float NvRenderer::Framerate() {
return 1000.f / (Timer::subsystem.mainloop_total.average()); return 1000.f / (Timer::subsystem.mainloop_total.average());
//return 0.0f; //return 0.0f;
} }
gfx::geometrybank_handle NvRenderer::Create_Bank() { gfx::geometrybank_handle NvRenderer::Create_Bank() {

View File

@@ -1447,17 +1447,40 @@ debug_panel::update_section_renderer( std::vector<text_line> &Output ) {
Output.emplace_back( textline, Global.UITextColor ); Output.emplace_back( textline, Global.UITextColor );
textline = std::string textline = "Rendering mode: ";
std::string( "Rendering mode: " )
+ ( Global.GfxRenderer == "default" ? if (Global.GfxRenderer == "default")
"Shaders" : {
( Global.BasicRenderer ? textline += "Shaders";
"Legacy Simple" : }
"Legacy" ) ) else if (Global.GfxRenderer == "experimental")
+ ( Global.bUseVBO ? {
", VBO" : textline += "NVRHI on ";
", Display Lists" ) if (Global.)
+ " "; }
else
{
if (Global.BasicRenderer)
{
textline += "Legacy Simple";
}
else
{
textline += "Legacy";
}
}
if (Global.bUseVBO)
{
textline += ", VBO";
}
else
{
textline += ", Display Lists";
}
textline += " ";
if( false == Global.LastGLError.empty() ) { if( false == Global.LastGLError.empty() ) {
textline += textline +=
"Last openGL error: " "Last openGL error: "