10 description: 'Release Version'
17 description: 'Release Version'
21 RELEASE_TASKS_USER_TOKEN:
22 description: "Secret used to check user permissions."
28 runs-on: ubuntu-latest
31 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
33 ref: "llvmorg-${{ inputs.release-version }}"
35 - name: Install dependencies
38 sudo apt-get install -y python3-setuptools python3-psutil python3-github
40 - name: Check Permissions
42 GITHUB_TOKEN: ${{ github.token }}
43 USER_TOKEN: ${{ secrets.RELEASE_TASKS_USER_TOKEN }}
45 ./llvm/utils/release/./github-upload-release.py --token "$GITHUB_TOKEN" --user ${{ github.actor }} --user-token "$USER_TOKEN" check-permissions
48 uses: aminya/setup-cpp@v1
56 mkdir build && cd build
57 export FILECHECK_OPTS='-dump-input-filter=all -vv -color'
58 cmake ../llvm -DCMAKE_BUILD_TYPE=Release -G Ninja
59 ninja -v -j $(nproc) check-lit
64 # Remove 'dev' suffix from lit version.
65 sed -i 's/ + "dev"//g' lit/__init__.py
66 python3 setup.py sdist bdist_wheel
68 - name: Upload lit to test.pypi.org
69 uses: pypa/gh-action-pypi-publish@release/v1
71 password: ${{ secrets.LLVM_LIT_TEST_PYPI_API_TOKEN }}
72 repository-url: https://test.pypi.org/legacy/
73 packages-dir: llvm/utils/lit/dist/
75 - name: Upload lit to pypi.org
76 uses: pypa/gh-action-pypi-publish@release/v1
78 password: ${{ secrets.LLVM_LIT_PYPI_API_TOKEN }}
79 packages-dir: llvm/utils/lit/dist/