From: Matwey V. Kornilov Date: Fri, 7 Feb 2025 15:46:58 +0000 (+0300) Subject: Fix deprecated actions/upload-artifact@v3 in GitHub Actions X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4344%2Fhead;p=thirdparty%2Fcollectd.git Fix deprecated actions/upload-artifact@v3 in GitHub Actions (cherry picked from commit 0edf8505c239b021dead7b1226b71db131cae692) --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6a0934013..d2811c433 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -64,9 +64,9 @@ jobs: - name: Run configure script run: ./configure $CONFIGURE_FLAGS - name: Upload config.log - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: ${{ matrix.container_tag }} + name: configure log for ${{ matrix.container_tag }} ${{ matrix.configure_flags }} path: config.log # The configure script relies on the old syntax to check whether functions # exist, so we can't specify `-Wstrict-prototypes` globally. @@ -79,9 +79,9 @@ jobs: echo "$?" >make-check.status continue-on-error: true - name: Upload log files - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: ${{ matrix.container_tag }} + name: Build logs ${{ matrix.container_tag }} ${{ matrix.configure_flags }} path: "*.log" - name: Report check status run: exit $(< make-check.status) @@ -130,9 +130,9 @@ jobs: - name: Run configure script run: ./configure $CONFIGURE_FLAGS - name: Upload config.log - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: ${{ matrix.container_tag }} + name: configure log for ${{ matrix.container_tag }} ${{ matrix.configure_flags }} path: config.log - name: Build collectd run: make -j$(nproc) -sk CFLAGS="${CFLAGS} -Werror=strict-prototypes" @@ -143,9 +143,9 @@ jobs: echo "$?" >make-check.status continue-on-error: true - name: Upload log files - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: ${{ matrix.container_tag }} + name: Build logs ${{ matrix.container_tag }} ${{ matrix.configure_flags }} path: "*.log" - name: Report check status run: exit $(< make-check.status)