-
Notifications
You must be signed in to change notification settings - Fork 9
82 lines (73 loc) · 2.42 KB
/
ci-miri.yaml
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
82
name: Miri CI
on:
push:
branches:
- 'master'
pull_request:
branches:
- 'master'
schedule:
- cron: '00 2 * * *' # At 02:00 UTC every day (like rustup-components-history).
jobs:
# test-core:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Setup environment
# run: bash ./ci-miri-setup.sh
# - name: Test
# run: bash ./ci-miri-test.sh core
# test-alloc:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Setup environment
# run: bash ./ci-miri-setup.sh
# - name: Test
# run: bash ./ci-miri-test.sh alloc
# test-std:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Setup environment
# run: bash ./ci-miri-setup.sh
# - name: Test
# run: bash ./ci-miri-test.sh std
# test-simd:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Setup environment
# run: bash ./ci-miri-setup.sh
# - name: Test
# run: bash ./ci-miri-test.sh simd
# test-stdarch:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Setup environment
# run: bash ./ci-miri-setup.sh
# - name: Test
# run: bash ./ci-miri-test.sh stdarch
# # Send a Zulip notification when a cron job fails
# cron-fail-notify:
# name: cronjob failure notification
# runs-on: ubuntu-latest
# needs: [test-core, test-alloc, test-std, test-simd]
# if: github.event_name == 'schedule' && (failure() || cancelled())
# steps:
# - name: Install zulip-send
# run: pip3 install zulip
# - name: Send Zulip notification
# shell: bash
# env:
# ZULIP_BOT_EMAIL: ${{ secrets.ZULIP_BOT_EMAIL }}
# ZULIP_API_TOKEN: ${{ secrets.ZULIP_API_TOKEN }}
# run: |
# ~/.local/bin/zulip-send --stream miri --subject "Cron Job Failure (miri-test-libstd, $(date -u +%Y-%m))" \
# --message 'Dear @*T-miri*,
# The standard library test suite is [failing under Miri]('"https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"'). Would you mind investigating this issue?
# Thanks in advance!
# Sincerely,
# The Miri Cronjobs Bot' \
# --user $ZULIP_BOT_EMAIL --api-key $ZULIP_API_TOKEN --site https://rust-lang.zulipchat.com