-
Notifications
You must be signed in to change notification settings - Fork 3
58 lines (55 loc) · 1.4 KB
/
integration.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
54
55
56
57
58
name: Testing & distribution
on:
push:
branches: [ main ]
pull_request:
branches: [ main, dev ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: 'build-${{matrix.os}}'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: Build members
run: cargo build --workspace --verbose
- name: Run clippy lint test
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Run rustfmt test
run: cargo fmt --all -- --check
- name: Run tests
run: cargo test --workspace --verbose
deb-build:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Ensure cargo-deb crate
run: cargo install cargo-deb
- name: Generate package
run: cargo deb
- name: 'Upload Artifact'
uses: actions/upload-artifact@v2
with:
name: folden_amd64.deb
path: target/debian
retention-days: 1
windows-build:
needs: [build]
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Ensure cargo-wix crate
run: cargo install cargo-wix
- name: Generate installer
run: cargo wix -v --nocapture -o .
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: folden.msi
path: ./*.msi
retention-days: 1