-
Notifications
You must be signed in to change notification settings - Fork 8
50 lines (47 loc) · 1.28 KB
/
build.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
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-.*-windows-x86_64\.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}-windows-x86_64.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/*