Make Linux action to use the pre-set entrypoint

This commit is contained in:
Ilya Fedin 2023-12-15 05:15:41 +04:00 committed by John Preston
parent 6c42095108
commit 73294bfabf

View file

@ -43,15 +43,6 @@ jobs:
linux: linux:
name: Rocky Linux 8 name: Rocky Linux 8
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository }}/centos_env
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
defaults:
run:
shell: scl enable gcc-toolset-12 -- bash --noprofile --norc -eo pipefail {0}
strategy: strategy:
matrix: matrix:
@ -75,12 +66,13 @@ jobs:
- name: First set up. - name: First set up.
run: | run: |
gcc --version echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
ln -s /usr/src/Libraries docker pull ghcr.io/$GITHUB_REPOSITORY/centos_env
docker tag ghcr.io/$GITHUB_REPOSITORY/centos_env tdesktop:centos_env
- name: Telegram Desktop build. - name: Telegram Desktop build.
run: | run: |
cd $REPO_NAME/Telegram cd $REPO_NAME
DEFINE="" DEFINE=""
if [ -n "${{ matrix.defines }}" ]; then if [ -n "${{ matrix.defines }}" ]; then
@ -91,7 +83,11 @@ jobs:
echo "ARTIFACT_NAME=Telegram" >> $GITHUB_ENV echo "ARTIFACT_NAME=Telegram" >> $GITHUB_ENV
fi fi
./configure.sh \ docker run --rm \
-v $PWD:/usr/src/tdesktop \
-e DEBUG=1 \
tdesktop:centos_env \
/usr/src/tdesktop/Telegram/build/docker/centos_env/build.sh \
-D CMAKE_C_FLAGS_DEBUG="" \ -D CMAKE_C_FLAGS_DEBUG="" \
-D CMAKE_CXX_FLAGS_DEBUG="" \ -D CMAKE_CXX_FLAGS_DEBUG="" \
-D CMAKE_C_FLAGS="-Werror" \ -D CMAKE_C_FLAGS="-Werror" \
@ -101,8 +97,6 @@ jobs:
-D DESKTOP_APP_DISABLE_CRASH_REPORTS=OFF \ -D DESKTOP_APP_DISABLE_CRASH_REPORTS=OFF \
$DEFINE $DEFINE
cmake --build ../out --config Debug --parallel
- name: Check. - name: Check.
run: | run: |
filePath="$REPO_NAME/out/Debug/Telegram" filePath="$REPO_NAME/out/Debug/Telegram"