Skip to content

Commit 40229d3

Browse files
authored
[v0.9] add CI target windows-2019 (#316)
* enable ci on windows-2019
1 parent be75e0a commit 40229d3

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/test.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ jobs:
3333
- rust: stable
3434
target: x86_64-pc-windows-msvc
3535
os: windows-latest
36+
- rust: stable
37+
target: x86_64-pc-windows-msvc
38+
os: windows-latest
39+
- rust: stable
40+
target: x86_64-pc-windows-msvc
41+
os: windows-2019
3642
- rust: stable
3743
target: aarch64-unknown-linux-musl
3844
os: ubuntu-20.04
@@ -48,12 +54,22 @@ jobs:
4854
steps:
4955
- uses: actions/checkout@v2
5056

51-
- name: Install dependencies
57+
- name: Install qemu-user for aarch64 target
5258
if: matrix.target == 'aarch64-unknown-linux-musl'
5359
run: |
5460
sudo apt-get update
5561
sudo apt-get install -y qemu-user
5662
63+
- name: Install clang-11 on windows-2019
64+
if: matrix.os == 'windows-2019'
65+
uses: KyleMayes/install-llvm-action@v1
66+
with:
67+
version: "11.0"
68+
69+
- name: Set LIBCLANG_PATH on windows-2019
70+
if: matrix.os == 'windows-2019'
71+
run: echo "LIBCLANG_PATH='C:\Program Files\LLVM\bin'" >> "$GITHUB_ENV"
72+
5773
- name: Cache Dependencies
5874
uses: Swatinem/rust-cache@988c164c3d0e93c4dbab36aaf5bbeb77425b2894
5975
with:
@@ -76,6 +92,7 @@ jobs:
7692
ZLIB_INSTALLED: ${{ matrix.target == 'x86_64-unknown-linux-gnu' && 'true' || '' }}
7793
AES_NI_SUPPORT: ${{ matrix.target == 'x86_64-unknown-linux-gnu' && 'true' || '' }}
7894
shell: bash
95+
7996
ci-success:
8097
name: ci
8198
if: always()
@@ -85,4 +102,4 @@ jobs:
85102
steps:
86103
- run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
87104
- name: Done
88-
run: exit 0
105+
run: exit 0

0 commit comments

Comments
 (0)