Skip to content

Commit 60595d7

Browse files
authored
Update CI files (#1030)
Update CI files: - add another apt repository for spec test on x86-32 as some packages cannot be downloaded with the Github default repository - trigger the CI file when it is modified
1 parent 55ad4c7 commit 60595d7

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

.github/workflows/compilation_on_android_ubuntu_macos.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ on:
1111
- "ci/**"
1212
- "doc/**"
1313
- "test-tools/**"
14+
- ".github/workflows/compilation_on_android_ubuntu_macos.yml"
1415
# will be triggered on push events
1516
push:
1617
paths-ignore:
1718
- "assembly-script/**"
1819
- "ci/**"
1920
- "doc/**"
2021
- "test-tools/**"
22+
- ".github/workflows/compilation_on_android_ubuntu_macos.yml"
2123
# allow to be triggered manually
2224
workflow_dispatch:
2325

.github/workflows/compilation_on_sgx.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ on:
1111
- "ci/**"
1212
- "doc/**"
1313
- "test-tools/**"
14+
- ".github/workflows/compilation_on_sgx.yml"
1415
# will be triggered on push events
1516
push:
1617
paths-ignore:
1718
- "assembly-script/**"
1819
- "ci/**"
1920
- "doc/**"
2021
- "test-tools/**"
22+
- ".github/workflows/compilation_on_sgx.yml"
2123
# allow to be triggered manually
2224
workflow_dispatch:
2325

.github/workflows/compilation_on_windows.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ on:
1111
- "ci/**"
1212
- "doc/**"
1313
- "test-tools/**"
14+
- ".github/workflows/compilation_on_windows.yml"
1415
# will be triggered on push events
1516
push:
1617
paths-ignore:
1718
- "assembly-script/**"
1819
- "ci/**"
1920
- "doc/**"
2021
- "test-tools/**"
22+
- ".github/workflows/compilation_on_windows.yml"
2123
# allow to be triggered manually
2224
workflow_dispatch:
2325

.github/workflows/spec_test.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
- "product-mini/**"
1414
- "tests/wamr-test-suites/spec-test-script/**"
1515
- "tests/wamr-test-suites/test_wamr.sh"
16+
- ".github/workflows/spec_test.yml"
1617
# will be triggered on push events
1718
push:
1819
paths:
@@ -23,6 +24,7 @@ on:
2324
- "product-mini/**"
2425
- "tests/wamr-test-suites/spec-test-script/**"
2526
- "tests/wamr-test-suites/test_wamr.sh"
27+
- ".github/workflows/spec_test.yml"
2628
# allow to be triggered manually
2729
workflow_dispatch:
2830

@@ -140,7 +142,13 @@ jobs:
140142
run: echo "::error::can not get prebuilt llvm libraries" && exit 1
141143

142144
- name: install Ninja and x32 support libraries
143-
run: sudo apt install -y g++-multilib libgcc-9-dev lib32gcc-9-dev ninja-build
145+
run:
146+
# Add another apt repository as some packages cannot
147+
# be downloaded with the github default repository
148+
sudo curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc &&
149+
sudo apt-add-repository https://packages.microsoft.com/ubuntu/20.04/prod &&
150+
sudo apt-get update &&
151+
sudo apt install -y g++-multilib lib32gcc-9-dev ninja-build
144152

145153
- name: run spec tests
146154
run: ./test_wamr.sh ${{ env.X86_32_TARGET_TEST_OPTIONS }} ${{ matrix.test_option }}

0 commit comments

Comments
 (0)