-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (41 loc) · 1.54 KB
/
integrate_llvmproject.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# This workflow updates the repository for recent changes to llvm-project.
name: Integrate Monorepo Changes
on:
# Run the workflow every day (9am PST) to pull in any changes from llvm-project.
schedule:
- cron: '0 16 * * *'
# Allows for running this workflow manually from the Actions tab.
workflow_dispatch:
permissions:
contents: write
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Timestamp Begin
run: date
- uses: actions/checkout@v2
- name: Clone llvm-project
uses: actions/checkout@v2
with:
repository: llvm/llvm-project
ref: 'main'
path: 'llvm_src'
- name: Update extension source
run: |
cp -r llvm_src/lldb/tools/lldb-dap/.vscode ./
cp -r llvm_src/lldb/tools/lldb-dap/src-ts ./
cp -r llvm_src/lldb/tools/lldb-dap/syntaxes ./
cp llvm_src/lldb/LICENSE.TXT ./
cp llvm_src/lldb/tools/lldb-dap/.gitignore ./
cp llvm_src/lldb/tools/lldb-dap/*.md ./
cp llvm_src/lldb/tools/lldb-dap/*.json ./
- name: Commit updated source
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add -- . ':!llvm_src/'
git commit -m "Integrate from LLVM at llvm/llvm-project@$(cd llvm_src/ && (git rev-parse HEAD | head -1) && cd ..)" -a || echo "Extension source is already up-to-date"
git push || 0
- name: Timestamp End
run: date