|
@@ -79,6 +79,30 @@ jobs:
|
|
|
swap-storage: false
|
|
|
- run: cargo make tests
|
|
|
|
|
|
+ release-test:
|
|
|
+ if: github.event.pull_request.draft == false
|
|
|
+ name: Test Suite with Optimizations
|
|
|
+ runs-on: ubuntu-latest
|
|
|
+ steps:
|
|
|
+ - uses: actions/checkout@v4
|
|
|
+ - run: sudo apt-get update
|
|
|
+ - run: sudo apt install libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev libxdo-dev
|
|
|
+ - uses: dtolnay/rust-toolchain@stable
|
|
|
+ - uses: Swatinem/rust-cache@v2
|
|
|
+ with:
|
|
|
+ cache-all-crates: "true"
|
|
|
+ save-if: ${{ github.ref == 'refs/heads/main' }}
|
|
|
+ - uses: davidB/rust-cargo-make@v1
|
|
|
+ - uses: browser-actions/setup-firefox@latest
|
|
|
+ - uses: jetli/wasm-pack-action@v0.4.0
|
|
|
+ - name: Free Disk Space (Ubuntu)
|
|
|
+ uses: jlumbroso/free-disk-space@v1.3.1
|
|
|
+ with: # speed things up a bit
|
|
|
+ large-packages: false
|
|
|
+ docker-images: false
|
|
|
+ swap-storage: false
|
|
|
+ - run: cargo test --profile release-unoptimized --lib --bins --tests --examples --workspace --exclude dioxus-desktop --exclude dioxus-mobile
|
|
|
+
|
|
|
fmt:
|
|
|
if: github.event.pull_request.draft == false
|
|
|
name: Rustfmt
|