-
Notifications
You must be signed in to change notification settings - Fork 251
60 lines (55 loc) · 1.91 KB
/
Copy pathloom.yml
File metadata and controls
60 lines (55 loc) · 1.91 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
name: Loom
on:
push:
branches: [ "main" ]
pull_request:
merge_group:
permissions:
contents: read
concurrency:
group: tests-loom-${{ github.head_ref || github.ref_name || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
CARGO_TERM_COLOR: always
jobs:
Tests:
name: "Tests${{ matrix.flags && format(' (flags: \"{0}\")', matrix.flags) }} (partition: ${{ matrix.partition }})"
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
include:
- flags: ""
partition: "1/1"
- flags: "--features iouring"
partition: "1/5"
- flags: "--features iouring"
partition: "2/5"
- flags: "--features iouring"
partition: "3/5"
- flags: "--features iouring"
partition: "4/5"
- flags: "--features iouring"
partition: "5/5"
steps:
- name: Checkout repository
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
- name: Configure swap
uses: ./.github/actions/swap
- name: Clear disk space
uses: ./.github/actions/disk
- name: Run setup
uses: ./.github/actions/setup
with:
additional-cache-key: ${{ matrix.flags || 'default' }}
rust-cache-save: ${{ startsWith(matrix.partition, '1/') }}
sccache-r2-bucket: ${{ secrets.SCCACHE_R2_BUCKET }}
sccache-r2-endpoint: ${{ secrets.SCCACHE_R2_ENDPOINT }}
sccache-r2-access-key-id: ${{ secrets.SCCACHE_R2_ACCESS_KEY_ID }}
sccache-r2-secret-access-key: ${{ secrets.SCCACHE_R2_SECRET_ACCESS_KEY }}
- name: Install just & nextest
uses: taiki-e/install-action@43aecc8d72668fbcfe75c31400bc4f890f1c5853 # v2.83.2
with:
tool: just@1.43.0,cargo-nextest@0.9.133
- name: Run loom tests
run: just test-loom ${{ matrix.flags }} --partition hash:${{ matrix.partition }} --verbose