File tree Expand file tree Collapse file tree 3 files changed +27
-5
lines changed Expand file tree Collapse file tree 3 files changed +27
-5
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,22 @@ name: Ubuntu build
3
3
on :
4
4
push :
5
5
branches :
6
- - ' main'
6
+ - main
7
+ tags :
8
+ - v*.*.*
7
9
pull_request :
8
10
branches :
9
- - ' main'
11
+ - main
10
12
- ' */*'
11
13
- ' update_flake_lock_action'
12
14
schedule :
13
15
- cron : ' 0 0 * * 1'
14
16
workflow_dispatch :
15
17
18
+ concurrency :
19
+ group : ${{ github.workflow }}-${{ github.ref }}
20
+ cancel-in-progress : true
21
+
16
22
jobs :
17
23
build :
18
24
strategy :
45
51
46
52
- name : Lint
47
53
run : |
48
- RUSTFLAGS="${{ matrix.flags }}" cargo clippy --workspace --all-targets --bins --tests --examples --features="logging-utils" -- -D warnings
54
+ RUSTFLAGS="${{ matrix.flags }}" cargo clippy --workspace --all-targets --bins --tests --examples --features="logging-utils" -- -D warnings
55
+
56
+ publish :
57
+ needs :
58
+ - build
59
+ runs-on : ubuntu-latest
60
+ env :
61
+ RUST_LOG : info
62
+ RUSTFLAGS : " --cfg async_executor_impl=\" async-std\" --cfg async_channel_impl=\" async-std\" "
63
+ steps :
64
+ - uses : actions/checkout@v4
65
+ - uses : katyo/publish-crates@v2
66
+ with :
67
+ # Only do an actual publish if this is a push to a release tag. Otherwise, do a dry run.
68
+ dry-run : ${{ !(github.event_name == 'push' && github.ref_type == 'tag') }}
69
+ ignore-unpublished-changes : true
70
+ registry-token : ${{ secrets.CARGO_REGISTRY_TOKEN }}
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " async-compatibility-layer"
3
3
description = " an abstraction layer for using both async-std and tokio"
4
- version = " 1.0 .0"
4
+ version = " 1.1 .0"
5
5
edition = " 2021"
6
6
7
7
[features ]
You can’t perform that action at this time.
0 commit comments