-
Notifications
You must be signed in to change notification settings - Fork 215
50 lines (40 loc) · 1.01 KB
/
unix.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
name: Unix build and tests
on:
pull_request:
schedule:
- cron: '0 3 * * *'
env:
CARGO_INCREMENTAL: false
jobs:
unix:
strategy:
matrix:
os: [ ubuntu-latest, macOS-latest ]
rust: [ 1.65.0 ]
runs-on: ${{matrix.os}}
env:
RUST_VERSION: ${{matrix.rust}}
RUST_BACKTRACE: full
steps:
- uses: actions/checkout@v3
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
with:
path: |
~/.rustup
~/.cargo/registry
~/.cargo/git
#~/.cache/sccache
target
.cached
key: ${{ runner.os }}-main-${{matrix.rust}}-${{steps.date.outputs.date}}-d
# - name: "Setup sccache"
# run: .travis/setup-sccache.sh
- name: Native script
run: .travis/regular-tests.sh
env:
SHORT: yes
# - name: Stop sccache server
# run: sccache --stop-server || true