Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
78a6d92
chore: use windows self hosted
stormslowly Jun 5, 2025
94b1f23
perf: try no cache on windows
stormslowly Jun 5, 2025
9c81f86
test: disable cargo cache
stormslowly Jun 5, 2025
ea09a06
refactor: try release
stormslowly Jun 5, 2025
57db657
test: try cache with release build
stormslowly Jun 5, 2025
3e3f67d
test: try ci profile for windows
stormslowly Jun 5, 2025
09bba8b
test: final use config of self hosted windows
stormslowly Jun 6, 2025
ff2de7c
fix: save-if expression
stormslowly Jun 6, 2025
7a6e015
chore: try totally no cache
stormslowly Jun 6, 2025
146742b
Merge remote-tracking branch 'origin/main' into chore/windows_self_ho…
stormslowly Jun 9, 2025
b7a8eff
chore: debug
stormslowly Jun 9, 2025
951ff36
chore: try release deug
stormslowly Jun 9, 2025
03b45ee
chore: try ci profile
stormslowly Jun 9, 2025
b8fc3b0
chore: dev profile is fastest
stormslowly Jun 9, 2025
66ea049
chore: only
stormslowly Jun 9, 2025
98b9b86
chore: i need cache
stormslowly Jun 9, 2025
1339a3e
Merge remote-tracking branch 'origin/main' into chore/windows_self_ho…
stormslowly Jun 12, 2025
7835a88
revert: ⏪ windows only
stormslowly Jun 12, 2025
7c08085
Merge branch 'main' into chore/windows_self_hosted
stormslowly Jun 13, 2025
c92c56b
feat: specifier test runner lables by test-runner input
stormslowly Jun 16, 2025
f891567
Merge branch 'chore/windows_self_hosted' of github.com:web-infra-dev/…
stormslowly Jun 16, 2025
13a27af
Merge branch 'main' into chore/windows_self_hosted
stormslowly Jun 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/actions/rustup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ runs:

- name: Restore rustup cache
id: restore
if: ${{ inputs.save-if == 'true' }}
uses: ./.github/actions/cache/restore
with:
path: ~/.rustup/toolchains
Expand All @@ -63,7 +64,8 @@ runs:
key: rustup-cache-v2-${{ runner.os }}-${{ steps.get-toolchain.outputs.toolchain }}

- name: Cargo cache
if: ${{ runner.environment != 'self-hosted' || runner.os != 'Windows' }}
uses: ./.github/actions/rustup/cargo
with:
key: ${{ inputs.key }}
save-if: ${{ inputs.save-if }}
save-if: ${{ inputs.save-if == 'true' }}
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ jobs:
with:
target: x86_64-pc-windows-msvc
profile: "dev"
runner: ${{ vars.WINDOWS_RUNNER_LABELS || '"windows-latest"' }}
runner: ${{ vars.WINDOWS_SELF_HOSTED_RUNNER_LABELS || '"windows-latest"' }}
test-runner: '"windows-latest"'
test: true

test-mac:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/reusable-build-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ jobs:
uses: ./.github/actions/rustup
with:
key: ${{ inputs.target }}-${{ inputs.profile }}
save-if: true
# don't need use cache in self-hosted windows; benefits of build with cargo build are wasted by cache restore
save-if: ${{ runner.environment != 'self-hosted' || runner.os != 'Windows' }}

# setup rust target for native runner
- name: Setup Rust Target
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
runner: # Runner labels
required: true
type: string
test-runner: # Test Runner labels
required: false
type: string
profile: # Rust profile, "ci" or "production" or "profiling"
default: "ci"
required: false
Expand Down Expand Up @@ -43,7 +46,7 @@ jobs:
uses: ./.github/workflows/reusable-build-test.yml
with:
target: ${{ inputs.target }}
runner: ${{ inputs.runner }}
runner: ${{ inputs.test-runner || inputs.runner }}
ref: ${{ inputs.ref }}
bench:
uses: ./.github/workflows/reusable-build-bench.yml
Expand Down
Loading