Skip to content

Commit 43009dc

Browse files
author
pradeep
committed
Remove submodule commands from github action workflows
These are not needed since the move to getting dependencies using fetch content module of cmake. Refactored release source tar ball action to relfect the same as well
1 parent 92392db commit 43009dc

File tree

3 files changed

+37
-11
lines changed

3 files changed

+37
-11
lines changed

.github/workflows/cpu_build.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ jobs:
3131
- name: Checkout Repository
3232
uses: actions/checkout@master
3333

34-
- name: Checkout Submodules
35-
shell: bash
36-
run: git submodule update --init --recursive
37-
3834
- name: Download Ninja
3935
env:
4036
OS_NAME: ${{ matrix.os }}
@@ -131,10 +127,6 @@ jobs:
131127
- name: Checkout Repository
132128
uses: actions/checkout@master
133129

134-
- name: Checkout Submodules
135-
shell: bash
136-
run: git submodule update --init --recursive
137-
138130
- name: VCPKG Cache
139131
uses: actions/cache@v1
140132
id: vcpkg-cache

.github/workflows/docs_build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
2727
- name: Configure
2828
run: |
29-
git submodule update --init --recursive
3029
mkdir build && cd build
3130
cmake -DAF_BUILD_CPU:BOOL=OFF -DAF_BUILD_CUDA:BOOL=OFF \
3231
-DAF_BUILD_OPENCL:BOOL=OFF -DAF_BUILD_UNIFIED:BOOL=OFF \

.github/workflows/release_src_artifact.yml

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,30 @@ jobs:
2323
echo "AF_TAG=${tag}" >> $GITHUB_ENV
2424
echo "AF_VER=${ver}" >> $GITHUB_ENV
2525
26-
- name: Checkout with Submodules
26+
- name: Checkout Repo
2727
run: |
2828
cd ${GITHUB_WORKSPACE}
2929
clone_url="https://github.com/${GITHUB_REPOSITORY}"
30-
git clone --depth 1 --recursive -b ${AF_TAG} ${clone_url} arrayfire-full-${AF_VER}
30+
git clone --depth 1 -b ${AF_TAG} ${clone_url} arrayfire-full-${AF_VER}
31+
32+
- name: Install Dependencies
33+
run: |
34+
sudo add-apt-repository ppa:mhier/libboost-latest
35+
sudo apt-get -qq update
36+
sudo apt-get install -y libfontconfig1-dev \
37+
libglfw3-dev \
38+
libfftw3-dev \
39+
liblapacke-dev \
40+
libopenblas-dev \
41+
ocl-icd-opencl-dev \
42+
nvidia-cuda-toolkit \
43+
libboost1.68-dev
44+
45+
- name: CMake Configure
46+
run: |
47+
cd ${GITHUB_WORKSPACE}/arrayfire-full-${AF_VER}
48+
mkdir build && cd build
49+
cmake .. -DAF_BUILD_FORGE:BOOL=ON
3150
3251
- name: Create source tarball
3352
id: create-src-tarball
@@ -36,6 +55,22 @@ jobs:
3655
rm -rf arrayfire-full-${AF_VER}/.git
3756
rm -rf arrayfire-full-${AF_VER}/.github
3857
rm arrayfire-full-${AF_VER}/.gitmodules
58+
cd arrayfire-full-${AF_VER}/build/
59+
shopt -s extglob
60+
rm -r !(extern)
61+
cd ./extern
62+
rm -rf ./*-build
63+
rm -rf ./*-subbuild
64+
declare -a deps
65+
deps=($(ls))
66+
for dep in ${deps[@]}; do
67+
rm -rf ./${dep}/.git
68+
rm -rf ./${dep}/.gitattributes
69+
rm -rf ./${dep}/.gitmodules
70+
done
71+
shopt -u extglob
72+
rm -rf matrixmarket
73+
cd ../../..
3974
tar -cjf arrayfire-full-${AF_VER}.tar.bz2 arrayfire-full-${AF_VER}/
4075
echo "UPLOAD_FILE=arrayfire-full-${AF_VER}.tar.bz2" >> $GITHUB_ENV
4176

0 commit comments

Comments
 (0)