find slang in PATH if SLANG_PATH is not set #37
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
# 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 |