@@ -2,7 +2,7 @@ name: Release
2
2
on :
3
3
push :
4
4
tags :
5
- - " v*.*.* "
5
+ - " v[0-9]+ \\ .[0-9]+ \\ .[0-9]+ "
6
6
env :
7
7
CARGO_INCREMENTAL : 0
8
8
permissions :
@@ -49,35 +49,23 @@ jobs:
49
49
echo "There is a Cargo.toml version and git tag mismatch." && exit 1;
50
50
fi
51
51
52
- test :
52
+ lint :
53
53
needs : setup-environment
54
- uses : ./.github/workflows/test .yml
54
+ uses : ./.github/workflows/lint .yml
55
55
with :
56
56
cache-key : ${{ needs.setup-environment.outputs.cargo_cache_key }}
57
57
58
- publish-dry-run :
59
- needs : [setup-environment, test]
60
- runs-on : ubuntu-latest
61
- env :
62
- CARGO_CACHE_KEY : ${{ needs.setup-environment.outputs.cargo_cache_key }}
63
- steps :
64
- - uses : actions/checkout@v4
65
- - uses : actions-rust-lang/setup-rust-toolchain@v1
66
- - uses : actions/cache@v4
67
- with :
68
- path : |
69
- ~/.cargo/registry
70
- ~/.cargo/git
71
- target
72
- ~/.cargo/bin
73
- key : ${{ env.CARGO_CACHE_KEY }}
74
- id : cache-cargo-test
58
+ check-msrv :
59
+ uses : ./.github/workflows/msrv.yml
75
60
76
- - name : Attempt a publish dryrun
77
- run : |
78
- cargo publish --dry-run -p tinted-builder-rust
61
+ test :
62
+ needs : setup-environment
63
+ uses : ./.github/workflows/test.yml
64
+ with :
65
+ cache-key : ${{ needs.setup-environment.outputs.cargo_cache_key }}
79
66
80
67
create-release :
68
+ needs : [check-msrv, lint, test]
81
69
runs-on : ubuntu-latest
82
70
steps :
83
71
- uses : actions/checkout@v4
@@ -87,45 +75,28 @@ jobs:
87
75
token : ${{ secrets.GITHUB_TOKEN }}
88
76
89
77
release :
90
- needs : [setup-environment, publish-dry-run]
78
+ needs : create-release
91
79
name : ${{ matrix.target }}
92
80
runs-on : ${{ matrix.os }}
93
- env :
94
- CARGO_CACHE_KEY : ${{ needs.setup-environment.outputs.cargo_cache_key }}
95
81
strategy :
96
- fail-fast : false
97
82
matrix :
98
83
include :
99
- - prefix : x86_64-linux
100
- target : x86_64-unknown-linux-gnu
84
+ - target : x86_64-unknown-linux-gnu
101
85
os : ubuntu-latest
102
- cross : false
103
- deb : false
104
- - prefix : i686-linux
105
- target : i686-unknown-linux-gnu
86
+ - target : i686-unknown-linux-gnu
106
87
os : ubuntu-latest
107
- cross : true
108
- deb : true
109
- - prefix : aarch64-linux
110
- target : aarch64-unknown-linux-gnu
88
+ - target : aarch64-unknown-linux-gnu
111
89
os : ubuntu-latest
112
- cross : true
113
- deb : true
114
90
- os : macos-11
115
91
target : x86_64-apple-darwin
116
- cross : true
117
- deb : false
118
92
- os : macos-11
119
93
target : aarch64-apple-darwin
120
- cross : true
121
- deb : false
122
-
123
94
steps :
124
95
- uses : actions/checkout@v4
125
96
- uses : taiki-e/upload-rust-binary-action@v1
126
97
with :
127
98
bin : tinted-builder-rust
99
+ manifest-path : tinted-builder-rust/Cargo.toml
128
100
target : ${{ matrix.target }}
129
- tar : unix
130
- zip : windows
131
101
token : ${{ secrets.GITHUB_TOKEN }}
102
+ checksum : sha256
0 commit comments