[BugFix] Update openssl in cargo.toml and Remove dll and dylibs From Repo
#120
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test macOS ARM64 | |
| on: | |
| pull_request: | |
| branches: | |
| - develop | |
| paths: | |
| - 'desktop/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| jobs: | |
| test-macos-arm64: | |
| runs-on: macos-latest | |
| permissions: | |
| contents: read | |
| defaults: | |
| run: | |
| working-directory: desktop | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install OpenSSL 3 | |
| run: brew install openssl@3 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: lts/* | |
| - name: Set up Rust | |
| uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1 | |
| with: | |
| toolchain: stable | |
| profile: minimal | |
| components: clippy, rustfmt | |
| override: true | |
| - name: Add Rust target (macOS ARM only) | |
| run: rustup target add aarch64-apple-darwin | |
| - name: Cache cargo registry | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| key: macos-arm64-cargo-registry-${{ hashFiles('desktop/**/Cargo.lock') }} | |
| restore-keys: | | |
| macos-arm64-cargo-registry- | |
| - name: Cache cargo build | |
| uses: actions/cache@v5 | |
| with: | |
| path: desktop/target | |
| key: macos-arm64-cargo-build-${{ hashFiles('desktop/**/Cargo.lock') }} | |
| restore-keys: | | |
| macos-arm64-cargo-build- | |
| - name: Check formatting | |
| run: cargo fmt --all -- --check | |
| - name: Run clippy linter | |
| run: cargo clippy --all-targets --all-features -- -D warnings | |
| - name: Run tests | |
| run: cargo test --all | |
| - name: Cache node_modules | |
| uses: actions/cache@v5 | |
| with: | |
| path: desktop/node_modules | |
| key: macos-arm64-node-modules-${{ hashFiles('desktop/**/package-lock.json') }} | |
| restore-keys: | | |
| macos-arm64-node-modules- | |
| - name: Install frontend dependencies | |
| run: npm ci | |
| - name: Lint frontend code | |
| run: npm run lint | |
| - name: Type check | |
| run: ./node_modules/.bin/tsc --noEmit | |
| - name: Run frontend tests | |
| run: npm run test -- --watch=false |