Skip to content

Commit d8c008e

Browse files
fix(cli): reverting
1 parent 53347b5 commit d8c008e

File tree

1 file changed

+47
-110
lines changed

1 file changed

+47
-110
lines changed

.github/workflows/rust.yml

Lines changed: 47 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -44,30 +44,25 @@ jobs:
4444
id: run-check-format
4545
run: |
4646
cargo check --all --all-features --release --verbose
47-
4847
- name: Run Clippy 🦀
4948
id: run-check-clippy
5049
run: |
5150
cargo clippy --all-targets --all-features --release -- -D warnings
52-
5351
- name: Run Cargo Doc 🦀
5452
id: run-check-doc
5553
run: |
5654
cargo doc --color always --no-deps --all-features --release --verbose
57-
5855
- name: Run Cargo Test 🦀
5956
id: run-check-test
6057
run: |
6158
cargo test --all-targets --workspace --all-features
62-
6359
- name: Run Cargo Code Coverage 🦀
6460
id: run-check-code-coverage
6561
run: |
6662
# Install tarpaulin
6763
cargo install cargo-tarpaulin
6864
# Run tarpaulin and generate the code coverage report
6965
cargo tarpaulin --all --all-features --workspace --out Xml
70-
7166
- name: Upload to codecov.io 📊
7267
id: run-upload-codecov
7368
uses: codecov/codecov-action@v3
@@ -172,42 +167,6 @@ jobs:
172167
run: |
173168
mkdir -p target/package
174169
tar czf target/package/${{ matrix.target }}.tar.gz -C target/${{ matrix.target }}/release .
175-
176-
- name: Deploy binary 🚀
177-
id: deploy-binary
178-
uses: actions/upload-artifact@v3
179-
with:
180-
name: ${{ matrix.target }}.tar.gz
181-
path: target/package/${{ matrix.target }}.tar.gz
182-
183-
- name: Upload Release Asset 📦
184-
id: upload_release_asset
185-
uses: actions/upload-release-asset@v1
186-
env:
187-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
188-
with:
189-
upload_url: ${{ steps.create_release.outputs.upload_url }}
190-
asset_path: ${{ github.workspace }}/target/package/${{ matrix.target }}.tar.gz
191-
asset_name: ${{ matrix.target }}.tar.gz
192-
asset_content_type: application/gzip
193-
194-
create-release:
195-
name: Create Release 🚀
196-
runs-on: ubuntu-latest
197-
needs: build-targets
198-
steps:
199-
- name: Checkout repository 🛎️
200-
id: run-checkout-repository
201-
uses: actions/checkout@v3
202-
with: { submodules: true }
203-
204-
- name: Update version number 🧮
205-
id: run-update-version
206-
run: |
207-
NEW_VERSION=$(grep version Cargo.toml | sed -n 2p | cut -d '"' -f 2)
208-
echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV
209-
shell: /bin/bash -e {0}
210-
211170
- name: Create Release 🚀
212171
id: create_release
213172
uses: actions/create-release@v1
@@ -220,82 +179,60 @@ jobs:
220179
draft: true
221180
prerelease: false
222181

223-
- name: Add aarch64-unknown-linux-gnu
224-
uses: actions/upload-release-asset@v1
225-
env:
226-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
227-
with:
228-
upload_url: ${{ steps.create_release.outputs.upload_url }}
229-
asset_path: aarch64-unknown-linux-gnu.tar.gz
230-
asset_name: aarch64-unknown-linux-gnu.tar.gz
231-
asset_content_type: application/gzip
232-
233-
- name: Add aarch64-unknown-linux-musl
234-
uses: actions/upload-release-asset@v1
235-
env:
236-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
237-
with:
238-
upload_url: ${{ steps.create_release.outputs.upload_url }}
239-
asset_path: aarch64-unknown-linux-musl.tar.gz
240-
asset_name: aarch64-unknown-linux-musl.tar.gz
241-
asset_content_type: application/gzip
242-
243-
- name: Add arm-unknown-linux-gnueabi
244-
uses: actions/upload-release-asset@v1
245-
env:
246-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
247-
with:
248-
upload_url: ${{ steps.create_release.outputs.upload_url }}
249-
asset_path: arm-unknown-linux-gnueabi.tar.gz
250-
asset_name: arm-unknown-linux-gnueabi.tar.gz
251-
asset_content_type: application/gzip
252-
253-
- name: Add armv7-unknown-linux-gnueabihf
254-
uses: actions/upload-release-asset@v1
255-
env:
256-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
257-
with:
258-
upload_url: ${{ steps.create_release.outputs.upload_url }}
259-
asset_path: armv7-unknown-linux-gnueabihf.tar.gz
260-
asset_name: armv7-unknown-linux-gnueabihf.tar.gz
261-
asset_content_type: application/gzip
262-
263-
- name: Add i686-unknown-linux-gnu
264-
uses: actions/upload-release-asset@v1
265-
env:
266-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
182+
- name: Deploy binary 🚀
183+
id: deploy-binary
184+
uses: actions/upload-artifact@v3
267185
with:
268-
upload_url: ${{ steps.create_release.outputs.upload_url }}
269-
asset_path: i686-unknown-linux-gnu.tar.gz
270-
asset_name: i686-unknown-linux-gnu.tar.gz
271-
asset_content_type: application/gzip
186+
name: ${{ matrix.target }}.tar.gz
187+
path: target/package/${{ matrix.target }}.tar.gz
272188

273-
- name: Add i686-unknown-linux-musl
189+
- name: Upload Release Asset 📦
190+
id: upload_release_asset
274191
uses: actions/upload-release-asset@v1
275192
env:
276193
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
277194
with:
278195
upload_url: ${{ steps.create_release.outputs.upload_url }}
279-
asset_path: i686-unknown-linux-musl.tar.gz
280-
asset_name: i686-unknown-linux-musl.tar.gz
196+
asset_path: ${{ github.workspace }}/target/package/${{ matrix.target }}.tar.gz
197+
asset_name: ${{ matrix.target }}.tar.gz
281198
asset_content_type: application/gzip
282199

283-
- name: Add x86_64-unknown-linux-gnu
284-
uses: actions/upload-release-asset@v1
285-
env:
286-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
287-
with:
288-
upload_url: ${{ steps.create_release.outputs.upload_url }}
289-
asset_path: x86_64-unknown-linux-gnu.tar.gz
290-
asset_name: x86_64-unknown-linux-gnu.tar.gz
291-
asset_content_type: application/gzip
292200

293-
- name: Add x86_64-unknown-linux-musl
294-
uses: actions/upload-release-asset@v1
295-
env:
296-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
297-
with:
298-
upload_url: ${{ steps.create_release.outputs.upload_url }}
299-
asset_path: x86_64-unknown-linux-musl.tar.gz
300-
asset_name: x86_64-unknown-linux-musl.tar.gz
301-
asset_content_type: application/gzip
201+
# deploy-release:
202+
# runs-on: ubuntu-latest
203+
# name: Deploy Release 🚀
204+
# needs: build-targets
205+
# steps:
206+
# - name: Checkout repository 🛎️
207+
# id: run-checkout-repository
208+
# uses: actions/checkout@v3
209+
# with: { submodules: true }
210+
211+
# - name: Update version number 🧮
212+
# id: run-update-version
213+
# run: |
214+
# NEW_VERSION=$(grep version Cargo.toml | sed -n 2p | cut -d '"' -f 2)
215+
# echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV
216+
# shell: /bin/bash -e {0}
217+
218+
# - name: Create Release 🚀
219+
# id: create_release
220+
# uses: actions/create-release@v1
221+
# env:
222+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
223+
# with:
224+
# tag_name: v${{ env.VERSION }}
225+
# release_name: Hash (HSH) 🦀 v${{ env.VERSION }}
226+
# body_path: ${{ github.workspace }}/README.md
227+
# draft: true
228+
# prerelease: false
229+
230+
231+
# - name: Publish to Crates.io 🚀
232+
# id: publish-crates
233+
# if: github.ref == 'refs/heads/main'
234+
# uses: actions-rs/cargo@v1
235+
# with:
236+
# use-cross: true
237+
# command: publish
238+
# args: --token ${{ secrets.CARGO_TOKEN }} --verbose

0 commit comments

Comments
 (0)