ci: fix YAML errors; move jobs to root in upstream-merge and replace save-if: ${{ always() }} with save-if: true for rust-cache

This commit is contained in:
James Peter
2025-09-06 21:28:11 +10:00
parent 3f5f358a25
commit bb607d69ad
2 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ jobs:
with:
workspaces: |
codex-rs -> codex-rs/target
save-if: ${{ always() }}
save-if: true
- name: Configure Git author
timeout-minutes: 5
+21 -21
View File
@@ -30,30 +30,30 @@ env:
UPSTREAM_BRANCH: ${{ inputs.upstream_branch || 'main' }}
MERGE_BRANCH: upstream-merge
jobs:
merge:
runs-on: ubuntu-latest
timeout-minutes: 45
jobs:
merge:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Check out repository (full history)
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
steps:
- name: Check out repository (full history)
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Rust toolchain (match repo)
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.89.0
- name: Setup Rust toolchain (match repo)
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.89.0
- name: Cache Rust build (cargo + target)
uses: Swatinem/rust-cache@v2
with:
# Our Rust workspace lives in codex-rs; cache its target dir
workspaces: |
codex-rs -> codex-rs/target
save-if: ${{ always() }}
- name: Cache Rust build (cargo + target)
uses: Swatinem/rust-cache@v2
with:
# Our Rust workspace lives in codex-rs; cache its target dir
workspaces: |
codex-rs -> codex-rs/target
save-if: true
- name: Setup Node.js
uses: actions/setup-node@v4