mirror of
https://github.com/clangd/clangd.git
synced 2025-04-19 23:22:59 +00:00
Introduce a bit of Perl
This commit is contained in:
parent
7596795ae9
commit
75e838a764
21
.github/workflows/autobuild.yaml
vendored
21
.github/workflows/autobuild.yaml
vendored
@ -13,30 +13,22 @@ jobs:
|
||||
steps:
|
||||
- name: Find LLVM commit
|
||||
run: |
|
||||
grep -m 1 -o "llvm-project@[[:xdigit:]]\{40,\}" << EOF | cut -f 2 -d@ > commit
|
||||
${{ github.event.release.body }}
|
||||
EOF
|
||||
- name: Find Repository
|
||||
run: |
|
||||
grep -m 1 -o "\w*/llvm-project@[[:xdigit:]]\{40,\}" << EOF | cut -f 1 -d@ > repo
|
||||
${{ github.event.release.body }}
|
||||
perl -ne 'print "LLVM_REPO=$1\nLLVM_COMMIT=$2\n" if /(\w+)\/llvm-project@([[:xdigit:]]{4,})/' > commit.env <<EOF
|
||||
${{ gthub.event.release.body }}
|
||||
EOF
|
||||
- name: Check LLVM commit was founud
|
||||
run: grep LLVM_REPO commit.env
|
||||
- name: Mark as draft
|
||||
run: >
|
||||
curl --fail --show-error -XPATCH
|
||||
"-HAuthorization: Bearer ${{ secrets.RELEASE_TOKEN }}"
|
||||
"https://api.github.com/repos/${{ github.repository }}/releases/${{ github.event.release.id }}"
|
||||
"-d" '{"draft": true}'
|
||||
- name: Persist release info for commit
|
||||
- name: Persist release info
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: release
|
||||
path: commit
|
||||
- name: Persist release info for repository
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: release
|
||||
path: repo
|
||||
# Build clangd using CMake/Ninja.
|
||||
#
|
||||
# This step is a template that runs on each OS, build config varies slightly.
|
||||
@ -135,8 +127,7 @@ jobs:
|
||||
with: { name: release }
|
||||
- name: Set target commit
|
||||
run: |
|
||||
echo "LLVM_COMMIT=$(cat release/commit)" >> $GITHUB_ENV
|
||||
echo "LLVM_REPO=$(cat release/repo)" >> $GITHUB_ENV
|
||||
cat release/commit.env >> $GITHUB_ENV
|
||||
echo "CLANGD_DIR=clangd_${{ github.event.release.tag_name }}" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
- name: Clone LLVM
|
||||
|
Loading…
Reference in New Issue
Block a user