Skip to content

find slang in PATH if SLANG_PATH is not set #37

find slang in PATH if SLANG_PATH is not set

find slang in PATH if SLANG_PATH is not set #37

Workflow file for this run

# SPDX-License-Identifier: Apache-2.0
name: Rust CI
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Download Slang
run: |
curl -L -o slang "https://github.com/xlsynth/slang-rs/releases/download/ci/slang"
chmod +x slang
- name: Run tests
run: export SLANG_PATH=`realpath slang` && cargo test