fix: align cloud flag tests and docs with enabled default #449
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| # The plugin host's tests build the example plugins for real. | |
| targets: wasm32-unknown-unknown, aarch64-linux-android | |
| - name: Linux system deps | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| # clang and mold are required by the linker settings in .cargo/config.toml. | |
| sudo apt-get install -y libfontconfig-dev libwayland-dev libxkbcommon-x11-dev \ | |
| libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libvulkan-dev \ | |
| clang mold | |
| # Links the Photoshop plug-in helpers, which are Windows binaries | |
| # even when Schist itself is not. | |
| sudo apt-get install -y gcc-mingw-w64 | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: cargo fmt --all --check | |
| - run: cargo clippy --workspace --all-targets -- -D warnings | |
| - name: Windows native video regressions | |
| if: runner.os == 'Windows' | |
| run: 'cargo test -p schist-app video::' | |
| - run: cargo test --workspace | |
| # The plug-in helpers are the one thing `cargo test` cannot cover: | |
| # they are built for other architectures than the one under test, so | |
| # nothing else would notice them failing to compile or link. | |
| - name: Cross-build the plug-in helpers, and check they unpack | |
| if: runner.os == 'Linux' | |
| run: make check-bundle PROFILE=debug | |
| # The Android port, type-checked the way the gpui fork checks its | |
| # backend: the runner image ships an NDK, and the android-activity | |
| # glue compiles one C file with its clang. Packaging an APK and | |
| # running it is tools/android-build.sh, by hand. | |
| - name: Android cross-check | |
| if: runner.os == 'Linux' | |
| run: | | |
| toolchain="$ANDROID_NDK_LATEST_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin" | |
| export CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER="$toolchain/aarch64-linux-android30-clang" | |
| export CC_aarch64_linux_android="$toolchain/aarch64-linux-android30-clang" | |
| export AR_aarch64_linux_android="$toolchain/llvm-ar" | |
| cargo check -p schist-app --lib --target aarch64-linux-android |