Skip to content

Commit 75c2e50

Browse files
committed
github actions: switch to llvm automated install script
1 parent 6475c9b commit 75c2e50

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ jobs:
1111
fetch-depth: 0
1212
- name: Install OS dependancies
1313
run: |
14-
sudo apt update
15-
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
16-
sudo add-apt-repository -y "deb https://apt.llvm.org/jammy/ llvm-toolchain-jammy main"
1714
sudo apt-get update
1815
sudo apt-get upgrade
19-
sudo apt install git make cmake ninja-build ruby clang lld xorriso mtools qemu-system
16+
sudo apt-get install git make cmake ninja-build ruby xorriso mtools qemu-system wget
17+
wget https://apt.llvm.org/llvm.sh
18+
chmod +x llvm.sh
19+
sudo ./llvm.sh 18
2020
- name: build
21-
run: make
21+
run: |
22+
cmake -Bbuild -GNinja -DCMAKE_C_COMPILER=clang-18 -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=toolchain/CMake/CMakeToolchain.txt
23+
cmake --build build
2224
- name: Upload ISO
2325
uses: actions/upload-artifact@v2
2426
with:

0 commit comments

Comments
 (0)