Skip to content

Commit

Permalink
Update CI actions scripts to latest version (#529)
Browse files Browse the repository at this point in the history
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/
  • Loading branch information
keryell authored Jul 20, 2023
1 parent 6723d6d commit 8634562
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/buildAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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:
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/generateDocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ 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

# 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"
Expand All @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -96,4 +96,3 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build_release/docs
enable_jekyll: true

0 comments on commit 8634562

Please sign in to comment.