Linux (Git devel) #1869
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Linux (Git devel)" | |
on: | |
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.67.0 | |
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) | |
- 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) |