From 86345625d7d639423514c6c283228f2cff9fdde6 Mon Sep 17 00:00:00 2001 From: Ronan Keryell Date: Wed, 19 Jul 2023 18:50:00 -0700 Subject: [PATCH] Update CI actions scripts to latest version (#529) Avoid deprecation warnings. Modernize the way to set environment variables. See for the rationale: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- .github/workflows/buildAndTest.yml | 10 +++++----- .github/workflows/generateDocs.yml | 11 +++++------ 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/buildAndTest.yml b/.github/workflows/buildAndTest.yml index 5eac91c58b..d6cc02583e 100644 --- a/.github/workflows/buildAndTest.yml +++ b/.github/workflows/buildAndTest.yml @@ -19,7 +19,7 @@ jobs: # Clone the repo and its submodules. Do shallow clone to save clone # time. - name: Get repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 2 submodules: "true" @@ -35,7 +35,7 @@ jobs: - name: Get Submodule Hash id: get-submodule-hash - run: echo "::set-output name=hash::$(md5sum $(echo utils/clone-llvm.sh))" + run: echo "hash=$(md5sum $(echo utils/clone-llvm.sh))" >> $GITHUB_OUTPUT shell: bash - name: Ccache for C++ compilation @@ -48,7 +48,7 @@ jobs: id: clone-llvm run: utils/clone-llvm.sh shell: bash - + - name: Rebuild and Install LLVM run: utils/build-llvm.sh @@ -118,7 +118,7 @@ jobs: # Clone the repo and its submodules. Do shallow clone to save clone # time. - name: Get repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 2 submodules: "true" @@ -200,7 +200,7 @@ jobs: # Upload the format and tidy patches to an artifact (zip'd) associated # with the workflow run. Only run this on a failure. - name: Upload format and tidy patches - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 continue-on-error: true if: ${{ failure() }} with: diff --git a/.github/workflows/generateDocs.yml b/.github/workflows/generateDocs.yml index efec58d304..8152dd9fa7 100644 --- a/.github/workflows/generateDocs.yml +++ b/.github/workflows/generateDocs.yml @@ -10,11 +10,11 @@ jobs: build-docs: name: Generate Documentation runs-on: ubuntu-latest - + # Grant GITHUB_TOKEN the permissions required to make a Pages deployment permissions: contents: write - + steps: - name: Configure Environment run: echo "$GITHUB_WORKSPACE/llvm/install/bin" >> $GITHUB_PATH @@ -22,7 +22,7 @@ jobs: # Clone the repo and its submodules. Do shallow clone to save clone # time. - name: Get repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 2 submodules: "true" @@ -38,7 +38,7 @@ jobs: - name: Get Submodule Hash id: get-submodule-hash - run: echo "::set-output name=hash::$(md5sum $(echo utils/clone-llvm.sh))" + run: echo "hash=$(md5sum $(echo utils/clone-llvm.sh))" >> $GITHUB_OUTPUT shell: bash - name: Ccache for C++ compilation @@ -56,7 +56,7 @@ jobs: id: clone-llvm run: utils/clone-llvm.sh shell: bash - + - name: Rebuild and Install LLVM run: utils/build-llvm.sh @@ -96,4 +96,3 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./build_release/docs enable_jekyll: true -