Skip to content

Commit

Permalink
Disable git lfs in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ducphamhong committed Aug 15, 2024
1 parent 317e580 commit 2653985
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 39 deletions.
48 changes: 29 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2.1

commands:
commands:
build-engine-native:
steps:
- run:
Expand All @@ -12,19 +12,19 @@ commands:
build-asset-bundles:
steps:
- run:
command: >
command: >
cd Assets
chmod +x ../Tools/PVRTexTool/linux/PVRTexToolCLI
sudo apt-get update
sudo apt install python3
sudo apt install python3-pip
pip3 install tinydb
pip3 install Pillow
python3 BuildTextureCompressETC.py
Expand Down Expand Up @@ -67,41 +67,51 @@ commands:
name: Build Android APK
build-android-aab:
steps:
- run:
command: >
export ANDROID_BUNDLE_PATH=Projects/Android/appdata/src/main/assets
- run:
command: >
export ANDROID_BUNDLE_PATH=Projects/Android/appdata/src/main/assets
export ANDROID_ASSET_PATH=Projects/Android/app/src/main/assets
export ANDROID_ASSET_PATH=Projects/Android/app/src/main/assets
rm $ANDROID_ASSET_PATH/*.zip
rm $ANDROID_ASSET_PATH/*.zip
cp Bin/BuiltIn.zip $ANDROID_BUNDLE_PATH
cp Bin/BuiltIn.zip $ANDROID_BUNDLE_PATH
cp Bin/Common.zip $ANDROID_BUNDLE_PATH
cp Bin/Common.zip $ANDROID_BUNDLE_PATH
cp Bin/SampleModelsResource.zip $ANDROID_BUNDLE_PATH
cp Bin/SampleModelsResource.zip $ANDROID_BUNDLE_PATH
cp Bin/SampleModelsETC.zip $ANDROID_BUNDLE_PATH
cp Bin/SampleModelsETC.zip $ANDROID_BUNDLE_PATH
cd Projects/Android
cd Projects/Android
chmod +x ./gradlew
chmod +x ./gradlew
./gradlew bundleDebug
./gradlew bundleDebug
ls -l app/build/outputs/bundle/debug
ls -l app/build/outputs/bundle/debug
cd ../..
name: Build Android AAB
cd ../..
name: Build Android AAB
jobs:
build-android:
docker:
- image: cimg/android:2024.01.1-ndk
environment:
ABI: arm64-v8a
APP_NAME: libSampleSkinnedMesh.so
GIT_LFS_SKIP_SMUDGE: 1
steps:
- checkout
- restore_cache:
key: git-lfs-cache-key-1
- run:
command: >
git lfs pull
- save_cache:
key: git-lfs-cache-key-1
paths:
- .git/lfs
- build-engine-native
- build-asset-bundles
- build-android-apk
Expand Down
6 changes: 0 additions & 6 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
*.tga filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.jpeg filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.bmp filter=lfs diff=lfs merge=lfs -text
*.dds filter=lfs diff=lfs merge=lfs -text
*.pvr filter=lfs diff=lfs merge=lfs -text
Expand All @@ -22,6 +19,3 @@
*.ttf filter=lfs diff=lfs merge=lfs -text
*.otf filter=lfs diff=lfs merge=lfs -text
*.dylib filter=lfs diff=lfs merge=lfs -text
*.jpg !text !filter !merge !diff
*.jpeg !text !filter !merge !diff
*.png !text !filter !merge !diff
28 changes: 14 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
lfs: true
#with:
# lfs: true
- name: Install Dependencies
shell: cmd
run: |
Expand Down Expand Up @@ -77,8 +77,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
lfs: true
#with:
# lfs: true
- name: Install Dependencies
run: |
sudo apt-get update -y -qq
Expand Down Expand Up @@ -116,8 +116,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
lfs: true
#with:
# lfs: true
- name: Install Dependencies
run: |
sudo apt-get update -y -qq
Expand Down Expand Up @@ -155,8 +155,8 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
lfs: true
#with:
# lfs: true
- name: Build
run: |
brew install libomp
Expand Down Expand Up @@ -236,8 +236,8 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
lfs: true
#with:
# lfs: true
- name: Build
shell: cmd
run: |
Expand All @@ -260,8 +260,8 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
lfs: true
#with:
# lfs: true
- name: Build
shell: cmd
run: |
Expand All @@ -284,8 +284,8 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
lfs: true
#with:
# lfs: true
- name: Build
shell: cmd
run: |
Expand Down

0 comments on commit 2653985

Please sign in to comment.