forked from snowcone-ltd/libmatoya
-
Notifications
You must be signed in to change notification settings - Fork 4
87 lines (87 loc) · 2.11 KB
/
tests.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Tests
on:
pull_request:
types: [ labeled, synchronize ]
jobs:
label:
name: Find 'Test Matoya' Label
runs-on: ubuntu-latest
outputs:
label_exists: ${{contains(toJson(github.event.label.name), 'Test Matoya') || ( (github.event.action == 'synchronize') && contains(toJson(github.event.pull_request.labels.*.name), 'Test Matoya') )}}
permissions:
id-token: write
contents: read
steps:
- name: Nothing
shell: bash
run: echo ""
macos:
name: macOS
runs-on: macos-latest
needs: label
if: ${{needs.label.outputs.label_exists == 'true'}}
permissions:
id-token: write
contents: read
env:
TERM: xterm-256color
steps:
- name: Checkout Branch
uses: actions/checkout@v4
with:
path: libmatoya
- name: Test
run: |
cd libmatoya
make ARCH=arm64
cd test
make ARCH=arm64
linux:
name: Linux
runs-on: ubuntu-latest
needs: label
if: ${{needs.label.outputs.label_exists == 'true'}}
permissions:
id-token: write
contents: read
env:
TERM: xterm-256color
steps:
- name: Checkout Branch
uses: actions/checkout@v4
with:
path: libmatoya
- name: Test
run: |
cd libmatoya
make
cd test
make
windows:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
needs: label
if: ${{needs.label.outputs.label_exists == 'true'}}
permissions:
id-token: write
contents: read
strategy:
fail-fast: false
matrix:
config:
- { name: "Windows x64", os: windows-2022, bits: 64 }
env:
VCVARS_PATH: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build
steps:
- name: Checkout Branch
uses: actions/checkout@v4
with:
path: libmatoya
- name: Test
shell: cmd
run: |
call "%VCVARS_PATH%/vcvars${{ matrix.config.bits }}.bat"
cd libmatoya
nmake
cd test
nmake