summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>2023-02-01 00:58:45 +0330
committerMohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>2023-02-01 06:23:33 +0330
commitd30b187f7d44f06eccb77394019ba1b942bd9132 (patch)
tree251a25217281c5eaa0a52e960b554794b105908d /.github/workflows
parent930d477d5d8f6c9f09daabb84ce6b76f38bf438d (diff)
downloadllvm-d30b187f7d44f06eccb77394019ba1b942bd9132.tar.gz
[github] update actions and make tweaks
- Update the GitHub workflow actions to their latest versions. - Use the latest Node.js LTS release. - Use the latest Ubuntu version for consistency across all workflows. - The `set-output` command is deprecated and will soon be disabled (https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/) so use the new recommended way. - Use the `$()` expressions for string interpolation instead of the deprecated backticks in Bash. - Format the YAML files. Differential Revision: https://reviews.llvm.org/D143015
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/issue-release-workflow.yml8
-rw-r--r--.github/workflows/libclang-abi-tests.yml99
-rw-r--r--.github/workflows/lldb-tests.yml1
-rw-r--r--.github/workflows/llvm-bugs.yml7
-rw-r--r--.github/workflows/llvm-project-tests.yml6
-rw-r--r--.github/workflows/llvm-tests.yml117
-rw-r--r--.github/workflows/release-tasks.yml93
-rw-r--r--.github/workflows/repo-lockdown.yml2
-rw-r--r--.github/workflows/version-check.yml5
9 files changed, 166 insertions, 172 deletions
diff --git a/.github/workflows/issue-release-workflow.yml b/.github/workflows/issue-release-workflow.yml
index 25b0d124a15e..1662be9ed915 100644
--- a/.github/workflows/issue-release-workflow.yml
+++ b/.github/workflows/issue-release-workflow.yml
@@ -29,14 +29,14 @@ env:
jobs:
backport-commits:
name: Backport Commits
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-latest
if: >-
(github.repository == 'llvm/llvm-project') &&
!startswith(github.event.comment.body, '<!--IGNORE-->') &&
contains(github.event.action == 'opened' && github.event.issue.body || github.event.comment.body, '/cherry-pick')
steps:
- name: Fetch LLVM sources
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
with:
repository: llvm/llvm-project
# GitHub stores the token used for checkout and uses it for pushes
@@ -63,7 +63,7 @@ jobs:
create-pull-request:
name: Create Pull Request
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-latest
if: >-
(github.repository == 'llvm/llvm-project') &&
!startswith(github.event.comment.body, '<!--IGNORE-->') &&
@@ -71,7 +71,7 @@ jobs:
steps:
- name: Fetch LLVM sources
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
with:
persist-credentials: false
diff --git a/.github/workflows/libclang-abi-tests.yml b/.github/workflows/libclang-abi-tests.yml
index 8cc2f3a0fa3f..5e8f62ba1330 100644
--- a/.github/workflows/libclang-abi-tests.yml
+++ b/.github/workflows/libclang-abi-tests.yml
@@ -23,7 +23,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
-
jobs:
abi-dump-setup:
if: github.repository_owner == 'llvm'
@@ -57,28 +56,27 @@ jobs:
baseline_ref="llvmorg-$major_version.0.0"
# If there is a minor release, we want to use that as the base line.
- minor_ref=`git ls-remote --refs -t $remote_repo llvmorg-$major_version.[1-9].[0-9] | tail -n1 | grep -o 'llvmorg-.\+' || true`
+ minor_ref=$(git ls-remote --refs -t $remote_repo llvmorg-$major_version.[1-9].[0-9] | tail -n1 | grep -o 'llvmorg-.\+' || true)
if [ -n "$minor_ref" ]; then
baseline_ref=$minor_ref
else
# Check if we have a release candidate
- rc_ref=`git ls-remote --refs -t $remote_repo llvmorg-$major_version.[1-9].[0-9]-rc* | tail -n1 | grep -o 'llvmorg-.\+' || true`
+ rc_ref=$(git ls-remote --refs -t $remote_repo llvmorg-$major_version.[1-9].[0-9]-rc* | tail -n1 | grep -o 'llvmorg-.\+' || true)
if [ -n "$rc_ref" ]; then
baseline_ref=$rc_ref
fi
fi
- echo ::set-output name=BASELINE_VERSION_MAJOR::$major_version
- echo ::set-output name=BASELINE_REF::$baseline_ref
- echo ::set-output name=ABI_HEADERS::clang-c
- echo ::set-output name=ABI_LIBS::libclang.so
+ echo "BASELINE_VERSION_MAJOR=$major_version" >> $GITHUB_OUTPUT
+ echo "BASELINE_REF=$baseline_ref" >> $GITHUB_OUTPUT
+ echo "ABI_HEADERS=clang-c" >> $GITHUB_OUTPUT
+ echo "ABI_LIBS=libclang.so" >> $GITHUB_OUTPUT
else
- echo ::set-output name=BASELINE_VERSION_MAJOR::${{ steps.version.outputs.LLVM_VERSION_MAJOR }}
- echo ::set-output name=BASELINE_REF::llvmorg-${{ steps.version.outputs.LLVM_VERSION_MAJOR }}.0.0
- echo ::set-output name=ABI_HEADERS::.
- echo ::set-output name=ABI_LIBS::libclang.so libclang-cpp.so
+ echo "BASELINE_VERSION_MAJOR=${{ steps.version.outputs.LLVM_VERSION_MAJOR }}" >> $GITHUB_OUTPUT
+ echo "BASELINE_REF=llvmorg-${{ steps.version.outputs.LLVM_VERSION_MAJOR }}.0.0" >> $GITHUB_OUTPUT
+ echo "ABI_HEADERS=." >> $GITHUB_OUTPUT
+ echo "ABI_LIBS=libclang.so libclang-cpp.so" >> $GITHUB_OUTPUT
fi
-
abi-dump:
if: github.repository_owner == 'llvm'
needs: abi-dump-setup
@@ -98,41 +96,41 @@ jobs:
ref: ${{ github.sha }}
repo: ${{ github.repository }}
steps:
- - name: Install Ninja
- uses: llvm/actions/install-ninja@main
- - name: Install abi-compliance-checker
- run: |
- sudo apt-get install abi-dumper autoconf pkg-config
- - name: Install universal-ctags
- run: |
- git clone https://github.com/universal-ctags/ctags.git
- cd ctags
- ./autogen.sh
- ./configure
- sudo make install
- - name: Download source code
- uses: llvm/actions/get-llvm-project-src@main
- with:
- ref: ${{ matrix.ref }}
- repo: ${{ matrix.repo }}
- - name: Configure
- run: |
- mkdir install
- cmake -B build -S llvm -G Ninja -DLLVM_ENABLE_PROJECTS=clang -DCMAKE_BUILD_TYPE=Debug -DLLVM_TARGETS_TO_BUILD="" -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON -DCMAKE_C_FLAGS_DEBUG="-g1 -Og" -DCMAKE_CXX_FLAGS_DEBUG="-g1 -Og" -DCMAKE_INSTALL_PREFIX=`pwd`/install llvm
- - name: Build
- run: ninja -C build/ ${{ needs.abi-dump-setup.outputs.ABI_LIBS }} install-clang-headers
- - name: Dump ABI
- run: |
- parallel abi-dumper -lver ${{ matrix.ref }} -skip-cxx -public-headers ./install/include/${{ needs.abi-dump-setup.outputs.ABI_HEADERS }} -o {}-${{ matrix.ref }}.abi ./build/lib/{} ::: ${{ needs.abi-dump-setup.outputs.ABI_LIBS }}
- for lib in ${{ needs.abi-dump-setup.outputs.ABI_LIBS }}; do
- # Remove symbol versioning from dumps, so we can compare across major versions.
- sed -i 's/LLVM_[0-9]\+/LLVM_NOVERSION/' $lib-${{ matrix.ref }}.abi
- done
- - name: Upload ABI file
- uses: actions/upload-artifact@v2
- with:
- name: ${{ matrix.name }}
- path: "*${{ matrix.ref }}.abi"
+ - name: Install Ninja
+ uses: llvm/actions/install-ninja@main
+ - name: Install abi-compliance-checker
+ run: |
+ sudo apt-get install abi-dumper autoconf pkg-config
+ - name: Install universal-ctags
+ run: |
+ git clone https://github.com/universal-ctags/ctags.git
+ cd ctags
+ ./autogen.sh
+ ./configure
+ sudo make install
+ - name: Download source code
+ uses: llvm/actions/get-llvm-project-src@main
+ with:
+ ref: ${{ matrix.ref }}
+ repo: ${{ matrix.repo }}
+ - name: Configure
+ run: |
+ mkdir install
+ cmake -B build -S llvm -G Ninja -DLLVM_ENABLE_PROJECTS=clang -DCMAKE_BUILD_TYPE=Debug -DLLVM_TARGETS_TO_BUILD="" -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON -DCMAKE_C_FLAGS_DEBUG="-g1 -Og" -DCMAKE_CXX_FLAGS_DEBUG="-g1 -Og" -DCMAKE_INSTALL_PREFIX=$(pwd)/install llvm
+ - name: Build
+ run: ninja -C build/ ${{ needs.abi-dump-setup.outputs.ABI_LIBS }} install-clang-headers
+ - name: Dump ABI
+ run: |
+ parallel abi-dumper -lver ${{ matrix.ref }} -skip-cxx -public-headers ./install/include/${{ needs.abi-dump-setup.outputs.ABI_HEADERS }} -o {}-${{ matrix.ref }}.abi ./build/lib/{} ::: ${{ needs.abi-dump-setup.outputs.ABI_LIBS }}
+ for lib in ${{ needs.abi-dump-setup.outputs.ABI_LIBS }}; do
+ # Remove symbol versioning from dumps, so we can compare across major versions.
+ sed -i 's/LLVM_[0-9]\+/LLVM_NOVERSION/' $lib-${{ matrix.ref }}.abi
+ done
+ - name: Upload ABI file
+ uses: actions/upload-artifact@v3
+ with:
+ name: ${{ matrix.name }}
+ path: '*${{ matrix.ref }}.abi'
abi-compare:
if: github.repository_owner == 'llvm'
@@ -142,11 +140,11 @@ jobs:
- abi-dump
steps:
- name: Download baseline
- uses: actions/download-artifact@v1
+ uses: actions/download-artifact@v3
with:
name: build-baseline
- name: Download latest
- uses: actions/download-artifact@v1
+ uses: actions/download-artifact@v3
with:
name: build-latest
@@ -159,8 +157,7 @@ jobs:
done
- name: Upload ABI Comparison
if: always()
- uses: actions/upload-artifact@v2
+ uses: actions/upload-artifact@v3
with:
name: compat-report-${{ github.sha }}
path: compat_reports/
-
diff --git a/.github/workflows/lldb-tests.yml b/.github/workflows/lldb-tests.yml
index 20a46437ae02..c62c4a79e61a 100644
--- a/.github/workflows/lldb-tests.yml
+++ b/.github/workflows/lldb-tests.yml
@@ -29,7 +29,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
-
jobs:
build_lldb:
if: github.repository_owner == 'llvm'
diff --git a/.github/workflows/llvm-bugs.yml b/.github/workflows/llvm-bugs.yml
index 36c967e4617c..efb47f55dda8 100644
--- a/.github/workflows/llvm-bugs.yml
+++ b/.github/workflows/llvm-bugs.yml
@@ -9,12 +9,13 @@ jobs:
auto-subscribe:
runs-on: ubuntu-latest
steps:
- - uses: actions/setup-node@v2
+ - uses: actions/setup-node@v3
with:
- node-version: 14
+ node-version: 18
+ check-latest: true
- run: npm install mailgun.js form-data
- name: Send notification
- uses: actions/github-script@v5
+ uses: actions/github-script@v6
env:
MAILGUN_API_KEY: ${{ secrets.LLVM_BUGS_KEY }}
with:
diff --git a/.github/workflows/llvm-project-tests.yml b/.github/workflows/llvm-project-tests.yml
index a410106ed4d3..abc9e014f054 100644
--- a/.github/workflows/llvm-project-tests.yml
+++ b/.github/workflows/llvm-project-tests.yml
@@ -22,7 +22,7 @@ concurrency:
# Cancel intermediate builds: only if it is a pull request build.
# If the group name here is the same as the group name in the workflow that includes
# this one, then the action will try to wait on itself and get stuck.
- group: llvm-project-${{ github.workflow }}-${{ inputs.projects}}${{ github.ref }}
+ group: llvm-project-${{ github.workflow }}-${{ inputs.projects }}${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
@@ -83,13 +83,13 @@ jobs:
PKG_CONFIG_PATH: /usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig//12
with:
cmake_args: '-GNinja -DLLVM_ENABLE_PROJECTS="${{ inputs.projects }}" -DCMAKE_BUILD_TYPE=Release -DLLDB_INCLUDE_TESTS=OFF -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache'
- build_target: '${{ inputs.build_target }}'
+ build_target: '${{ inputs.build_target }}'
- name: Build and Test libclc
if: "!startsWith(matrix.os, 'windows') && contains(inputs.projects, 'libclc')"
run: |
# Make sure all of LLVM libraries that llvm-config needs are built.
ninja -C build
- cmake -G Ninja -S libclc -B libclc-build -DLLVM_DIR=`pwd`/build/lib/cmake/llvm -DLIBCLC_TARGETS_TO_BUILD="amdgcn--;amdgcn--amdhsa;r600--;nvptx--;nvptx64--;nvptx--nvidiacl;nvptx64--nvidiacl"
+ cmake -G Ninja -S libclc -B libclc-build -DLLVM_DIR=$(pwd)/build/lib/cmake/llvm -DLIBCLC_TARGETS_TO_BUILD="amdgcn--;amdgcn--amdhsa;r600--;nvptx--;nvptx64--;nvptx--nvidiacl;nvptx64--nvidiacl"
ninja -C libclc-build
ninja -C libclc-build test
diff --git a/.github/workflows/llvm-tests.yml b/.github/workflows/llvm-tests.yml
index 83091da4bbb4..f0b3a2abc899 100644
--- a/.github/workflows/llvm-tests.yml
+++ b/.github/workflows/llvm-tests.yml
@@ -25,7 +25,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
-
jobs:
check_all:
if: github.repository_owner == 'llvm'
@@ -77,11 +76,11 @@ jobs:
id: vars
run: |
if [ ${{ steps.version.outputs.LLVM_VERSION_MINOR }} -ne 0 -o ${{ steps.version.outputs.LLVM_VERSION_PATCH }} -eq 0 ]; then
- echo ::set-output name=BASELINE_VERSION_MAJOR::$(( ${{ steps.version.outputs.LLVM_VERSION_MAJOR }} - 1))
- echo ::set-output name=ABI_HEADERS::llvm-c
+ echo "BASELINE_VERSION_MAJOR=$(( ${{ steps.version.outputs.LLVM_VERSION_MAJOR }} - 1))" >> $GITHUB_OUTPUT
+ echo "ABI_HEADERS=llvm-c" >> $GITHUB_OUTPUT
else
- echo ::set-output name=BASELINE_VERSION_MAJOR::${{ steps.version.outputs.LLVM_VERSION_MAJOR }}
- echo ::set-output name=ABI_HEADERS::.
+ echo "BASELINE_VERSION_MAJOR=${{ steps.version.outputs.LLVM_VERSION_MAJOR }}" >> $GITHUB_OUTPUT
+ echo "ABI_HEADERS=." >> $GITHUB_OUTPUT
fi
abi-dump:
@@ -103,57 +102,57 @@ jobs:
ref: ${{ github.sha }}
repo: ${{ github.repository }}
steps:
- - name: Install Ninja
- uses: llvm/actions/install-ninja@main
- - name: Install abi-compliance-checker
- run: |
- sudo apt-get install abi-dumper autoconf pkg-config
- - name: Install universal-ctags
- run: |
- git clone https://github.com/universal-ctags/ctags.git
- cd ctags
- ./autogen.sh
- ./configure
- sudo make install
- - name: Download source code
- uses: llvm/actions/get-llvm-project-src@main
- with:
- ref: ${{ matrix.ref }}
- repo: ${{ matrix.repo }}
- - name: Configure
- run: |
- mkdir install
- cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DLLVM_TARGETS_TO_BUILD="" -DLLVM_BUILD_LLVM_DYLIB=ON -DCMAKE_C_FLAGS_DEBUG="-g1 -Og" -DCMAKE_CXX_FLAGS_DEBUG="-g1 -Og" -DCMAKE_INSTALL_PREFIX=`pwd`/install llvm
- - name: Build
- # Need to run install-LLVM twice to ensure the symlink is installed (this is a bug).
- run: |
- ninja -C build install-LLVM
- ninja -C build install-LLVM
- ninja -C build install-llvm-headers
- - name: Dump ABI
- run: |
- if [ "${{ needs.abi-dump-setup.outputs.ABI_HEADERS }}" = "llvm-c" ]; then
- nm ./install/lib/libLLVM.so | awk "/T _LLVM/ || /T LLVM/ { print $3 }" | sort -u | sed -e "s/^_//g" | cut -d ' ' -f 3 > llvm.symbols
- # Even though the -symbols-list option doesn't seem to filter out the symbols, I believe it speeds up processing, so I'm leaving it in.
- export EXTRA_ARGS="-symbols-list llvm.symbols"
- else
- touch llvm.symbols
- fi
- abi-dumper $EXTRA_ARGS -lver ${{ matrix.ref }} -skip-cxx -public-headers ./install/include/${{ needs.abi-dump-setup.outputs.ABI_HEADERS }} -o ${{ matrix.ref }}.abi ./install/lib/libLLVM.so
- # Remove symbol versioning from dumps, so we can compare across major versions.
- sed -i 's/LLVM_${{ matrix.llvm_version_major }}/LLVM_NOVERSION/' ${{ matrix.ref }}.abi
- - name: Upload ABI file
- uses: actions/upload-artifact@v1
- with:
- name: ${{ matrix.name }}
- path: ${{ matrix.ref }}.abi
+ - name: Install Ninja
+ uses: llvm/actions/install-ninja@main
+ - name: Install abi-compliance-checker
+ run: |
+ sudo apt-get install abi-dumper autoconf pkg-config
+ - name: Install universal-ctags
+ run: |
+ git clone https://github.com/universal-ctags/ctags.git
+ cd ctags
+ ./autogen.sh
+ ./configure
+ sudo make install
+ - name: Download source code
+ uses: llvm/actions/get-llvm-project-src@main
+ with:
+ ref: ${{ matrix.ref }}
+ repo: ${{ matrix.repo }}
+ - name: Configure
+ run: |
+ mkdir install
+ cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DLLVM_TARGETS_TO_BUILD="" -DLLVM_BUILD_LLVM_DYLIB=ON -DCMAKE_C_FLAGS_DEBUG="-g1 -Og" -DCMAKE_CXX_FLAGS_DEBUG="-g1 -Og" -DCMAKE_INSTALL_PREFIX=$(pwd)/install llvm
+ - name: Build
+ # Need to run install-LLVM twice to ensure the symlink is installed (this is a bug).
+ run: |
+ ninja -C build install-LLVM
+ ninja -C build install-LLVM
+ ninja -C build install-llvm-headers
+ - name: Dump ABI
+ run: |
+ if [ "${{ needs.abi-dump-setup.outputs.ABI_HEADERS }}" = "llvm-c" ]; then
+ nm ./install/lib/libLLVM.so | awk "/T _LLVM/ || /T LLVM/ { print $3 }" | sort -u | sed -e "s/^_//g" | cut -d ' ' -f 3 > llvm.symbols
+ # Even though the -symbols-list option doesn't seem to filter out the symbols, I believe it speeds up processing, so I'm leaving it in.
+ export EXTRA_ARGS="-symbols-list llvm.symbols"
+ else
+ touch llvm.symbols
+ fi
+ abi-dumper $EXTRA_ARGS -lver ${{ matrix.ref }} -skip-cxx -public-headers ./install/include/${{ needs.abi-dump-setup.outputs.ABI_HEADERS }} -o ${{ matrix.ref }}.abi ./install/lib/libLLVM.so
+ # Remove symbol versioning from dumps, so we can compare across major versions.
+ sed -i 's/LLVM_${{ matrix.llvm_version_major }}/LLVM_NOVERSION/' ${{ matrix.ref }}.abi
+ - name: Upload ABI file
+ uses: actions/upload-artifact@v3
+ with:
+ name: ${{ matrix.name }}
+ path: ${{ matrix.ref }}.abi
- - name: Upload symbol list file
- if: matrix.name == 'build-baseline'
- uses: actions/upload-artifact@v1
- with:
- name: symbol-list
- path: llvm.symbols
+ - name: Upload symbol list file
+ if: matrix.name == 'build-baseline'
+ uses: actions/upload-artifact@v3
+ with:
+ name: symbol-list
+ path: llvm.symbols
abi-compare:
if: github.repository_owner == 'llvm'
@@ -163,15 +162,15 @@ jobs:
- abi-dump
steps:
- name: Download baseline
- uses: actions/download-artifact@v1
+ uses: actions/download-artifact@v3
with:
name: build-baseline
- name: Download latest
- uses: actions/download-artifact@v1
+ uses: actions/download-artifact@v3
with:
name: build-latest
- name: Download symbol list
- uses: actions/download-artifact@v1
+ uses: actions/download-artifact@v3
with:
name: symbol-list
@@ -189,7 +188,7 @@ jobs:
abi-compliance-checker $EXTRA_ARGS -l libLLVM.so -old build-baseline/*.abi -new build-latest/*.abi || test "${{ needs.abi-dump-setup.outputs.ABI_HEADERS }}" = "llvm-c"
- name: Upload ABI Comparison
if: always()
- uses: actions/upload-artifact@v1
+ uses: actions/upload-artifact@v3
with:
name: compat-report-${{ github.sha }}
path: compat_reports/
diff --git a/.github/workflows/release-tasks.yml b/.github/workflows/release-tasks.yml
index 71de6b29b775..b721e14a251c 100644
--- a/.github/workflows/release-tasks.yml
+++ b/.github/workflows/release-tasks.yml
@@ -11,56 +11,55 @@ jobs:
runs-on: ubuntu-latest
if: github.repository == 'llvm/llvm-project'
steps:
+ - name: Validate Tag
+ id: validate-tag
+ run: |
+ test "${{ github.actor }}" = "tstellar" || test "${{ github.actor }}" = "tru"
+ echo "${{ github.ref_name }}" | grep -e '^llvmorg-[0-9]\+\.[0-9]\+\.[0-9]\+\(-rc[0-9]\+\)\?$'
+ release_version=$(echo "${{ github.ref_name }}" | sed 's/llvmorg-//g')
+ echo "release-version=$release_version" >> $GITHUB_OUTPUT
- - name: Validate Tag
- id: validate-tag
- run: |
- test "${{ github.actor }}" = "tstellar" || test "${{ github.actor }}" = "tru"
- echo "${{ github.ref_name }}" | grep -e '^llvmorg-[0-9]\+\.[0-9]\+\.[0-9]\+\(-rc[0-9]\+\)\?$'
- release_version=`echo "${{ github.ref_name }}" | sed 's/llvmorg-//g'`
- echo "::set-output name=release-version::$release_version"
+ - name: Install Dependencies
+ run: |
+ sudo apt-get install -y \
+ doxygen \
+ graphviz \
+ python3-github \
+ python3-recommonmark \
+ python3-sphinx \
+ ninja-build \
+ texlive-font-utils
+ pip3 install --user sphinx-markdown-tables
- - name: Install Dependencies
- run: |
- sudo apt-get install -y \
- doxygen \
- graphviz \
- python3-github \
- python3-recommonmark \
- python3-sphinx \
- ninja-build \
- texlive-font-utils
- pip3 install --user sphinx-markdown-tables
+ - name: Checkout LLVM
+ uses: actions/checkout@v3
- - name: Checkout LLVM
- uses: actions/checkout@v3
+ - name: Create Release
+ run: |
+ ./llvm/utils/release/./github-upload-release.py --token ${{ github.token }} --release ${{ steps.validate-tag.outputs.release-version }} create
- - name: Create Release
- run: |
- ./llvm/utils/release/./github-upload-release.py --token ${{ github.token }} --release ${{ steps.validate-tag.outputs.release-version }} create
+ - name: Build Documentation
+ run: |
+ ./llvm/utils/release/build-docs.sh -srcdir llvm
+ ./llvm/utils/release/github-upload-release.py --token ${{ github.token }} --release ${{ steps.validate-tag.outputs.release-version }} upload --files *doxygen*.tar.xz
- - name: Build Documentation
- run: |
- ./llvm/utils/release/build-docs.sh -srcdir llvm
- ./llvm/utils/release/github-upload-release.py --token ${{ github.token }} --release ${{ steps.validate-tag.outputs.release-version }} upload --files *doxygen*.tar.xz
+ - name: Clone www-releases
+ if: ${{ !contains(steps.validate-tag.outputs.release-version, 'rc') }}
+ uses: actions/checkout@v3
+ with:
+ repository: ${{ github.repository_owner }}/www-releases
+ ref: main
+ fetch-depth: 0
+ path: www-releases
- - name: Clone www-releases
- if: ${{ !contains(steps.validate-tag.outputs.release-version, 'rc') }}
- uses: actions/checkout@v3
- with:
- repository: ${{ github.repository_owner }}/www-releases
- ref: main
- fetch-depth: 0
- path: www-releases
-
- - name: Upload Release Notes
- if: ${{ !contains(steps.validate-tag.outputs.release-version, 'rc') }}
- run: |
- mkdir -p ../www-releases/${{ steps.validate-tag.outputs.release-version }}
- mv ./docs-build/html-export/* ../www-releases/${{ steps.validate-tag.outputs.release-version }}
- cd ../www-releases
- git add ${{ steps.validate-tag.outputs.release-version }}
- git config user.email "llvmbot@llvm.org"
- git config user.name "llvmbot"
- git commit -a -m "Add ${{ steps.validate-tag.outputs.release-version }} documentation"
- git push https://${{ secrets.WWW_RELEASES_TOKEN }}@github.com/${{ github.repository_owner }}/www-releases main:main
+ - name: Upload Release Notes
+ if: ${{ !contains(steps.validate-tag.outputs.release-version, 'rc') }}
+ run: |
+ mkdir -p ../www-releases/${{ steps.validate-tag.outputs.release-version }}
+ mv ./docs-build/html-export/* ../www-releases/${{ steps.validate-tag.outputs.release-version }}
+ cd ../www-releases
+ git add ${{ steps.validate-tag.outputs.release-version }}
+ git config user.email "llvmbot@llvm.org"
+ git config user.name "llvmbot"
+ git commit -a -m "Add ${{ steps.validate-tag.outputs.release-version }} documentation"
+ git push https://${{ secrets.WWW_RELEASES_TOKEN }}@github.com/${{ github.repository_owner }}/www-releases main:main
diff --git a/.github/workflows/repo-lockdown.yml b/.github/workflows/repo-lockdown.yml
index f7b56907cbaf..91e062fa8cf3 100644
--- a/.github/workflows/repo-lockdown.yml
+++ b/.github/workflows/repo-lockdown.yml
@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
if: github.repository == 'llvm/llvm-project'
steps:
- - uses: dessant/repo-lockdown@v2
+ - uses: dessant/repo-lockdown@v3
with:
process-only: 'prs'
pr-comment: >
diff --git a/.github/workflows/version-check.yml b/.github/workflows/version-check.yml
index 8f89db32a36f..4b6f33a7c812 100644
--- a/.github/workflows/version-check.yml
+++ b/.github/workflows/version-check.yml
@@ -8,14 +8,13 @@ on:
branches:
- 'release/**'
-
jobs:
version_check:
if: github.repository_owner == 'llvm'
runs-on: ubuntu-latest
steps:
- name: Fetch LLVM sources
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
with:
fetch-depth: 0
@@ -25,5 +24,5 @@ jobs:
- name: Version Check
run: |
- version=`grep -o 'LLVM_VERSION_\(MAJOR\|MINOR\|PATCH\) [0-9]\+' llvm/CMakeLists.txt | cut -d ' ' -f 2 | tr "\n" "." | sed 's/.$//g'`
+ version=$(grep -o 'LLVM_VERSION_\(MAJOR\|MINOR\|PATCH\) [0-9]\+' llvm/CMakeLists.txt | cut -d ' ' -f 2 | tr "\n" "." | sed 's/.$//g')
.github/workflows/version-check.py $version