-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.14 KB
/
rust_build_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
name: macOS Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3.0.2
with:
# A list of files, directories, and wildcard patterns to cache and restore
path: target
# An explicit key for restoring and saving the cache
key: build_artifacts
# An ordered list of keys to use for restoring the cache if no cache hit occurred for key
# restore-keys: # optional
# The chunk size used to split up large files during upload, in bytes
# upload-chunk-size: # optional
- name: Install latest nightly version of rustc
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
# components:
- name: Print version
uses: actions-rs/cargo@v1
with:
command: version
- name: Build
uses: actions-rs/cargo@v1
with:
command: build