diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 4961c68f3..5ded5a040 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -43,15 +43,6 @@ jobs: linux: name: Rocky Linux 8 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: matrix: @@ -75,12 +66,13 @@ jobs: - name: First set up. run: | - gcc --version - ln -s /usr/src/Libraries + echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin + docker pull ghcr.io/$GITHUB_REPOSITORY/centos_env + docker tag ghcr.io/$GITHUB_REPOSITORY/centos_env tdesktop:centos_env - name: Telegram Desktop build. run: | - cd $REPO_NAME/Telegram + cd $REPO_NAME DEFINE="" if [ -n "${{ matrix.defines }}" ]; then @@ -91,7 +83,11 @@ jobs: echo "ARTIFACT_NAME=Telegram" >> $GITHUB_ENV 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_CXX_FLAGS_DEBUG="" \ -D CMAKE_C_FLAGS="-Werror" \ @@ -101,8 +97,6 @@ jobs: -D DESKTOP_APP_DISABLE_CRASH_REPORTS=OFF \ $DEFINE - cmake --build ../out --config Debug --parallel - - name: Check. run: | filePath="$REPO_NAME/out/Debug/Telegram"