Skip to content

Commit

Permalink
edit build script
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminwan committed Apr 8, 2021
1 parent 5c9d6f3 commit 5d65261
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 8 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ jobs:
- name: 7zip
run: |
mkdir linux-bin
cp scripts/run-benchmark-cn.sh linux-bin/run-benchmark-cn.sh
cp scripts/run-test-cn.sh linux-bin/run-test-cn.sh
cp -r images linux-bin/images
mv Linux-bin-cpu/install/bin linux-bin/Linux-bin-cpu
mv Linux-bin-gpu/install/bin linux-bin/Linux-bin-gpu
7z a linux-bin.7z linux-bin
Expand Down Expand Up @@ -159,6 +162,9 @@ jobs:
- name: 7zip
run: |
mkdir macos-bin
cp scripts/run-benchmark-cn.sh macos-bin/run-benchmark-cn.sh
cp scripts/run-test-cn.sh macos-bin/run-test-cn.sh
cp -r images macos-bin/images
mv Darwin-bin-cpu/install/bin macos-bin/Darwin-bin-cpu
mv Darwin-bin-gpu/install/bin macos-bin/Darwin-bin-gpu
7z a macos-bin.7z macos-bin
Expand Down Expand Up @@ -241,14 +247,17 @@ jobs:
- name: 7zip
run: |
mkdir windows-bin
cp scripts/run-benchmark-cn.bat windows-bin/run-benchmark-cn.bat
cp scripts/run-test-cn.bat windows-bin/run-test-cn.bat
cp -r images windows-bin/images
mv win-bin-x64-cpu/install/bin windows-bin/win-bin-x64-cpu
mv win-bin-x86-cpu/install/bin windows-bin/win-bin-x86-cpu
mv win-jni-x64-cpu/install/bin windows-bin/win-jni-x64-cpu
mv win-jni-x86-cpu/install/bin windows-bin/win-jni-x86-cpu
mv win-bin-x64-gpu/install/bin windows-bin/win-bin-x64-gpu
mv win-bin-x86-gpu/install/bin windows-bin/win-bin-x86-gpu
7z a windows-bin.7z windows-bin
mkdir windows-jni
mv win-bin-x64-gpu/install/bin windows-jni/win-bin-x64-gpu
mv win-bin-x86-gpu/install/bin windows-jni/win-bin-x86-gpu
mv win-jni-x64-cpu/install/bin windows-jni/win-jni-x64-cpu
mv win-jni-x86-cpu/install/bin windows-jni/win-jni-x86-cpu
mv win-jni-x64-gpu/install/bin windows-jni/win-jni-x64-gpu
mv win-jni-x86-gpu/install/bin windows-jni/win-jni-x86-gpu
7z a windows-jni.7z windows-jni
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ jobs:
- name: 7zip
run: |
mkdir linux-bin
cp scripts/run-benchmark-cn.sh linux-bin/run-benchmark-cn.sh
cp scripts/run-test-cn.sh linux-bin/run-test-cn.sh
cp -r images linux-bin/images
mv Linux-bin-cpu/install/bin linux-bin/Linux-bin-cpu
mv Linux-bin-gpu/install/bin linux-bin/Linux-bin-gpu
7z a linux-bin.7z linux-bin
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ jobs:
- name: 7zip
run: |
mkdir macos-bin
cp scripts/run-benchmark-cn.sh macos-bin/run-benchmark-cn.sh
cp scripts/run-test-cn.sh macos-bin/run-test-cn.sh
cp -r images macos-bin/images
mv Darwin-bin-cpu/install/bin macos-bin/Darwin-bin-cpu
mv Darwin-bin-gpu/install/bin macos-bin/Darwin-bin-gpu
7z a macos-bin.7z macos-bin
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/windows-vs2017.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,17 @@ jobs:
- name: 7zip
run: |
mkdir windows-bin
cp scripts/run-benchmark-cn.bat windows-bin/run-benchmark-cn.bat
cp scripts/run-test-cn.bat windows-bin/run-test-cn.bat
cp -r images windows-bin/images
mv win-bin-x64-cpu/install/bin windows-bin/win-bin-x64-cpu
mv win-bin-x86-cpu/install/bin windows-bin/win-bin-x86-cpu
mv win-jni-x64-cpu/install/bin windows-bin/win-jni-x64-cpu
mv win-jni-x86-cpu/install/bin windows-bin/win-jni-x86-cpu
mv win-bin-x64-gpu/install/bin windows-bin/win-bin-x64-gpu
mv win-bin-x86-gpu/install/bin windows-bin/win-bin-x86-gpu
7z a windows-bin.7z windows-bin
mkdir windows-jni
mv win-bin-x64-gpu/install/bin windows-jni/win-bin-x64-gpu
mv win-bin-x86-gpu/install/bin windows-jni/win-bin-x86-gpu
mv win-jni-x64-cpu/install/bin windows-jni/win-jni-x64-cpu
mv win-jni-x86-cpu/install/bin windows-jni/win-jni-x86-cpu
mv win-jni-x64-gpu/install/bin windows-jni/win-jni-x64-gpu
mv win-jni-x86-gpu/install/bin windows-jni/win-jni-x86-gpu
7z a windows-jni.7z windows-jni
Expand Down
7 changes: 7 additions & 0 deletions scripts/install-vulkan-linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
VULKAN_SDK="$(dirname "$(readlink -f "${BASH_SOURCE:-$_}" )" )/x86_64"
sudo cp -r $VULKAN_SDK/include/vulkan/ /usr/local/include/
sudo cp -P $VULKAN_SDK/lib/libvulkan.so* /usr/local/lib/
sudo cp $VULKAN_SDK/lib/libVkLayer_*.so /usr/local/lib/
sudo mkdir -p /usr/local/share/vulkan/explicit_layer.d
sudo cp $VULKAN_SDK/etc/vulkan/explicit_layer.d/VkLayer_*.json /usr/local/share/vulkan/explicit_layer.d

0 comments on commit 5d65261

Please sign in to comment.