-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (49 loc) · 1.4 KB
/
build.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
51
52
53
name: Build
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
build-macos:
runs-on: macos-latest
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'zhangyuan/google-authenticator-extractor'
steps:
- uses: actions/checkout@v2
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Install dependencies
run: ./scripts/macosx/install.sh
- name: Build
run: ./scripts/macosx/build.sh
- name: Test
run: cargo test
- name: Release
run: ./scripts/macosx/release.sh
build-ubuntu:
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'zhangyuan/google-authenticator-extractor'
steps:
- uses: actions/checkout@v2
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Install dependencies
run: ./scripts/ubuntu/install.sh
- name: Build
run: ./scripts/ubuntu/build.sh
- name: Test
run: cargo test