-
Notifications
You must be signed in to change notification settings - Fork 5
ci: add self-hosted PR workflow for same-repo pull requests #403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
85c0d6f
9dee79f
3f2925a
2ed23da
230a281
07796df
5fbd2e7
0b60858
e6dc424
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| name: CI_rs_selfhost | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [main] | ||
|
Comment on lines
+3
to
+5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This workflow triggers on every Useful? React with 👍 / 👎. |
||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: ci-pr-${{ github.event.pull_request.number }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| # fork からの PR: GitHub-hosted runner で通常 CI | ||
| ci-fork: | ||
| name: CI (fork PR / github-hosted) | ||
| if: github.event.pull_request.head.repo.full_name != github.repository | ||
| runs-on: ubuntu-22.04 | ||
| env: | ||
| # CI release tests don't need DWARF debug info, and disabling it keeps | ||
| # target artifacts small enough to avoid runner disk exhaustion on cache misses. | ||
| CARGO_PROFILE_RELEASE_DEBUG: 0 | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
|
||
| - name: Install HDF5 | ||
| run: sudo apt-get update && sudo apt-get install -y libhdf5-dev | ||
|
|
||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@stable | ||
|
|
||
| - uses: taiki-e/install-action@nextest | ||
|
|
||
| - uses: Swatinem/rust-cache@v2 | ||
|
|
||
| # tensor4all-hdf5 is kept out of nextest because its dlopen-based tests | ||
| # fail under nextest's per-process execution model. | ||
| - name: Run tests (non-HDF5) | ||
| run: cargo nextest run --release --workspace --exclude tensor4all-hdf5 | ||
|
|
||
| - name: Run HDF5 tests | ||
| run: cargo test --release -p tensor4all-hdf5 | ||
|
|
||
| # PRs from the same repository: run heavy CI on self-hosted runner | ||
| ci-maintainer: | ||
| name: CI (same-repo PR / self-hosted heavy) | ||
| if: github.event.pull_request.head.repo.full_name == github.repository | ||
| runs-on: [self-hosted, linux, x64] | ||
| env: | ||
| CARGO_TARGET_DIR: ${{ github.workspace }}/../target | ||
| CARGO_PROFILE_RELEASE_DEBUG: 0 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
|
|
||
| # 必要に応じてセットアップを追加 | ||
| - uses: dtolnay/rust-toolchain@stable | ||
|
|
||
| - uses: taiki-e/install-action@nextest | ||
|
|
||
| - name: Run tests (non-HDF5) | ||
| run: cargo nextest run --release --workspace --exclude tensor4all-hdf5 | ||
|
Comment on lines
+62
to
+63
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The Useful? React with 👍 / 👎. |
||
|
|
||
| - name: Run HDF5 tests | ||
| run: cargo test --release -p tensor4all-hdf5 | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commenting out the
testjob here removes release/tensor4all-hdf5test execution fromCI_rs.yml, but the replacement workflow only triggers forpull_requesttomain(CI_rs_selfhost.yml), so PRs targetingdevelopand allpushruns no longer get the previous test coverage. That creates a real gap where regressions can pass CI undetected in those paths.Useful? React with 👍 / 👎.