aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci-check-only.yml
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-10 19:06:23 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-10 19:06:23 +0800
commitfe2f3405f518e5ad34fc6f6e409fdfafbb10e8d9 (patch)
tree5e1eeed746cd35d565c36b90eae42a838e252c78 /.github/workflows/ci-check-only.yml
parent8c2c3a968b39914b544e0878241a9558f897a543 (diff)
feat: add CI check workflow and update contributing guideHEADmain
Diffstat (limited to '.github/workflows/ci-check-only.yml')
-rw-r--r--.github/workflows/ci-check-only.yml47
1 files changed, 47 insertions, 0 deletions
diff --git a/.github/workflows/ci-check-only.yml b/.github/workflows/ci-check-only.yml
new file mode 100644
index 0000000..1179ed0
--- /dev/null
+++ b/.github/workflows/ci-check-only.yml
@@ -0,0 +1,47 @@
+name: CI (Check only)
+
+on:
+ push:
+ branches-ignore: [main]
+ pull_request:
+
+jobs:
+ Check-Codes:
+ strategy:
+ matrix:
+ os: [ubuntu-latest, windows-latest]
+ runs-on: ${{ matrix.os }}
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions-rust-lang/setup-rust-toolchain@v1
+
+ - name: Restore .temp cache
+ id: cache-temp
+ uses: actions/cache@v4
+ with:
+ path: .temp
+ key: ${{ runner.os }}-mingling-temp-${{ hashFiles('Cargo.lock', 'dev_tools/Cargo.toml', 'verified-docs.toml', 'examples/test-examples.toml') }}-${{ hashFiles('dev_tools/src/**/*.rs') }}
+ restore-keys: |
+ ${{ runner.os }}-mingling-temp-
+
+ - run: cargo ci --test-codes
+
+ Check-Docs:
+ strategy:
+ matrix:
+ os: [ubuntu-latest, windows-latest]
+ runs-on: ${{ matrix.os }}
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions-rust-lang/setup-rust-toolchain@v1
+
+ - name: Restore .temp cache
+ id: cache-temp
+ uses: actions/cache@v4
+ with:
+ path: .temp
+ key: ${{ runner.os }}-mingling-temp-${{ hashFiles('Cargo.lock', 'dev_tools/Cargo.toml', 'verified-docs.toml', 'examples/test-examples.toml') }}-${{ hashFiles('dev_tools/src/**/*.rs') }}
+ restore-keys: |
+ ${{ runner.os }}-mingling-temp-
+
+ - run: cargo ci --test-docs