Skip to content

Commit dc82eab

Browse files
committed
Update compile.yml
1 parent 5527b88 commit dc82eab

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

.github/workflows/compile.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,11 @@ jobs:
113113
- name: Add composer
114114
run: ./bny composer
115115

116-
- name: Configure composer mirror
117-
run: ./bny php ./composer.phar config repo.packagist composer https://mirrors.aliyun.com/composer/
118-
119116
- name: Compile webman project
120117
run: |
121118
mkdir -p test/cli
122119
cd test/cli
123-
../../bny php ../../composer.phar create-project workerman/webman:~2.0 --no-interaction
120+
../../bny php ../../composer.phar create-project workerman/webman:~2.0 --no-interaction --repository-url=https://mirrors.aliyun.com/composer/
124121
cp webman/start.php webman/index.php
125122
cd webman
126123
chmod +x ../../bny
@@ -129,7 +126,7 @@ jobs:
129126
- name: Compile pebview project
130127
run: |
131128
cd test/gui/pebview
132-
../../../bny php -d extension=ffi -d ffi.enable=true ../../../composer.phar require kingbes/pebview
129+
../../../bny php -d extension=ffi -d ffi.enable=true ../../../composer.phar require kingbes/pebview --repository-url=https://mirrors.aliyun.com/composer/
133130
../../../bny compile . -noterm true
134131
135132
- name: Prepare release package
@@ -174,14 +171,11 @@ jobs:
174171
- name: Add composer
175172
run: ./bny composer
176173

177-
- name: Configure composer mirror
178-
run: ./bny php ./composer.phar config repo.packagist composer https://mirrors.aliyun.com/composer/
179-
180174
- name: Compile webman project
181175
run: |
182176
mkdir -p test/cli
183177
cd test/cli
184-
../../bny php ../../composer.phar create-project workerman/webman:~2.0 --no-interaction
178+
../../bny php ../../composer.phar create-project workerman/webman:~2.0 --no-interaction --repository-url=https://mirrors.aliyun.com/composer/
185179
cp webman/start.php webman/index.php
186180
cd webman
187181
chmod +x ../../bny
@@ -190,7 +184,7 @@ jobs:
190184
- name: Compile pebview project
191185
run: |
192186
cd test/gui/pebview
193-
../../../bny php -d extension=ffi -d ffi.enable=true ../../../composer.phar require kingbes/pebview
187+
../../../bny php -d extension=ffi -d ffi.enable=true ../../../composer.phar require kingbes/pebview --repository-url=https://mirrors.aliyun.com/composer/
194188
../../../bny compile . -noterm true
195189
196190
- name: Prepare release package
@@ -204,4 +198,4 @@ jobs:
204198
with:
205199
name: test-linux-aarch64
206200
path: release
207-
if-no-files-found: error
201+
if-no-files-found: error

0 commit comments

Comments
 (0)