From b9042d5e6176cbfcc5a7ce7a3d2012d3af1f0880 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Tue, 13 Feb 2024 13:51:46 +0100 Subject: [PATCH] CI: actions: use main branch Surpress warnings like: ``` Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/. ``` --- .github/workflows/ccpp.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index d01f2850..dd87ad22 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -24,7 +24,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, we do not need to create own token. steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@main if: github.repository == 'CESNET/GPUJPEG' && github.ref == 'refs/heads/master' with: persist-credentials: true @@ -40,7 +40,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@main - name: Install run: | sudo apt update @@ -55,7 +55,7 @@ jobs: - name: Upload Archive if: github.repository != 'CESNET/GPUJPEG' || github.ref != 'refs/heads/master' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@main with: name: GPUJPEG CI Linux build path: GPUJPEG @@ -73,7 +73,7 @@ jobs: runs-on: windows-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@main - name: install CUDA run: | choco install cuda -y --no-progress @@ -109,14 +109,14 @@ jobs: - name: Upload Archive if: github.repository != 'CESNET/GPUJPEG' || github.ref != 'refs/heads/master' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@main with: name: GPUJPEG CI Windows build path: GPUJPEG - name: Upload Installer if: github.repository != 'CESNET/GPUJPEG' || github.ref != 'refs/heads/master' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@main with: name: GPUJPEG CI Windows installer path: gpujpeg-*-win64.exe