3636 name : Test
3737 strategy :
3838 matrix :
39- os : [ubuntu-latest, windows-latest, macOS-latest]
39+ os : [ubuntu-latest, macOS-latest]
4040 runs-on : ${{ matrix.os }}
4141 steps :
4242 - uses : actions/checkout@v1
6868 - name : download cargo-deny
6969 shell : bash
7070 env :
71- DVS : 0.3.0-beta
71+ DVS : " 0.4.0 "
7272 DREPO : EmbarkStudios/cargo-deny
7373 TARGET : x86_64-unknown-linux-musl
7474 run : |
8181 - name : cargo-deny check bans
8282 run : ./cargo-deny -L debug check ban
8383
84- # Remove this check if you don't publish the crate(s) from this repo
8584 publish-check :
8685 name : Publish Check
8786 runs-on : ubuntu-latest
@@ -95,27 +94,15 @@ jobs:
9594 uses : actions-rs/cargo@v1
9695 with :
9796 command : fetch
98- - name : copy README
99- shell : bash
100- run : |
101- cp README.md lib
102- cp README.md cli
103- - name : cargo publish lib
104- uses : actions-rs/cargo@v1
105- with :
106- command : publish
107- args : --dry-run --allow-dirty --manifest-path lib/Cargo.toml
108- - name : cargo publish cli
97+ - name : cargo publish
10998 uses : actions-rs/cargo@v1
11099 with :
111100 command : publish
112- args : --dry-run --allow-dirty --manifest-path cli/Cargo.toml
101+ args : --dry-run
113102
114- # Remove this job if you don't publish the crate(s) from this repo
115- # You must add a crates.io API token to your GH secrets called CRATES_IO_TOKEN
116103 publish :
117104 name : Publish
118- needs : [test, deny-check, publish-check]
105+ needs : [test, publish-check]
119106 runs-on : ubuntu-latest
120107 if : startsWith(github.ref, 'refs/tags/')
121108 steps :
@@ -135,11 +122,9 @@ jobs:
135122 with :
136123 command : publish
137124
138- # Remove this job if you don't release binaries
139- # Replace occurances of $BIN_NAME with the name of your binary
140125 release :
141126 name : Release
142- needs : [test, deny-check ]
127+ needs : [test]
143128 if : startsWith(github.ref, 'refs/tags/')
144129 strategy :
145130 matrix :
@@ -148,20 +133,15 @@ jobs:
148133 - os : ubuntu-latest
149134 rust : stable
150135 target : x86_64-unknown-linux-musl
151- bin : about-me
152- # We don't enable the progress feature when targeting
153- # musl since there are some dependencies on shared libs
154- features : " "
136+ bin : cargo-about
155137 - os : windows-latest
156138 rust : stable
157139 target : x86_64-pc-windows-msvc
158- bin : about-me.exe
159- features : --features=progress
140+ bin : cargo-about.exe
160141 - os : macOS-latest
161142 rust : stable
162143 target : x86_64-apple-darwin
163- bin : about-me
164- features : --features=progress
144+ bin : cargo-about
165145 runs-on : ${{ matrix.os }}
166146 steps :
167147 - name : Install stable toolchain
@@ -183,14 +163,13 @@ jobs:
183163 args : --target ${{ matrix.target }}
184164 - name : Release build
185165 uses : actions-rs/cargo@v1
186- if : matrix.os != 'ubuntu-latest'
187166 with :
188167 command : build
189- args : --release --target ${{ matrix.target }} ${{ matrix.features }}
168+ args : --release --target ${{ matrix.target }}
190169 - name : Package
191170 shell : bash
192171 run : |
193- name=about-me
172+ name=cargo-about
194173 tag=$(git describe --tags --abbrev=0)
195174 release_name="$name-$tag-${{ matrix.target }}"
196175 release_tar="${release_name}.tar.gz"
@@ -217,6 +196,6 @@ jobs:
217196 uses : softprops/action-gh-release@v1
218197 with :
219198 draft : true
220- files : ' about-me *'
199+ files : ' cargo-about *'
221200 env :
222201 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments