Skip to content

Commit

Permalink
fix fuzz, build and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edouardparis committed Nov 13, 2024
1 parent bc774e9 commit 8ca6593
Show file tree
Hide file tree
Showing 10 changed files with 5,978 additions and 421 deletions.
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ task:
fingerprint_script:
- rustc --version
- cat tests/tools/taproot_signer/Cargo.lock
lianad_build_script: cargo build --release && cd tests/tools/taproot_signer && cargo build --release
lianad_build_script: cd liana && cargo build --release && cd ../tests/tools/taproot_signer && cargo build --release

deps_script: apt update && apt install -y python3 python3-pip

Expand Down
52 changes: 4 additions & 48 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,57 +14,14 @@ jobs:
override: true
- name: rustfmt
run: cargo fmt -- --check
- name: clippy
run: cargo clippy --all-features --all-targets -- -D warnings

unit_tests:
needs: linter
strategy:
matrix:
toolchain:
- 1.63
- nightly
os:
- ubuntu-latest
- macOS-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Install Rust ${{ matrix.toolchain }} toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
profile: minimal
- name: Test on Rust ${{ matrix.toolchain }} (only Windows)
if: matrix.os == 'windows-latest'
run: cargo test --verbose --no-default-features
- name: Test on Rust ${{ matrix.toolchain }} (non Windows)
if: matrix.os != 'windows-latest'
run: cargo test --verbose --color always -- --nocapture

linter_gui:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.78.0
components: rustfmt, clippy
override: true
- name: rustfmt
run: cd gui && cargo fmt -- --check
- name: clippy
run: |
sudo apt-get update &&
sudo apt-get install --allow-downgrades libudev-dev pkg-config libvulkan-dev &&
cd gui &&
cargo clippy --all-features --all-targets -- -D warnings
unit_tests_gui:
needs: linter_gui
unit_tests:
needs: linter
strategy:
matrix:
toolchain:
Expand All @@ -86,14 +43,13 @@ jobs:
profile: minimal
- name: Test on Rust ${{ matrix.toolchain }} (only Windows)
if: matrix.os == 'windows-latest'
run: cd gui && cargo test --verbose --no-default-features
run: cargo test --verbose --no-default-features
- name: Test on Rust ${{ matrix.toolchain }} (non Windows)
if: matrix.os == 'macOS-latest'
run: cd gui && cargo test --verbose --color always -- --nocapture
run: cargo test --verbose --color always -- --nocapture
- name: Test on Rust ${{ matrix.toolchain }} (non Windows)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update &&
sudo apt-get install libudev-dev libfontconfig1-dev &&
cd gui &&
cargo test --verbose --color always -- --nocapture
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ pytest.log
TODO
**/target
**/dist
gui/ui/Cargo.lock
gui/ui/examples/design-system/Cargo.lock
Xcode_12.2.xip
.idea/
fuzz/corpus
Loading

0 comments on commit 8ca6593

Please sign in to comment.