fix: update outdated repo setup in codex.yml (#1171)
We should do some work to share the setup logic across `codex.yml`, `ci.yml`, and `rust-ci.yml`.
This commit is contained in:
19
.github/workflows/codex.yml
vendored
19
.github/workflows/codex.yml
vendored
@@ -47,9 +47,22 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 22
|
node-version: 22
|
||||||
|
|
||||||
- name: Install dependencies (codex-cli)
|
- name: Get pnpm store directory
|
||||||
working-directory: codex-cli
|
id: pnpm-cache
|
||||||
run: npm ci
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "store_path=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Setup pnpm cache
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ${{ steps.pnpm-cache.outputs.store_path }}
|
||||||
|
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-pnpm-store-
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pnpm install
|
||||||
|
|
||||||
- uses: dtolnay/rust-toolchain@1.87
|
- uses: dtolnay/rust-toolchain@1.87
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user