Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internal: add CI checks for major Linux distros and fix build errors #2276

Merged
merged 9 commits into from
Dec 23, 2024

Conversation

nic11
Copy link
Collaborator

@nic11 nic11 commented Dec 22, 2024

Important

Enhanced CI workflow with multi-distro support, improved build scripts, and minor code fixes.

  • CI Workflow:
    • Renamed .github/workflows/pr-ubuntu-docker.yml to pr-linux-variants.yml.
    • Added support for multiple Linux distributions in pr-linux-variants.yml including Ubuntu 22.04, 24.04, 24.10, Debian 12, and Arch Linux.
    • Added scripts for setting up dependencies for each supported Linux distribution in misc/deps_linux/.
  • Build Script:
    • Updated build.sh to dynamically set compilers based on availability.
    • Added --clean-vcpkg and --print-env options to build.sh.
  • Code Improvements:
    • Added missing includes for <algorithm> and <cstdint> in several files including WRLD.cpp, OpcodesImplementation.cpp, ActivateEvent.h, CustomEvent.h, EatItemEvent.h, and ReadBookEvent.h.
    • Fixed return statement in SimdJsonInputArchive::Serialize in SimdJsonInputArchive.h to satisfy GCC requirements.
    • Improved error messages in yarn.cmake for better debugging.

This description was created by Ellipsis for f747f7b. It will automatically update as commits are pushed.

@nic11 nic11 mentioned this pull request Dec 23, 2024
@nic11 nic11 force-pushed the pr-check-containers branch from ee15a71 to 66bda12 Compare December 23, 2024 18:27
@nic11 nic11 marked this pull request as ready for review December 23, 2024 18:28
Dockerfile Outdated
@@ -21,10 +21,7 @@ RUN useradd -m skymp
# It contains everything that should be installed on the system.
FROM skymp-runtime-base AS skymp-build-base

# TODO: replace with a call to ubuntu2204?
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deliberately skipped Dockerfile for now to resolve in a separate PR

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Reviewed everything up to 66bda12 in 35 seconds

More details
  • Looked at 866 lines of code in 17 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_z4XN2IlISDWFQOYy


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@nic11
Copy link
Collaborator Author

nic11 commented Dec 23, 2024

@Pospelove should the title be

  • fix: add CI checks for major Linux distros and fix build errors
  • internal: add CI checks for major Linux distros and fix build errors

?

@nic11
Copy link
Collaborator Author

nic11 commented Dec 23, 2024

@ellipsis-dev update description

Copy link

ellipsis-dev bot commented Dec 23, 2024

Could you please provide more details on what specific updates you would like to see in the description? This will help me make the necessary changes accurately.

@nic11 nic11 marked this pull request as draft December 23, 2024 18:44
@nic11 nic11 marked this pull request as ready for review December 23, 2024 18:44
Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Reviewed everything up to f747f7b in 34 seconds

More details
  • Looked at 852 lines of code in 17 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skymp5-server/cpp/server_guest_lib/script_storages/ScriptStorageUtils.cpp:3
  • Draft comment:
    Using std::regex_match for a simple file extension check is inefficient. Consider using s.ends_with(".pex") for better performance.
  • Reason this comment was not posted:
    Comment was not on a valid diff hunk.

Workflow ID: wflow_wayOZpmN4w4UUi76


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@nic11 nic11 changed the title wip internal: add CI checks for major Linux distros and fix build errors Dec 23, 2024
@nic11 nic11 merged commit a027e54 into skyrim-multiplayer:main Dec 23, 2024
15 checks passed
@nic11 nic11 deleted the pr-check-containers branch December 23, 2024 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants