Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Rust

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

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
Comment on lines +13 to +22
Copy link
Contributor

Choose a reason for hiding this comment

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

P1 Badge Set cargo steps to codex-rs workspace

The workflow runs cargo build and cargo test from the repository root, but this repo’s Cargo workspace lives under codex-rs/ and there is no Cargo.toml at the root. As written the job will fail on every run with “could not find Cargo.toml in /github/workspace”, so the steps never succeed. Add working-directory: codex-rs (or similar) before invoking cargo so the commands execute in the Rust workspace.

Useful? React with 👍 / 👎.

Loading