File tree Expand file tree Collapse file tree 2 files changed +32
-13
lines changed Expand file tree Collapse file tree 2 files changed +32
-13
lines changed Original file line number Diff line number Diff line change 2323 steps :
2424 - uses : actions/checkout@v4
2525
26+ - name : Cache LLVM build
27+ uses : actions/cache@v3
28+ with :
29+ # Adjust these paths to match where LLVM is built and installed
30+ path : |
31+ Asa-LLVM-Compiled/build
32+ /usr/local/llvm
33+ key : llvm-build-${{ hashFiles('Asa-LLVM-Compiled/llvm/**', 'Asa-LLVM-Compiled/build/CMakeCache.txt') }}
34+ restore-keys : |
35+ llvm-build-
36+
2637
2738 - name : Set up Ninja
2839 uses : ashutoshvarma/setup-ninja@93f8b9763516f1fb9b4d9840b12d844bee17791f
@@ -34,23 +45,29 @@ jobs:
3445 version : latest
3546 platform : x64
3647
37- - name : Setup LLVM
38- # You may pin to the exact commit or the version.
39- uses :
ZhongRuoyu/[email protected] 40- with :
41- llvm-version : 20
42-
43-
4448# - name: Setup LLVM
45- # run: |
49+ # # You may pin to the exact commit or the version.
50+ # uses: ZhongRuoyu/[email protected] 51+ # with:
52+ # llvm-version: 20
53+
54+
55+
56+ - name : Setup LLVM
57+ run : |
58+ git clone --depth 1 https://github.com/sam-astro/Asa-LLVM-Compiled ${{github.workspace}}/Asa-LLVM-Compiled
59+ cd Asa-LLVM-Compiled
60+ mkdir build
61+ cmake -S llvm -B build -G Ninja -DLLVM_TARGETS_TO_BUILD="X86" -DCMAKE_BUILD_TYPE=MinSizeRel
62+ cd build
63+ ninja
64+ sudo ninja install
65+ cd ../../
4666# git config --add remote.origin.fetch '^refs/heads/users/*'
4767# git config --add remote.origin.fetch '^refs/heads/revert-*'
48- # git clone --depth 1 https://github.com/llvm/llvm-project.git
4968# cd llvm-project
5069# git fetch origin 7615503409f19ad7e2e2f946437919d0689d4b3e
5170# cmake -S llvm -B build -G Ninja -DLLVM_TARGETS_TO_BUILD="X86" -DCMAKE_BUILD_TYPE=MinSizeRel
52- # cmake --build build
53- # cmake --install build
5471
5572
5673 - name : Configure CMake
6986 working-directory : ${{github.workspace}}/build
7087 # Execute tests defined by the CMake configuration.
7188 # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
72- run : ./${{github.workspace}}/build/asa
89+ run : |
90+ cd ${{github.workspace}}/build
91+ ./asa -V
7392
Original file line number Diff line number Diff line change 88 </picture >
99</div >
1010
11- [ ![ Badge License]] [ License ] ![ Relative date] ( https://img.shields.io/date/1920814400?label=release%20timeline&color=purple ) [ ![ Button Discord]] [ Discord Server ]
11+ [ ![ Badge License]] [ License ] ![ Relative date] ( https://img.shields.io/date/1920814400?label=release%20timeline&color=purple ) ![ GitHub commits difference between two branches/tags/commits ] ( https://img.shields.io/github/commits-difference/sam-astro/Asa?base=main&head=dev&label=commits%20ahead%20dev ) [ ![ Button Discord]] [ Discord Server ]
1212
1313---
1414
You can’t perform that action at this time.
0 commit comments