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

ci: Github Action for cargo-udeps failed #2898

Open
github-actions bot opened this issue Jan 12, 2025 · 1 comment
Open

ci: Github Action for cargo-udeps failed #2898

github-actions bot opened this issue Jan 12, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@github-actions
Copy link
Contributor

cargo-udeps failed: https://github.com/dojoengine/dojo/actions/runs/12735845629
Reference: branch refs/heads/main (commit a5377ac).

@github-actions github-actions bot added the bug Something isn't working label Jan 12, 2025
@Sumitpalekar
Copy link

The error you're seeing is related to GitHub Actions transitioning their ubuntu-latest runner from Ubuntu 22.04 to Ubuntu 24.04.

yaml
{
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
# Explicitly specify Ubuntu 22.04 to maintain stability
runs-on: ubuntu-22.04 # Instead of ubuntu-latest

steps:
- uses: actions/checkout@v4

# Install cargo-udeps
- name: Install cargo-udeps
  run: cargo install cargo-udeps
  
# Your other steps here
- name: Run cargo-udeps
  run: cargo udeps

}

Here's how to handle this transition:

  1. The immediate solution is to explicitly specify ubuntu-22.04 instead of ubuntu-latest in your workflow file. This ensures stability until you're ready to upgrade.

  2. To prepare for Ubuntu 24.04, you should:

    • Test your workflows on Ubuntu 24.04 by creating a separate workflow or job using ubuntu-24.04
    • Check if all your dependencies and tools are compatible with Ubuntu 24.04
    • Update any packages or configurations that might need adjustment

If you want to test both versions simultaneously, you can use a matrix strategy:

yaml

{
jobs:
build:
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-24.04]
runs-on: ${{ matrix.os }}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant