Skip to content

Commit 50f59b7

Browse files
committed
2 parents adea1d5 + 5d77cf6 commit 50f59b7

File tree

2 files changed

+32
-13
lines changed

2 files changed

+32
-13
lines changed

.github/workflows/cmake-linux-x86.yml

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@ jobs:
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/setup-llvm@v0.1.1
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/setup-llvm@v0.1.1
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
@@ -69,5 +86,7 @@ jobs:
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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
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

0 commit comments

Comments
 (0)