-
Notifications
You must be signed in to change notification settings - Fork 0
97 lines (78 loc) · 2.55 KB
/
Copy pathcodex-raw-ci.yml
File metadata and controls
97 lines (78 loc) · 2.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: codex-raw CI
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
concurrency:
group: codex-raw-ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
CARGO_INCREMENTAL: "0"
CARGO_TERM_COLOR: always
jobs:
check:
name: Format, lint, test, and release-build
runs-on: ubuntu-24.04
timeout-minutes: 60
defaults:
run:
working-directory: codex-rs
steps:
- name: Check out source
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install Rust 1.95.0
uses: dtolnay/rust-toolchain@e081816240890017053eacbb1bdf337761dc5582 # 1.95.0
with:
components: clippy, rustfmt
- name: Install just
uses: taiki-e/install-action@44c6d64aa62cd779e873306675c7a58e86d6d532 # v2.62.49
with:
tool: just@1.42.4
fallback: none
- name: Install cargo-nextest
uses: taiki-e/install-action@44c6d64aa62cd779e873306675c7a58e86d6d532 # v2.62.49
with:
tool: nextest@0.9.103
fallback: none
- name: Check Rust formatting
run: cargo fmt --package codex-raw -- --config imports_granularity=Item --check
- name: Run Clippy
run: cargo clippy --locked --package codex-raw --tests --no-deps -- -D warnings
- name: Run tests with cargo-nextest
run: just test -p codex-raw
- name: Build release binary
run: cargo build --locked --release --package codex-raw
windows:
name: Windows Raw tests and updater handoff
runs-on: windows-2025
timeout-minutes: 60
defaults:
run:
working-directory: codex-rs
steps:
- name: Check out source
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install Rust 1.95.0
uses: dtolnay/rust-toolchain@e081816240890017053eacbb1bdf337761dc5582 # 1.95.0
- name: Install just
uses: taiki-e/install-action@44c6d64aa62cd779e873306675c7a58e86d6d532 # v2.62.49
with:
tool: just@1.42.4
fallback: none
- name: Install cargo-nextest
uses: taiki-e/install-action@44c6d64aa62cd779e873306675c7a58e86d6d532 # v2.62.49
with:
tool: nextest@0.9.103
fallback: none
- name: Run Windows Raw tests
run: just test --locked -p codex-raw