37
37
path : |
38
38
~/.android/avd/*
39
39
~/.android/adb*
40
- key : avd-33-x64
40
+ key : avd-33-arm64
41
41
- name : Download Flutter
42
42
uses : subosito/flutter-action@v2
43
43
with :
@@ -64,121 +64,121 @@ jobs:
64
64
with :
65
65
api-level : 33
66
66
target : google_apis
67
- arch : x86_64
67
+ arch : arm-v8a
68
68
working-directory : dargon2_flutter/dargon2_flutter/example
69
69
script : flutter test integration_test/
70
70
71
- test_ios :
72
- runs-on : macos-14
73
- steps :
74
- - name : Checkout
75
- uses : actions/checkout@v4
76
- with :
77
- submodules : recursive
78
- - name : Download Flutter
79
- uses : subosito/flutter-action@v2
80
- with :
81
- channel : ' stable'
82
- cache : true
83
- - name : Upgrade flutter
84
- run : flutter upgrade
85
- - name : List Simulators
86
- run : xcrun simctl list devices
87
- - name : Start Simulator
88
- run : |
89
- UDID=$(
90
- xcrun simctl list devices | grep "iPhone 15 (" | awk -F"[()]" '{print $2}' | awk 'NR==1{print $1}'
91
- )
92
- xcrun simctl boot "${UDID:?No Simulator with this name found}"
93
- - name : Use Test Pubspec Files
94
- run : |
95
- rm ../pubspec.yaml
96
- rm ../../dargon2_flutter_web/pubspec.yaml
97
- rm ../../dargon2_flutter_mobile/pubspec.yaml
98
- rm ../../dargon2_flutter_desktop/pubspec.yaml
99
- rm ../../dargon2_flutter_platform_interface/pubspec.yaml
100
- rm ../../../dargon2_core/pubspec.yaml
101
- mv ../pubspec.test.yaml ../pubspec.yaml
102
- mv ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
103
- mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
104
- mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
105
- mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
106
- mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
107
- - name : Run Integration Tests
108
- run : flutter test integration_test/
71
+ # test_ios:
72
+ # runs-on: macos-14
73
+ # steps:
74
+ # - name: Checkout
75
+ # uses: actions/checkout@v4
76
+ # with:
77
+ # submodules: recursive
78
+ # - name: Download Flutter
79
+ # uses: subosito/flutter-action@v2
80
+ # with:
81
+ # channel: 'stable'
82
+ # cache: true
83
+ # - name: Upgrade flutter
84
+ # run: flutter upgrade
85
+ # - name: List Simulators
86
+ # run: xcrun simctl list devices
87
+ # - name: Start Simulator
88
+ # run: |
89
+ # UDID=$(
90
+ # xcrun simctl list devices | grep "iPhone 15 (" | awk -F"[()]" '{print $2}' | awk 'NR==1{print $1}'
91
+ # )
92
+ # xcrun simctl boot "${UDID:?No Simulator with this name found}"
93
+ # - name: Use Test Pubspec Files
94
+ # run: |
95
+ # rm ../pubspec.yaml
96
+ # rm ../../dargon2_flutter_web/pubspec.yaml
97
+ # rm ../../dargon2_flutter_mobile/pubspec.yaml
98
+ # rm ../../dargon2_flutter_desktop/pubspec.yaml
99
+ # rm ../../dargon2_flutter_platform_interface/pubspec.yaml
100
+ # rm ../../../dargon2_core/pubspec.yaml
101
+ # mv ../pubspec.test.yaml ../pubspec.yaml
102
+ # mv ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
103
+ # mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
104
+ # mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
105
+ # mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
106
+ # mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
107
+ # - name: Run Integration Tests
108
+ # run: flutter test integration_test/
109
109
110
- test_web :
111
- runs-on : ubuntu-20.04
112
- steps :
113
- - uses : actions/checkout@v4
114
- - uses : subosito/flutter-action@v2
115
- - name : Use Test Pubspec Files
116
- run : |
117
- rm ../pubspec.yaml
118
- rm ../../dargon2_flutter_web/pubspec.yaml
119
- rm ../../dargon2_flutter_mobile/pubspec.yaml
120
- rm ../../dargon2_flutter_desktop/pubspec.yaml
121
- rm ../../dargon2_flutter_platform_interface/pubspec.yaml
122
- rm ../../../dargon2_core/pubspec.yaml
123
- mv ../pubspec.test.yaml ../pubspec.yaml
124
- mv ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
125
- mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
126
- mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
127
- mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
128
- mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
129
- - run : flutter pub get
130
- - run : chromedriver --port=4444 &
131
- - run : flutter drive --driver=test_driver/integration_test.dart --target=integration_test/argon2_ffi_test.dart -d web-server
110
+ # test_web:
111
+ # runs-on: ubuntu-20.04
112
+ # steps:
113
+ # - uses: actions/checkout@v4
114
+ # - uses: subosito/flutter-action@v2
115
+ # - name: Use Test Pubspec Files
116
+ # run: |
117
+ # rm ../pubspec.yaml
118
+ # rm ../../dargon2_flutter_web/pubspec.yaml
119
+ # rm ../../dargon2_flutter_mobile/pubspec.yaml
120
+ # rm ../../dargon2_flutter_desktop/pubspec.yaml
121
+ # rm ../../dargon2_flutter_platform_interface/pubspec.yaml
122
+ # rm ../../../dargon2_core/pubspec.yaml
123
+ # mv ../pubspec.test.yaml ../pubspec.yaml
124
+ # mv ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
125
+ # mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
126
+ # mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
127
+ # mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
128
+ # mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
129
+ # - run: flutter pub get
130
+ # - run: chromedriver --port=4444 &
131
+ # - run: flutter drive --driver=test_driver/integration_test.dart --target=integration_test/argon2_ffi_test.dart -d web-server
132
132
133
- test_desktop :
134
- runs-on : ${{ matrix.os }}
135
- strategy :
136
- fail-fast : false
137
- matrix :
138
- os : [ windows-latest ]
139
- include :
140
- # - os: macos-latest
141
- # FLUTTER_DEVICE: macos
142
- # FLUTTER_CHANNEL: stable
143
- # - os: ubuntu-latest
144
- # FLUTTER_DEVICE: linux
145
- # FLUTTER_CHANNEL: beta
146
- - os : windows-latest
147
- FLUTTER_DEVICE : windows
148
- FLUTTER_CHANNEL : stable
149
- steps :
150
- - name : Checkout
151
- uses : actions/checkout@v4
152
- with :
153
- submodules : recursive
154
- - name : Download Flutter
155
- uses : subosito/flutter-action@v2
156
- with :
157
- channel : ${{ matrix.FLUTTER_CHANNEL }}
158
- cache : true
159
- cache-key : ${{ matrix.FLUTTER_CHANNEL }}
160
- - name : Enable Flutter Desktop
161
- run : |
162
- flutter config --enable-linux-desktop
163
- flutter config --enable-macos-desktop
164
- flutter config --enable-windows-desktop
165
- - if : matrix.os == 'ubuntu-latest'
166
- name : Install Ninja (Ubuntu Only)
167
- run : sudo apt install -y ninja-build libgtk-3-dev clang
168
- - name : Use Test Pubspec Files
169
- run : |
170
- rm ../pubspec.yaml
171
- rm ../../dargon2_flutter_web/pubspec.yaml
172
- rm ../../dargon2_flutter_mobile/pubspec.yaml
173
- rm ../../dargon2_flutter_desktop/pubspec.yaml
174
- rm ../../dargon2_flutter_platform_interface/pubspec.yaml
175
- rm ../../../dargon2_core/pubspec.yaml
176
- mv ../pubspec.test.yaml ../pubspec.yaml
177
- mv ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
178
- mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
179
- mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
180
- mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
181
- mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
182
- - name : Run Integration Tests
183
- run : flutter test -d ${{ matrix.FLUTTER_DEVICE }} integration_test/
133
+ # test_desktop:
134
+ # runs-on: ${{ matrix.os }}
135
+ # strategy:
136
+ # fail-fast: false
137
+ # matrix:
138
+ # os: [ windows-latest ]
139
+ # include:
140
+ # # - os: macos-latest
141
+ # # FLUTTER_DEVICE: macos
142
+ # # FLUTTER_CHANNEL: stable
143
+ # # - os: ubuntu-latest
144
+ # # FLUTTER_DEVICE: linux
145
+ # # FLUTTER_CHANNEL: beta
146
+ # - os: windows-latest
147
+ # FLUTTER_DEVICE: windows
148
+ # FLUTTER_CHANNEL: stable
149
+ # steps:
150
+ # - name: Checkout
151
+ # uses: actions/checkout@v4
152
+ # with:
153
+ # submodules: recursive
154
+ # - name: Download Flutter
155
+ # uses: subosito/flutter-action@v2
156
+ # with:
157
+ # channel: ${{ matrix.FLUTTER_CHANNEL }}
158
+ # cache: true
159
+ # cache-key: ${{ matrix.FLUTTER_CHANNEL }}
160
+ # - name: Enable Flutter Desktop
161
+ # run: |
162
+ # flutter config --enable-linux-desktop
163
+ # flutter config --enable-macos-desktop
164
+ # flutter config --enable-windows-desktop
165
+ # - if: matrix.os == 'ubuntu-latest'
166
+ # name: Install Ninja (Ubuntu Only)
167
+ # run: sudo apt install -y ninja-build libgtk-3-dev clang
168
+ # - name: Use Test Pubspec Files
169
+ # run: |
170
+ # rm ../pubspec.yaml
171
+ # rm ../../dargon2_flutter_web/pubspec.yaml
172
+ # rm ../../dargon2_flutter_mobile/pubspec.yaml
173
+ # rm ../../dargon2_flutter_desktop/pubspec.yaml
174
+ # rm ../../dargon2_flutter_platform_interface/pubspec.yaml
175
+ # rm ../../../dargon2_core/pubspec.yaml
176
+ # mv ../pubspec.test.yaml ../pubspec.yaml
177
+ # mv ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
178
+ # mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
179
+ # mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
180
+ # mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
181
+ # mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
182
+ # - name: Run Integration Tests
183
+ # run: flutter test -d ${{ matrix.FLUTTER_DEVICE }} integration_test/
184
184
0 commit comments