try fix arm64 linux ci and publish error log (#8730)

FFmepg can be built on arm64 ubuntu vm, possible reason is that the
condition of nvcodec can't be satisfied. If this still can't work, nvcodec can
be removed for arm linux.

Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages 2024-07-17 11:40:50 +08:00 committed by GitHub
parent 092e4089c7
commit a4565bf0da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1056,10 +1056,24 @@ jobs:
- name: Install vcpkg dependencies
if: matrix.job.arch == 'x86_64' || env.UPLOAD_ARTIFACT == 'true'
continue-on-error: true
run: |
if [[ "${{ matrix.job.arch }}" == "aarch64" ]]; then
sudo apt-get install -y clang
fi
$VCPKG_ROOT/vcpkg install --triplet ${{ matrix.job.vcpkg-triplet }} --x-install-root="$VCPKG_ROOT/installed"
shell: bash
- name: Publish vcpkg log files
if: matrix.job.arch == 'aarch64'
uses: softprops/action-gh-release@v1
with:
prerelease: true
tag_name: ${{ env.TAG_NAME }}
files: |
/opt/artifacts/vcpkg/buildtrees/ffmpeg/build-arm64-linux-rel-out.log
/opt/artifacts/vcpkg/buildtrees/ffmpeg/build-arm64-linux-rel-err.log
- name: Restore bridge files
if: matrix.job.arch == 'x86_64' || env.UPLOAD_ARTIFACT == 'true'
uses: actions/download-artifact@master
@ -1351,11 +1365,25 @@ jobs:
vcpkgGitCommitId: ${{ env.VCPKG_COMMIT_ID }}
- name: Install vcpkg dependencies
continue-on-error: true
run: |
cp $PWD/res/vcpkg/linux.cmake $VCPKG_ROOT/scripts/toolchains/linux.cmake
if [[ "${{ matrix.job.arch }}" == "armv7" ]]; then
sudo apt-get install -y clang
fi
$VCPKG_ROOT/vcpkg install --triplet ${{ matrix.job.vcpkg-triplet }} --x-install-root="$VCPKG_ROOT/installed"
shell: bash
- name: Publish vcpkg log files
if: matrix.job.arch == 'armv7'
uses: softprops/action-gh-release@v1
with:
prerelease: true
tag_name: ${{ env.TAG_NAME }}
files: |
/opt/artifacts/vcpkg/buildtrees/ffmpeg/build-arm-linux-rel-out.log
/opt/artifacts/vcpkg/buildtrees/ffmpeg/build-arm-linux-rel-err.log
- uses: rustdesk-org/run-on-arch-action@amd64-support
name: Build rustdesk sciter binary for ${{ matrix.job.arch }}
id: vcpkg