-
Notifications
You must be signed in to change notification settings - Fork 74
81 lines (72 loc) · 2.59 KB
/
Copy pathmain_nightly.yml
File metadata and controls
81 lines (72 loc) · 2.59 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
name: Main-CI-Nightly
on:
schedule:
- cron: "0 0 * * *" # Runs at 00:00 UTC every day
workflow_dispatch:
env:
RUSTFLAGS: "-D warnings"
jobs:
define_branches:
runs-on: namespace-profile-small-ubuntu-24-04-amd64
outputs:
branches: ${{ steps.branches.outputs.branches }}
steps:
- name: Define branches for nightly run.
id: branches
run: echo 'branches=["main", "main-v0.14.3", "main-v0.14.2"]' >> "$GITHUB_OUTPUT"
feature_combos:
runs-on: namespace-profile-large-ubuntu-24-04-amd64;ephemeral-storage.size-multiplier=2
needs: define_branches
strategy:
matrix:
branch: ${{ fromJson(needs.define_branches.outputs.branches) }}
steps:
- uses: actions/checkout@v6
with:
ref: ${{ matrix.branch }}
# Setup pypy and link to the location expected by .cargo/config.toml.
- uses: actions/setup-python@v5
id: setup-pypy
with:
python-version: "pypy3.9"
cache: "pip"
- run: ln -s '${{ steps.setup-pypy.outputs.python-path }}' /usr/local/bin/pypy3.9
- env:
LD_LIBRARY_PATH: ${{ env.Python3_ROOT_DIR }}/bin
run: echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> $GITHUB_ENV
- run: pip install -r scripts/requirements.txt
# Install rust components.
- uses: ./.github/actions/bootstrap
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Run feature combo test.
- name: "Run feature combo on all crates."
run: scripts/run_feature_combos_test.py
run-integration-tests:
runs-on: namespace-profile-large-ubuntu-24-04-amd64;ephemeral-storage.size-multiplier=1.5
needs: define_branches
strategy:
matrix:
branch: ${{ fromJson(needs.define_branches.outputs.branches) }}
steps:
- uses: actions/checkout@v6
with:
ref: ${{ matrix.branch }}
- uses: ./.github/actions/bootstrap
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Setup pypy and link to the location expected by .cargo/config.toml.
- uses: actions/setup-python@v5
id: setup-pypy
with:
python-version: "pypy3.9"
- run: ln -s '${{ steps.setup-pypy.outputs.python-path }}' /usr/local/bin/pypy3.9
- env:
LD_LIBRARY_PATH: ${{ env.Python3_ROOT_DIR }}/bin
run: echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> $GITHUB_ENV
- run: pip install -r scripts/requirements.txt
- name: "Run integration tests pull request"
run: |
scripts/run_tests.py --command integration --is_nightly
env:
SEED: 0