-
-
Notifications
You must be signed in to change notification settings - Fork 89
46 lines (36 loc) · 1 KB
/
macos.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
name: macOS
on:
schedule:
# Run once every day at 6:40AM UTC.
- cron: "40 6 * * *"
push:
branches:
- master
pull_request:
env:
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: short
jobs:
run-tests:
if: contains(github.head_ref, 'macos') || github.head_ref == ''
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.74
override: true
- name: Cache dependencies
uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab
- name: Compile
run: cargo build --benches --tests
# TODO(#1416): re-enable once tests are passing on Git v2.46+
# - name: Run tests
# timeout-minutes: 30
# run: |
# export RUST_BACKTRACE=1
# export TEST_GIT=$(which git)
# export TEST_GIT_EXEC_PATH=$("$TEST_GIT" --exec-path)
# cargo test --workspace --no-fail-fast