Add action #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |