forked from EpicCash/epic
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (30 loc) · 845 Bytes
/
rust.yml
File metadata and controls
38 lines (30 loc) · 845 Bytes
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
name: Rust
on:
push:
branches: [ 3.0.0-dev ]
pull_request:
branches: [ 3.0.0-dev ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Cache cargo registry
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-${{ matrix.backend }}-cargo-${{ hashFiles('**/Cargo.toml') }}
- name: Install dependencies
run: sudo apt-get install -y build-essential cmake git libgit2-dev clang zlib1g-dev pkg-config llvm
- name: Build project
run: cargo build --locked --release
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: epic-linux-x86_64
path: ./target/release/epic
retention-days: 5