-
Notifications
You must be signed in to change notification settings - Fork 3
79 lines (68 loc) · 1.82 KB
/
test.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
name: Test install ISPC action
permissions: read-all
on:
workflow_dispatch:
inputs:
repo:
description: 'Repository to checkout (owner/repo)'
required: true
default: 'ispc/install-ispc-action'
branch:
description: 'Branch to checkout'
required: true
default: 'main'
pull_request:
jobs:
latest:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, macos-12]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
repository: ${{ inputs.repo || github.repository }}
ref: ${{ inputs.branch || github.ref }}
- name: Install ISPC
uses: ./
- name: ISPC version
run: |
ispc --version
- name: ISPC support matrix
run: |
ispc --support-matrix
specific:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, macos-12]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
repository: ${{ inputs.repo || github.repository }}
ref: ${{ inputs.branch || github.ref }}
- name: Install ISPC
uses: ./
with:
version: 1.23.0
- name: Check ISPC version
shell: pwsh
run: |
$output = & ispc --version | Out-String
if ($output -match "1.23.0") {
Write-Output "Expected version 1.23.0 found"
exit 0
} else {
Write-Output "Expected version 1.23.0, got $output"
exit 1
}
- name: ISPC version
run: |
ispc --version
- name: ISPC support matrix
run: |
ispc --support-matrix