-
Notifications
You must be signed in to change notification settings - Fork 11
72 lines (61 loc) · 1.7 KB
/
Copy pathend2end.yml
File metadata and controls
72 lines (61 loc) · 1.7 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Test Result End2End
on:
push:
branches:
- "**"
- "!dependabot/**"
- "!xgopilot/**"
pull_request:
branches: [ "**" ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
os:
- macos-15-intel
- macos-latest
- ubuntu-latest
- ubuntu-24.04-arm
llvm: [19]
llgo: [v0.13.0]
go: [1.23]
fail-fast: false
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v6
- name: Setup llcppg environment
uses: ./.github/actions/setup-llcppg
with:
go: ${{ matrix.go }}
llvm: ${{ matrix.llvm }}
llgo: ${{ matrix.llgo }}
- name: Install Conan
if: startsWith(matrix.os, 'macos')
run: brew install conan
- name: Install Conan
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get install -y python3 python3-pip
python3 -m pip install conan
- name: Set up Conan
run: conan profile detect
- name: Setup Log directory
run: echo "LLCPPG_TEST_LOG_DIR=$(mktemp -d)" >> $GITHUB_ENV
- name: Turn off filemode diff
run: git config --global core.fileMode false
- name: Test End2End
working-directory: _cmptest
run: |
# increase the test timeout to avoid conan installation timeout occasionally
go test -v -timeout 60m .
- name: Upload Logs to Artifacts
uses: actions/upload-artifact@v7
if: always()
with:
name: ${{matrix.os}}-log
path: ${{env.LLCPPG_TEST_LOG_DIR}}
retention-days: 1
include-hidden-files: true