3535
3636 - name : Clean, dependencies and generate for Example
3737 env :
38- ENV_POLYGON_MUMBAI : ${{ secrets.ENV_POLYGON_MUMBAI }}
39- ENV_POLYGON_MAINNET : ${{ secrets.ENV_POLYGON_MUMBAI }}
4038 DEFAULT_ENV : ${{ secrets.DEFAULT_ENV }}
4139 STACKTRACE_ENCRYPTION_KEY : ${{ secrets.STACKTRACE_ENCRYPTION }}
4240 PINATA_GATEWAY : ${{ secrets.PINATA_GATEWAY }}
@@ -57,114 +55,6 @@ jobs:
5755 with :
5856 token : ${{ secrets.CODECOV_TOKEN }}
5957
60- # job responsible for running Flutter tests on iOS devices
61- ios :
62- # needs: common
63- # Creates a build matrix for your jobs. You can define different variations of an environment to run each job
64- strategy :
65- matrix :
66- device :
67- # The available simulators are listed by the "xcrun xctrace list devices" command
68- - " iPhone 13 Pro Max Simulator (16.2)" # the name of the simulator could be different depending on the macos version you are using
69- # if one of the jobs in the matrix expansion fails, the rest of the jobs will be cancelled
70- fail-fast : true
71- runs-on : macos-latest # or macos-latest if you prefer, but be aware that the available simulators could be different if you run a different version
72- steps :
73- - name : checkout
74- uses : actions/checkout@v3
75-
76- - name : Setup Flutter SDK
77- uses : subosito/flutter-action@v2
78- with :
79- flutter-version : ' 3.19.3'
80- channel : ' stable'
81- cache : true
82- # instead of "channel: stable", you could be more precise by specifying the exact version of Flutter you're using:
83- # flutter-version: '<FLUTTER_VERSION>'
84-
85- - name : Verify Flutter version
86- run : flutter --version
87-
88- - name : Clean, dependencies and generate for SDK
89- run : flutter clean&&flutter pub get&&dart run build_runner build --delete-conflicting-outputs
90-
91- - name : Clean, dependencies and generate for Example
92- env :
93- ENV_POLYGON_MUMBAI : ${{ secrets.ENV_POLYGON_MUMBAI }}
94- ENV_POLYGON_MAINNET : ${{ secrets.ENV_POLYGON_MUMBAI }}
95- run : cd example&&flutter clean&&flutter pub get&&dart run build_runner build --delete-conflicting-outputs
96-
97- - name : " List all simulators"
98- run : " xcrun xctrace list devices"
99- - name : " Start Simulator"
100- # the command "xcrun simctl boot" expects a device identifier
101- # the assignment of the UDID variable consists of retrieving the ID of the simulator
102- # by extracting it from the command "xcrun xctrace list devices"
103- run : |
104- UDID=$(xcrun xctrace list devices | grep "^${{ matrix.device }}" | awk '{gsub(/[()]/,""); print $NF}')
105- echo $UDID
106- xcrun simctl boot "${UDID:?No Simulator with this name found}"
107-
108- # - name: Run integration tests
109- # run: cd example&&flutter test integration_test/libpolygonid_test.dart --verbose
110-
111- # job responsible for running Flutter tests on Android devices
112- # android:
113- # needs: common
114- # runs-on: macos-latest
115- # strategy:
116- # matrix:
117- # api-level: [ 32 ] #[ 21, 23, 29, 32 ]
118- # target: [ google_apis ] #[ default, google_apis ]
119- # if one of the jobs in the matrix expansion fails, the rest of the jobs will be cancelled
120- # fail-fast: true
121- # steps:
122- # - name: Setup Java
123- # uses: actions/setup-java@v3
124- # with:
125- # distribution: 'zulu'
126- # java-version: "12.x"
127- # cache: 'gradle'
128-
129- # - name: Gradle cache
130- # uses: gradle/gradle-build-action@v2
131-
132- # - name: AVD cache
133- # uses: actions/cache@v3
134- # id: avd-cache
135- # with:
136- # path: |
137- # ~/.android/avd/*
138- # ~/.android/adb*
139- # key: avd-${{ matrix.api-level }}
140-
141- # - name: create AVD and generate snapshot for caching
142- # if: (github.base_ref == 'develop' || github.base_ref == 'main') && steps.avd-cache.outputs.cache-hit != 'true'
143- # uses: reactivecircus/android-emulator-runner@v2
144- # with:
145- # api-level: ${{ matrix.api-level }}
146- # target: ${{ matrix.target }}
147- # force-avd-creation: false
148- # emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
149- # disable-animations: false
150- # arch: x86_64
151- # profile: Nexus 6
152- # script: echo "Generated AVD snapshot for caching."
153-
154- # - name: Run integration tests
155- # if: github.base_ref == 'develop' || github.base_ref == 'main'
156- # more info on https://github.com/ReactiveCircus/android-emulator-runner
157- # uses: reactivecircus/android-emulator-runner@v2
158- # with:
159- # api-level: ${{ matrix.api-level }}
160- # target: ${{ matrix.target }}
161- # force-avd-creation: false
162- # emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
163- # disable-animations: true
164- # arch: x86_64
165- # profile: Nexus 6
166- # script: cd example&&flutter test integration_test/libpolygonid_test.dart --verbose
167-
16858 # job responsible for publishing the package to pub.dev
16959 # enable it once published for the first time on pub.dev otherwise it will fail
17060 # publish:
0 commit comments