Skip to content

Commit

Permalink
CI: Make sure lockfiles are up-to-date
Browse files Browse the repository at this point in the history
  • Loading branch information
heinrich5991 committed Feb 27, 2024
1 parent 9b98822 commit 602b90b
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ jobs:
- uses: Swatinem/rust-cache@v2
# `demo` crate doesn't work with the MSRV.
- name: Exclude `demo` crate from MSRV
run: sed -i -e 's/"demo",//' -e 's/"tools",//' Cargo.toml
run: sed -i -e 's/"demo",//' -e 's/"tools",//' Cargo.toml; cargo generate-lockfile
if: ${{ matrix.rust != 'stable' && matrix.rust != 'nightly' }}
- run: cargo build
- run: cargo test
- run: cargo bench
- run: cargo build --locked
- run: cargo test --locked
- run: cargo bench --locked
- uses: actions/upload-artifact@v2
if: ${{ matrix.rust == 'stable' }}
with:
Expand All @@ -50,6 +50,18 @@ jobs:
!target/**/incremental
name: libtw2-${{ matrix.os }}

build-uniffi:
name: Build uniffi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
with:
workspaces: uniffi
- run: cd uniffi; cargo build --locked
- run: cd uniffi; cargo test --locked
- run: cd uniffi; cargo bench --locked

check-generated:
name: Check that generated files match
runs-on: ubuntu-latest
Expand Down

0 comments on commit 602b90b

Please sign in to comment.