Skip to content

Update GitHub Actions CI #229

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

Merged
merged 1 commit into from
Jun 20, 2025
Merged

Update GitHub Actions CI #229

merged 1 commit into from
Jun 20, 2025

Conversation

mitza-oci
Copy link
Member

@mitza-oci mitza-oci commented Jun 10, 2025

Summary by CodeRabbit

  • Chores
    • Updated CI workflows to use newer operating systems and build environments: Windows Server 2022 with Visual Studio 2022, and Ubuntu 24.04.
    • Removed Visual Studio 2019 build configurations from Windows CI jobs.
    • Made minor formatting improvements in Linux CI setup commands.

Copy link

coderabbitai bot commented Jun 10, 2025

Walkthrough

The continuous integration workflows were updated to use newer operating systems and toolchains: Windows jobs now use Visual Studio 2022 on Windows Server 2022, and Linux jobs use Ubuntu 24.04. Additionally, Visual Studio 2019 build configurations were removed from the Windows workflow, streamlining the build matrix.

Changes

File(s) Change Summary
.github/workflows/cmake.yml Updated Windows build environment from VS2019/Windows-2019 to VS2022/Windows-2022.
.github/workflows/linux.yml Changed OS from Ubuntu 20.04 to 24.04; minor formatting tweak in GPG key addition command.
.github/workflows/windows.yml Removed VS2019 configurations; retained only VS2022 for 64-bit Debug and 32-bit Release builds.

Poem

A whisk of the paw, a hop to the new,
CI now builds with fresher dew.
Old servers and compilers, we bid you adieu,
Ubuntu and Windows, now shiny and true!
With each matrix trimmed, the carrots align—
Hooray for the workflows, streamlined and fine!
🥕✨


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
.github/workflows/linux.yml (1)

46-46: Deprecation warning: apt-key is deprecated
The apt-key add command is deprecated on newer Ubuntu releases. Consider switching to a signed-by mechanism by de-armoring the key and referencing it in /etc/apt/sources.list.d.

- wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
+ wget -qO - https://apt.llvm.org/llvm-snapshot.gpg.key \
+   | gpg --dearmor | sudo tee /usr/share/keyrings/llvm-archive-keyring.gpg >/dev/null
- sudo apt-add-repository "deb http://apt.llvm.org/$(lsb_release -cs)/ ${{ matrix.Repo }} main"
+ echo "deb [signed-by=/usr/share/keyrings/llvm-archive-keyring.gpg] http://apt.llvm.org/$(lsb_release -cs)/ ${{ matrix.Repo }} main" \
+   | sudo tee /etc/apt/sources.list.d/llvm.list
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a7e38f3 and f62a8db.

📒 Files selected for processing (3)
  • .github/workflows/cmake.yml (1 hunks)
  • .github/workflows/linux.yml (2 hunks)
  • .github/workflows/windows.yml (0 hunks)
💤 Files with no reviewable changes (1)
  • .github/workflows/windows.yml
⏰ Context from checks skipped due to timeout of 90000ms (7)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: ubuntu-24.04 g++-10
  • GitHub Check: VS2022Debug64
  • GitHub Check: windows-2022 vs2022
  • GitHub Check: macos-14-C++17
  • GitHub Check: VS2022Release32
  • GitHub Check: macos-13-C++17
🔇 Additional comments (2)
.github/workflows/linux.yml (1)

26-26:

❌ Incorrect review comment

Critical: Runner label ubuntu-24.04 may not be supported
GitHub-hosted runners currently provide ubuntu-20.04, ubuntu-22.04, and ubuntu-latest (22.04). If ubuntu-24.04 isn’t yet available, this job will fail. Please confirm runner availability or revert to a supported label.


🌐 Web query:

Which GitHub Actions runner labels are currently supported for Ubuntu images? Specifically, is `ubuntu-24.04` available?

💡 Result:

GitHub Actions provides several runner labels for Ubuntu images, each corresponding to a specific version of Ubuntu. As of June 2025, the available Ubuntu runner labels are:

  • ubuntu-latest
  • ubuntu-24.04
  • ubuntu-22.04
  • ubuntu-20.04

The ubuntu-latest label points to the latest stable release, which is currently Ubuntu 24.04. Therefore, specifying runs-on: ubuntu-latest in your workflow will use the ubuntu-24.04 runner. (docs.github.com)

To use a specific version, you can set the runs-on attribute to the desired label. For example:

jobs:
  build:
    runs-on: ubuntu-24.04
    steps:
      - uses: actions/checkout@v4
      - name: Set up Node.js
        uses: actions/setup-node@v4
        with:
          node-version: '14'
      - run: npm install
      - run: npm test

This configuration ensures that your job runs on the Ubuntu 24.04 runner. (docs.github.com)

For more details on choosing the appropriate runner for your job, refer to the GitHub documentation on Choosing the runner for a job.

Citations:


Ignore outdated runner warning: ubuntu-24.04 is supported
According to GitHub’s documentation (June 2025), the available Ubuntu runner labels include ubuntu-24.04. No change is needed—the workflow’s runs-on: ubuntu-24.04 will succeed.

Likely an incorrect or invalid review comment.

.github/workflows/cmake.yml (1)

27-29: Approved: Add Windows Server 2022 + VS2022 to the matrix
Using vs2022 on windows-2022 aligns with the updated CI environments and matches GitHub’s supported runner labels. No issues detected.

@jwillemsen
Copy link
Member

As we don't test ACE/TAO anymore on CI with Visual Studio 2019 what about removing the generation of the vs2019 solutions from the release, only ship with vs2022?

@mitza-oci
Copy link
Member Author

As we don't test ACE/TAO anymore on CI with Visual Studio 2019 what about removing the generation of the vs2019 solutions from the release, only ship with vs2022?

Seems like that's a discussion for the ACE_TAO repository, it shouldn't make a difference to the MPC repository.

@mitza-oci mitza-oci merged commit 4abacbc into DOCGroup:master Jun 20, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants