79
79
- name : cargo test
80
80
run : cargo test --all --locked -- -Z unstable-options
81
81
82
+ pkg-deb :
83
+ name : binaray package .deb
84
+ needs : check
85
+ runs-on : ubuntu-latest
86
+ steps :
87
+ - uses : actions/checkout@v2
88
+ - name : build .deb file
89
+ uses : sassman/rust-deb-builder@v1.57.0
90
+ - name : Archive deb artifact
91
+ uses : actions/upload-artifact@v2
92
+ with :
93
+ name : t-rec-amd64-static.deb
94
+ path : target/x86_64-unknown-linux-musl/debian/t-rec*.deb
95
+
82
96
audit :
83
97
name : security audit
84
98
needs : check
@@ -128,7 +142,6 @@ jobs:
128
142
default : true
129
143
profile : minimal
130
144
- uses : Swatinem/rust-cache@v1
131
- - run : cargo install cargo-deb
132
145
- name : Get version from tag
133
146
id : tag_name
134
147
run : echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v}
@@ -140,7 +153,6 @@ jobs:
140
153
validation_depth : 10
141
154
version : ${{ steps.tag_name.outputs.current_version }}
142
155
path : ./CHANGELOG.md
143
- - run : cargo deb
144
156
- name : Create Release
145
157
# https://github.com/marketplace/actions/changelog-reader
146
158
id : create_release
@@ -163,7 +175,7 @@ jobs:
163
175
with :
164
176
# https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
165
177
upload_url : ${{ steps.create_release.outputs.upload_url }}
166
- asset_path : ./ target/debian/t-rec_${{ steps.tag_name.outputs.current_version }}_amd64 .deb
178
+ asset_path : target/x86_64-unknown-linux-musl/ debian/t-rec* .deb
167
179
asset_name : t-rec_${{ steps.tag_name.outputs.current_version }}_amd64.deb
168
180
asset_content_type : application/vnd.debian.binary-package
169
181
0 commit comments