22
22
- uses : dtolnay/rust-toolchain@master
23
23
with :
24
24
toolchain : stable
25
- override : true
26
25
- run : cargo check
27
26
28
27
fmt :
33
32
- uses : dtolnay/rust-toolchain@master
34
33
with :
35
34
toolchain : stable
36
- override : true
37
35
- run : rustup component add rustfmt
38
36
- run : cargo fmt --all -- --check
39
37
44
42
- uses : actions/checkout@v3
45
43
- uses : dtolnay/rust-toolchain@master
46
44
with :
47
- profile : minimal
48
45
toolchain : stable
49
- override : true
50
46
- run : rustup component add clippy
51
47
- run : cargo clippy -- -D warnings
52
48
75
71
${{ matrix.target }}-cargo
76
72
- uses : dtolnay/rust-toolchain@master
77
73
with :
78
- profile : minimal
79
74
toolchain : stable
80
- override : true
81
75
targets : ${{ matrix.target }}
82
76
- run : cargo test --target ${{ matrix.target }}
83
77
@@ -110,9 +104,7 @@ jobs:
110
104
${{ matrix.target }}-cargo
111
105
- uses : dtolnay/rust-toolchain@master
112
106
with :
113
- profile : minimal
114
107
toolchain : stable
115
- override : true
116
108
targets : ${{ matrix.target }}
117
109
- run : cargo install cargo-edit
118
110
- run : cargo set-version ${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
@@ -134,14 +126,16 @@ jobs:
134
126
- uses : actions/download-artifact@v2
135
127
- name : Display structure of downloaded files
136
128
run : ls -R
129
+ - name : Prepare release packages
130
+ run : |
131
+ tar -cvzf fimbl-x86_64-apple-darwin-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}.tgz fimbl-x86_64-apple-darwin-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
132
+ tar -cvzf fimbl-aarch64-apple-darwin-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}.tgz fimbl-aarch64-apple-darwin-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
133
+ tar -cvzf fimbl-x86_64-unknown-linux-gnu-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}.tgz fimbl-aarch64-apple-darwin-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
137
134
- name : Create release
138
135
uses : softprops/action-gh-release@v1
139
136
with :
140
137
tag_name : ${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
141
138
draft : true
142
139
prerelease : false
143
- files : |
144
- fimbl-x86_64-apple-darwin-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
145
- fimbl-aarch64-apple-darwin-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
146
- fimbl-x86_64-unknown-linux-gnu-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
140
+ files : fimbl-*.tgz
147
141
generate_release_notes : true
0 commit comments