forked from vectordotdev/vector
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (66 loc) · 2.2 KB
/
baseline.yml
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
# Executes various builds of vector to time the results in order to track build times.
#
# This workflow is unrelated to the Regression workflow.
name: Baseline Timings
on:
workflow_dispatch:
env:
CI: true
jobs:
release-build-optimized:
name: "Release Build (optimized)"
runs-on: [linux, ubuntu-20.04-8core]
steps:
- uses: colpal/actions-clean@v1
- uses: actions/checkout@v3
- run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh
- run: bash scripts/environment/prepare.sh
- run: cargo clean
- run: cargo build --release
release-build-normal:
name: "Release Build (normal)"
runs-on: [linux, ubuntu-20.04-8core]
env:
# We're not actually doing a debug build, we're just turning off the logic
# in release-flags.sh so that we don't override the Cargo "release" profile
# with full LTO / single codegen unit.
PROFILE: debug
steps:
- uses: colpal/actions-clean@v1
- uses: actions/checkout@v3
- run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh
- run: bash scripts/environment/prepare.sh
- run: cargo clean
- run: cargo build --release
debug-build:
name: "Debug Build"
runs-on: [linux, ubuntu-20.04-8core]
steps:
- uses: colpal/actions-clean@v1
- uses: actions/checkout@v3
- run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh
- run: bash scripts/environment/prepare.sh
- run: cargo clean
- run: cargo build
debug-rebuild:
name: "Debug Rebuild"
runs-on: [linux, ubuntu-20.04-8core]
steps:
- uses: colpal/actions-clean@v1
- uses: actions/checkout@v3
- run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh
- run: bash scripts/environment/prepare.sh
- run: cargo clean
- run: cargo build
- run: touch src/app.rs
- run: cargo build
check:
name: "Cargo Check"
runs-on: [linux, ubuntu-20.04-8core]
steps:
- uses: colpal/actions-clean@v1
- uses: actions/checkout@v3
- run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh
- run: bash scripts/environment/prepare.sh
- run: cargo clean
- run: cargo check