Adjust caching logic to prevent re-using build directories that have already been loaded into the current python session #11
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: Build SlangTorch | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
fetch-depth: '0' | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7.16 | |
- name: Download artifact - win64 | |
id: download-win64 | |
uses: dsaltares/fetch-gh-release-asset@master | |
with: | |
repo: shader-slang/slang | |
file: 'slang-.*-win64\.zip' | |
target: "./" | |
regex: true | |
- name: Download artifact - linux64 | |
id: download-linux64 | |
uses: dsaltares/fetch-gh-release-asset@master | |
with: | |
repo: shader-slang/slang | |
file: 'slang-.*-linux-x86_64\.zip' | |
target: "./" | |
regex: true | |
- name: Copy Slang binaries and Build Package | |
run: | | |
export TAGNAME=${{ steps.download-win64.outputs.version}} | |
export WIN64ZIP=slang-${TAGNAME:1}-win64.zip | |
export LINUX64ZIP=slang-${TAGNAME:1}-linux-x86_64.zip | |
source build-package.sh | |
for file in ./dist/* | |
do | |
echo "Built Package: $file" | |
done | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: slangtorch | |
path: | | |
./dist/* |