-
Notifications
You must be signed in to change notification settings - Fork 129
41 lines (35 loc) · 1.03 KB
/
worker_msys2.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: CI worker msys2
on: [push, pull_request, workflow_dispatch]
jobs:
test:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- { sys: mingw64, env: x86_64, comp: gcc }
- { sys: ucrt64, env: ucrt-x86_64, comp: gcc }
- { sys: clang64, env: clang-x86_64, comp: clang }
defaults:
run:
shell: msys2 {0}
working-directory: worker
steps:
- name: Setup msys and install required packages
uses: msys2/setup-msys2@v2
with:
update: true
msystem: ${{ matrix.sys }}
install: >-
make
mingw-w64-${{ matrix.env }}-python3
mingw-w64-${{ matrix.env }}-${{ matrix.comp }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Add packages folder to PYTHONPATH
run: |
echo "PYTHONPATH=$(pwd)/packages" >> $GITHUB_ENV
- name: Run worker tests
run: |
python -m unittest discover -vb -s tests