chore: remove unnecessary log tag #182
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: Flutter | |
| on: | |
| pull_request: | |
| paths: | |
| - "apps/nesium_flutter/**" | |
| - ".github/workflows/flutter.yml" | |
| push: | |
| branches: ["**"] | |
| paths: | |
| - "apps/nesium_flutter/**" | |
| - ".github/workflows/flutter.yml" | |
| concurrency: | |
| group: "${{ github.workflow }}-${{ github.ref }}" | |
| cancel-in-progress: true | |
| jobs: | |
| checks: | |
| name: Flutter checks | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: apps/nesium_flutter | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| - name: Install wasm-pack | |
| uses: jetli/wasm-pack-action@v0.4.0 | |
| - name: Cache cargo artifacts | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Setup Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| cache: true | |
| - name: Pub get | |
| run: flutter pub get | |
| - name: Generate shaders.zip | |
| run: dart tool/package_shaders.dart | |
| - name: Format (check) | |
| run: dart format --output=none --set-exit-if-changed lib test | |
| - name: Analyze | |
| run: flutter analyze | |
| - name: Build wasm (web runtime) | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| cd "${GITHUB_WORKSPACE}" | |
| OUT_DIR="${GITHUB_WORKSPACE}/apps/nesium_flutter/web/nes/pkg" | |
| mkdir -p "${OUT_DIR}" | |
| pushd crates/nesium-wasm >/dev/null | |
| wasm-pack build --release --target web --out-dir "${OUT_DIR}" | |
| popd >/dev/null | |
| - name: Install fonttools (Python) | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| pip install fonttools | |
| - name: Subset fonts | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| python3 tool/subset_fonts.py | |
| - name: Build web (release) | |
| run: flutter build web --release --wasm |