Skip to content

Commit

Permalink
Fix CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
lhvy committed Oct 16, 2023
1 parent 9cbbb58 commit f22b4a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ jobs:
id: step
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
name: ${{ github.ref }}
draft: false

build_release:
name: Build release
Expand Down Expand Up @@ -50,6 +46,7 @@ jobs:
targets: ${{ join(matrix.targets, ',') }}

- name: Build
shell: bash
run: |
for target in ${{ join(matrix.targets, ' ') }}; do
cargo build --release --target $target
Expand All @@ -64,7 +61,7 @@ jobs:
if: matrix.os == 'windows-latest'

- name: Create macOS archive
run:
run: |
lipo -create -output ./${{ env.RELEASE_BIN }}-mac-universal ./target/x86_64-apple-darwin/release/${{ env.RELEASE_BIN }} ./target/aarch64-apple-darwin/release/${{ env.RELEASE_BIN }}
tar -czvf ./${{ env.RELEASE_BIN }}-mac-universal.tar.gz ./${{ env.RELEASE_BIN }}-mac-universal
if: matrix.os == 'macos-latest'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ jobs:
uses: Swatinem/rust-cache@v2

- name: Build
run: cargo build --all-features --locked
run: cargo build --all-targets --all-features --locked

- name: Clippy
run: cargo clippy --all-features
run: cargo clippy --all-targets --all-features

- name: Test
run: cargo test --all-features --locked
run: cargo test --all-targets --all-features --locked

fmt:
name: Formatting
Expand Down

0 comments on commit f22b4a6

Please sign in to comment.