update build_test.yml #229
Workflow file for this run
This file contains 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: Build test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
test_iOS: | |
name: Test iOS on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
- run: flutter pub get | |
- run: cd example | |
- run: pod update WechatOpenSDK-XCFramework | |
- run: flutter build ios --no-codesign | |
test_iOS_No_Pay: | |
name: Test iOS no_pay on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
- run: flutter pub get | |
- run: | | |
cd example | |
sed -i.bak0 's/# no_pay: true/ no_pay: true/' pubspec.yaml | |
pod update OpenWeChatSDKNoPay | |
flutter build ios --no-codesign | |
test_android: | |
name: Test android on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
- run: flutter pub get | |
- run: cd example; flutter build apk --debug |