Skip to main content
Copy a workflow below into .github/workflows/build.yml after connecting your repository. Each example runs only when you select Run workflow in GitHub; commit it to your default branch first. The examples use persistent repository caches and fall back to temporary storage when a cache isn’t available. Change the runner size to fit your build.
Build and test a Cargo project with a committed Cargo.lock. Compilation outputs persist between runs.