Skip to content

Commit

Permalink
fix build flow
Browse files Browse the repository at this point in the history
  • Loading branch information
lexa-diky committed Jun 6, 2024
1 parent a420d84 commit 1c51871
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 30 deletions.
24 changes: 0 additions & 24 deletions .github/actions/prepare-environment/action.yml

This file was deleted.

14 changes: 8 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ jobs:
steps:
- uses: actions/checkout@v3
name: Checkout repository
- name: Setup Environment
uses: ./.github/actions/prepare-environment
- uses: Swatinem/rust-cache@v2
name: Cache dependencies
with:
branch-ref: ${{ github.ref }}
cache-all-crates: true
save-if: ${{ github.ref == 'refs/heads/master' }}
- name: Run tests
run: cargo test --verbose

Expand All @@ -30,10 +31,11 @@ jobs:
steps:
- uses: actions/checkout@v3
name: Checkout repository
- name: Setup Environment
uses: ./.github/actions/prepare-environment
- uses: Swatinem/rust-cache@v2
name: Cache dependencies
with:
branch-ref: ${{ github.ref }}
cache-all-crates: true
save-if: ${{ github.ref == 'refs/heads/master' }}
- name: Publish to crates.io
uses: katyo/publish-crates@v2
with:
Expand Down

0 comments on commit 1c51871

Please sign in to comment.