Skip to content

Commit

Permalink
github-ci: fix workflow_dispatch and image size issues
Browse files Browse the repository at this point in the history
Signed-off-by: Abhishek Gaikwad <[email protected]>
  • Loading branch information
gaikwadabhishek committed Dec 12, 2023
1 parent c55e89c commit 5cf1842
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/transformer-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ jobs:
python-version: 3.11
- name: Check Path for Changes
id: paths_filter
if: ${{ github.event_name != 'workflow_dispatch' }}
uses: dorny/paths-filter@v2
with:
filters: |
Expand Down Expand Up @@ -147,6 +148,7 @@ jobs:
- name: Build and Test ECHO
if: ${{ env.ECHO_ENABLE == 'true' }}
run: |
docker system prune -a -f --volumes
pushd $GITHUB_WORKSPACE/transformers/tests
export GIT_TEST="true"
make -B -C $GITHUB_WORKSPACE/transformers/hello_world all
Expand All @@ -160,6 +162,7 @@ jobs:
- name: Build and Test HELLO_WORLD
if: ${{ env.HELLO_WORLD_ENABLE == 'true' }}
run: |
docker system prune -a -f --volumes
pushd $GITHUB_WORKSPACE/transformers/tests
export GIT_TEST="true"
make -B -C $GITHUB_WORKSPACE/transformers/echo all
Expand All @@ -173,6 +176,7 @@ jobs:
- name: Build and Test MD5
if: ${{ env.MD5_ENABLE == 'true' }}
run: |
docker system prune -a -f --volumes
pushd $GITHUB_WORKSPACE/transformers/tests
export GIT_TEST="true"
make -B -C $GITHUB_WORKSPACE/transformers/md5 all
Expand All @@ -184,6 +188,7 @@ jobs:
- name: Build and Test TAR2TF
if: ${{ env.TAR2TF_ENABLE == 'true' }}
run: |
docker system prune -a -f --volumes
pushd $GITHUB_WORKSPACE/transformers/tests
export GIT_TEST="true"
make -B -C $GITHUB_WORKSPACE/transformers/tar2tf all
Expand All @@ -195,6 +200,7 @@ jobs:
- name: Build and Test COMPRESS
if: ${{ env.COMPRESS_ENABLE == 'true' }}
run: |
docker system prune -a -f --volumes
pushd $GITHUB_WORKSPACE/transformers/tests
export GIT_TEST="true"
make -B -C $GITHUB_WORKSPACE/transformers/compress all
Expand All @@ -213,6 +219,7 @@ jobs:
cp ${FFMPEG_DIR}/ffprobe /usr/local/bin/
rm -rf ffmpeg-*-static ffmpeg-release-amd64-static.tar.xz
ffmpeg -version
docker system prune -a -f --volumes
pushd $GITHUB_WORKSPACE/transformers/tests
export GIT_TEST="true"
make -B -C $GITHUB_WORKSPACE/transformers/ffmpeg all
Expand All @@ -224,6 +231,7 @@ jobs:
- name: Build and Test TORCHVISION
if: ${{ env.TORCHVISION_ENABLE == 'true' }}
run: |
docker system prune -a -f --volumes
pip install torchvision --index-url https://download.pytorch.org/whl/cpu
pushd $GITHUB_WORKSPACE/transformers/tests
export GIT_TEST="true"
Expand All @@ -235,7 +243,8 @@ jobs:
popd
- name: Build and Test KERAS
if: ${{ env.KERAS_ENABLE == 'true' }}
run: |
run: |
docker system prune -a -f --volumes
pushd $GITHUB_WORKSPACE/transformers/tests
export GIT_TEST="true"
make -B -C $GITHUB_WORKSPACE/transformers/keras_preprocess all
Expand Down

0 comments on commit 5cf1842

Please sign in to comment.