Skip to content

Commit 7a539f6

Browse files
author
Denis Varlakov
committed
Use github workflows
1 parent 842941c commit 7a539f6

File tree

3 files changed

+46
-25
lines changed

3 files changed

+46
-25
lines changed

.github/workflows/build.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
schedule:
9+
- cron: '0 5 * * *'
10+
workflow_call:
11+
12+
env:
13+
CARGO_TERM_COLOR: always
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Build
21+
run: cargo build --verbose
22+
- name: Run tests
23+
run: cargo test --verbose
24+
- name: Check formatting
25+
run: cargo fmt --all -- --check
26+
- name: Run clippy
27+
run: cargo clippy -- -D clippy::all

.github/workflows/publish.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- v*.*.*
7+
8+
jobs:
9+
build:
10+
uses: ZenGo-X/curv/.github/workflows/build.yml@master
11+
publish:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Publish crate
16+
env:
17+
TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
18+
run: |
19+
cargo publish --token "$TOKEN"

.travis.yml

-25
This file was deleted.

0 commit comments

Comments
 (0)