Skip to content

Commit 799358c

Browse files
committed
update git work flow and app image creator
1 parent 69f52bc commit 799358c

File tree

3 files changed

+8
-52
lines changed

3 files changed

+8
-52
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
version:
88
description: 'The version for the release'
99
required: true
10-
default: 'v2.0.0'
10+
default: 'vX.X.X'
1111
release_notes:
1212
description: 'Release notes or description for this version'
1313
required: false
@@ -25,15 +25,15 @@ jobs:
2525
# Step 2: Pull Docker image from Docker Hub
2626
- name: Set up Docker
2727
uses: docker/setup-buildx-action@v2
28-
28+
2929
- name: Pull Docker image
30-
run: docker pull naderzare/ubuntu22-grpc-thrift:latest
30+
run: docker pull naderzare/ubuntu20-grpc-thrift:latest
3131

3232
# Step 3: Run the build.sh script inside the Docker container
3333
- name: Build project
3434
run: |
35-
docker run --rm -v ${{ github.workspace }}:/workspace naderzare/ubuntu22-grpc-thrift:latest \
36-
bash -c "ls && cd /workspace/utils && ls && chmod +x build.sh && ./build.sh && pwd && ldd ../build/bin/sample_player && cd /workspace/utils/app-image && chmod +x create_app_images.sh && ./create_app_images.sh"
35+
docker run --rm -v ${{ github.workspace }}:/workspace naderzare/ubuntu20-grpc-thrift:latest \
36+
bash -c "pwd && ls && cd /workspace/utils && ls && chmod +x build.sh && ./build.sh && cd /workspace/utils/app-image && chmod +x create_app_images.sh && ./create_app_images.sh"
3737
3838
# Step 5: Upload the tar.gz file as a release asset
3939
- name: Create GitHub Release

.github/workflows/main20.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

utils/app-image/create_app_images.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ APP_IMAGE_DIR="${SCRIPT_DIR}"
1919
echo "BUILD_PWD=" $BUILD_PWD
2020
echo "APP_IMAGE_DIR=" $APP_IMAGE_DIR
2121

22+
# print ldd info
23+
ldd $BUILD_PWD/sample_player
24+
2225
# find libc and libstdc++ libz dependencies
2326
LIBRCSC_PATH=$(ldd $BUILD_PWD/sample_player | grep librcsc.so.18 | awk '{ print $3 }')
2427
LIBZ_PATH=$(ldd $BUILD_PWD/sample_player | grep libz.so | awk '{ print $3 }')

0 commit comments

Comments
 (0)