-
-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (47 loc) · 1.46 KB
/
rustci.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
name: Build
on:
push:
branches:
- master
tags:
- v*
pull_request:
branches:
- master
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build Binary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install Deps
run: sudo apt install -y libxkbcommon-dev libalsaplayer-dev libasound2-dev
- name: Run fmt check
run: cargo fmt --all -- --check
- name: Run clippy check
run: cargo clippy
- name: Run tests
run: cargo test --verbose
release:
permissions:
contents: write
if: startsWith(github.ref, 'refs/tags/v')
needs:
- build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install Deps
run: sudo apt install -y libxkbcommon-dev libwayland-dev libalsaplayer-dev libasound2-dev
- name: Publish to crate
run: |
cargo publish -p iced_zbus_notification --token ${{ secrets.CRATES_TOKEN }}
cargo publish -p lala-bar --token ${{ secrets.CRATES_TOKEN }}
- uses: softprops/action-gh-release@v2
with:
draft: false