-
-
Notifications
You must be signed in to change notification settings - Fork 89
76 lines (61 loc) · 1.97 KB
/
linux-git-devel.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
75
76
name: "Linux (Git devel)"
on:
# TODO(#1416): re-enable once tests are passing on Git v2.46+
# schedule:
# # Run once every day at 6:40AM UTC.
# - cron: "40 6 * * *"
# push:
# branches:
# - master
# pull_request:
# paths:
# - ".github/workflows/*.yml"
workflow_dispatch:
env:
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: short
jobs:
run-tests:
if: startsWith(github.head_ref, 'ci-') || github.head_ref == ''
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: git-master
repository: git/git
ref: master
- uses: actions/checkout@v4
with:
path: git-next
repository: git/git
ref: next
- name: Install dependencies
run: |
sudo apt-get update --fix-missing
# List of dependencies from https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
sudo apt-get install dh-autoreconf libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev
- name: Build Git `master`
run: (cd git-master && make)
- name: Build Git `next`
run: (cd git-next && make)
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.74
override: true
- uses: actions/checkout@v4
with:
path: git-branchless
- name: Run Rust tests on Git `master`
timeout-minutes: 30
run: |
export TEST_GIT="$PWD"/git-master/git
export TEST_GIT_EXEC_PATH=$(dirname "$TEST_GIT")
(cd git-branchless && cargo test --all-features --examples --tests --workspace --no-fail-fast)
- name: Run Rust tests on Git `next`
timeout-minutes: 30
run: |
export TEST_GIT="$PWD"/git-next/git
export TEST_GIT_EXEC_PATH=$(dirname "$TEST_GIT")
(cd git-branchless && cargo test --all-features --examples --tests --workspace --no-fail-fast)