Skip to content

Commit

Permalink
attempt fix ci
Browse files Browse the repository at this point in the history
Change-Id: I6c05c497f0ffa0b4e0d84ad3b52bee19fc7c9d2d
  • Loading branch information
SolDev69 committed Dec 23, 2023
1 parent a74b3c6 commit 6a16caf
Showing 1 changed file with 29 additions and 10 deletions.
39 changes: 29 additions & 10 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,33 @@ jobs:
- name: Build SwiftShader
shell: bash
run: |
git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=`pwd`/depot_tools:$PATH
echo $PATH
cd swiftshader
git submodule update --init
cd build
cmake ..
export PATH=$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH
export CC=clang
export CXX=clang++
cmake --build . --parallel
git -C SwiftShader submodule init
git -C SwiftShader config submodule."third_party/cppdap".url "$srcdir/cppdap"
git -C SwiftShader config submodule."third_party/googletest".url "$srcdir/googletest"
git -C SwiftShader config submodule."third_party/json".url "$srcdir/json"
git -C SwiftShader config submodule."third_party/libbacktrace/src".url "$srcdir/libbacktrace"
git -C SwiftShader config submodule."third_party/PowerVR_Examples".url "$srcdir/Native_SDK"
git -C SwiftShader config submodule."third_party/benchmark".url "$srcdir/benchmark"
git -C SwiftShader config submodule."third_party/glslang".url "$srcdir/glslang"
# this repo is not publicly accessible so we won't fetch it
git -C SwiftShader config submodule."third_party/git-hooks".update none
git -C SwiftShader config submodule."third_party/llvm-project".update none
git -C SwiftShader -c protocol.file.allow=always submodule update
cmake \
-G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-D SWIFTSHADER_WARNINGS_AS_ERRORS=off \
-S SwiftShader -B build
ninja -C build
mkdir /tmp/swiftshader
mv build/libvk_swiftshader.so /tmp/swiftshader
- name: Upload libraries
uses: actions/upload-artifact@v2
with:
name: swiftshader_${{matrix.arch}}
path: /tmp/swiftshader

0 comments on commit 6a16caf

Please # to comment.