diff --git a/.github/docker/Dockerfile.ubuntu b/.github/docker/Dockerfile.ubuntu index a1d10143..a0f3a5b4 100644 --- a/.github/docker/Dockerfile.ubuntu +++ b/.github/docker/Dockerfile.ubuntu @@ -7,6 +7,7 @@ ENV LLVM_VERSION=$LLVM_VERSION ARG SHORTNAME="jammy" ENV SHORTNAME=$SHORTNAME +RUN echo 'Acquire::Retries "5";' > /etc/apt/apt.conf.d/80-retries RUN apt-get update && apt-get install -y curl gnupg RUN if [ "${LLVM_VERSION}" = "21" ]; \ then \ @@ -20,7 +21,9 @@ deb http://apt.llvm.org/${SHORTNAME}/ llvm-toolchain-${SHORTNAME}-${LLVM_VERSION deb-src http://apt.llvm.org/${SHORTNAME}/ llvm-toolchain-${SHORTNAME}-${LLVM_VERSION} main\n\ " >> /etc/apt/sources.list; \ fi -RUN curl -L https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - +RUN curl -fsSL --retry 5 --retry-connrefused --retry-delay 5 \ + -o /tmp/llvm-snapshot.gpg.key https://apt.llvm.org/llvm-snapshot.gpg.key && \ + apt-key add /tmp/llvm-snapshot.gpg.key ARG DEBIAN_FRONTEND="noninteractive" ENV TZ="Etc/UTC" diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml index 05eca9ba..80c9b6c6 100644 --- a/.github/workflows/build-android.yml +++ b/.github/workflows/build-android.yml @@ -16,7 +16,7 @@ jobs: matrix: arch: [armeabi-v7a, arm64-v8a, x86_64] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 with: submodules: true - uses: xmake-io/github-action-setup-xmake@v1 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3d8d0157..d5d2f3f2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,12 +16,12 @@ jobs: matrix: llvm: [11, 12, 13, 14, 15, 16, 17, 18, 19, 20] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 with: submodules: recursive - name: Build container (20.04) if: ${{ matrix.llvm < 14 }} - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v7 with: push: false build-args: | @@ -32,7 +32,7 @@ jobs: tags: build_container - name: Build container (22.04) if: ${{ matrix.llvm >= 14 }} - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v7 with: push: false build-args: |