diff --git a/.github/workflows/pr-benchmark.yml b/.github/workflows/pr-benchmark.yml index 8c96a8b..14e9780 100644 --- a/.github/workflows/pr-benchmark.yml +++ b/.github/workflows/pr-benchmark.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Set up Rust uses: dtolnay/rust-toolchain@v1 @@ -43,7 +43,7 @@ jobs: - name: Run benchmark command with memory tracking id: benchmark run: | - /usr/bin/time -v ./target/release/arnis --path="./world" --terrain --generate-map --bbox="48.125768 11.552296 48.148565 11.593838" 2> benchmark_log.txt + /usr/bin/time -v ./target/release/arnis --path="./world" --terrain --bbox="48.125768 11.552296 48.148565 11.593838" 2> benchmark_log.txt grep "Maximum resident set size" benchmark_log.txt | awk '{print $6}' > peak_mem_kb.txt peak_kb=$(cat peak_mem_kb.txt) peak_mb=$((peak_kb / 1024)) @@ -57,25 +57,6 @@ jobs: duration=$((end_time - start_time)) echo "duration=$duration" >> $GITHUB_OUTPUT - - name: Check for map preview - id: map_check - run: | - if [ -f "./world/arnis_world_map.png" ]; then - echo "Map preview generated successfully" - echo "map_exists=true" >> $GITHUB_OUTPUT - else - echo "Map preview not found" - echo "map_exists=false" >> $GITHUB_OUTPUT - fi - - - name: Upload map preview as artifact - if: steps.map_check.outputs.map_exists == 'true' - uses: actions/upload-artifact@v4 - with: - name: world-map-preview - path: ./world/arnis_world_map.png - retention-days: 60 - - name: Format duration and generate summary id: comment_body run: | @@ -106,27 +87,20 @@ jobs: mem_annotation=" (↗ ${mem_percent}% more)" fi - # Get current timestamp benchmark_time=$(date -u "+%Y-%m-%d %H:%M:%S UTC") - run_url="https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" { echo "summary< { // Notify the GUI that the map preview is ready - crate::progress::emit_map_preview_ready(); + emit_map_preview_ready(); } Ok(Err(e)) => { eprintln!("Warning: Failed to generate map preview: {}", e); diff --git a/src/gui.rs b/src/gui.rs index e54e311..242c1e8 100644 --- a/src/gui.rs +++ b/src/gui.rs @@ -876,7 +876,6 @@ fn gui_start_generation( &mut xzbbox, &mut ground, ); - send_log(LogLevel::Info, "Map transformation completed."); let _ = data_processing::generate_world( parsed_elements, diff --git a/src/main.rs b/src/main.rs index 1e6a9f9..7551e6c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -37,6 +37,7 @@ mod gui; mod progress { pub fn emit_gui_error(_message: &str) {} pub fn emit_gui_progress_update(_progress: f64, _message: &str) {} + pub fn emit_map_preview_ready() {} pub fn is_running_with_gui() -> bool { false }