Repository navigation
ci: move ubuntu-latest jobs onto linux-amd64-cpu4 #1377
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
Closed
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
65a9e7d
ci: run CodeQL on an 8-core runner
roivanov 52d6a74
ci: run CodeQL on a 4-core runner
roivanov fa5a805
ci: run the remaining workflows on linux-amd64-cpu4
roivanov e1dba52
ci: run CUDA jobs in the Ubuntu devel image
roivanov e73b019
ci: check out the repo before the CUDA setup action
roivanov 6083b7c
ci: install python3 for the example lockfile check
roivanov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| --- | ||
| name: Set up the CUDA devel container | ||
| description: >- | ||
| Installs the host packages the nvidia/cuda devel image lacks, marks the | ||
| workspace safe for git, and installs rustup. The caller checks the | ||
| repository out first: a local action is resolved from the workspace, so | ||
| this action cannot be the job's first step. The image already contains | ||
| the CUDA toolkit. Later steps pick up rust-toolchain.toml from their | ||
| working directory. | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Install host packages | ||
| shell: bash | ||
| run: | | ||
| apt-get update -qq | ||
| apt-get install -y -qq --no-install-recommends \ | ||
| build-essential ca-certificates curl git pkg-config libclang-dev wget | ||
|
|
||
| - name: Mark the workspace as a safe git directory | ||
| shell: bash | ||
| run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
|
|
||
| - name: Install Rust | ||
| shell: bash | ||
| run: | | ||
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \ | ||
| | sh -s -- -y --no-modify-path --profile minimal --default-toolchain none | ||
| echo "${HOME}/.cargo/bin" >> "${GITHUB_PATH}" | ||
| # Root rust-toolchain.toml is the stable pin. cuda-oxide/ selects the | ||
| # nightly when a later step sets that working directory. | ||
| "${HOME}/.cargo/bin/rustup" show | ||
| (cd cuda-oxide && "${HOME}/.cargo/bin/rustup" show) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like every place this is called installs ca-certificates and git beforehand anyway due to this being in the repo that needs to be checked out. Same with the mark as a safe git repository (maybe I missed some). I think that the duplication should be removed from here as you state it cannot be called until after the checkotu.