-
Notifications
You must be signed in to change notification settings - Fork 128
59 lines (55 loc) · 1.65 KB
/
theme.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Theme
on: [push, pull_request]
jobs:
theme-python:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
if [[ "${RUNNER_OS}" == "Windows" ]]; then
python -m pip install winrt-Windows.UI.ViewManagement winrt-Windows.UI
fi
- name: Checking our Python imports.
run: |
scripts/theme.sh
theme-cpp:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Checking our C++ theme detection.
shell: bash
run: |
mkdir -p dist
cd dist
if [[ "${RUNNER_OS}" == "macOS" ]]; then
clang++ ../scripts/test_theme.cpp -o test_theme -std=c++17
./test_theme
else
g++ ../scripts/test_theme.cpp -o test_theme -std=c++17
./test_theme
fi
theme-cpp-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
- name: Checking our C++ theme detection.
run: |
mkdir dist -ErrorAction SilentlyContinue
cd dist
cl ..\scripts\test_theme.cpp /std:c++17 /EHsc /link Advapi32.lib OleAut32.lib
.\test_theme.exe