Skip to content

Commit

Permalink
ci: Fix ubuntu build.
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepy-monax committed Jan 22, 2025
1 parent 271c81b commit 2f21a2b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 3 additions & 1 deletion ck
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ if [ "$1" == "tools" -a "$2" == "setup" ]; then
exit 0
fi

if is_darwin; then
if is_ubuntu; then
source ./meta/scripts/env-ubuntu.sh
elif is_darwin; then
source ./meta/scripts/env-darwin.sh
fi

Expand Down
3 changes: 3 additions & 0 deletions meta/scripts/env-ubuntu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

export PATH=/usr/lib/llvm-19/bin:$PATH
8 changes: 3 additions & 5 deletions meta/scripts/setup-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

set -e

export DEBIAN_FRONTEND=noninteractive

apt update
apt install build-essential git ninja-build libsdl2-dev nasm gcc-multilib qemu-system-x86 mtools liburing-dev ccache jq
bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" llvm 19
apt-get update -y --no-install-recommends
apt-get install -y --no-install-recommends build-essential git ninja-build libsdl2-dev nasm liburing-dev ccache jq
bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" llvm 19 all

0 comments on commit 2f21a2b

Please sign in to comment.