Skip to content

Commit

Permalink
install libc++ on linux ci
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Jan 12, 2025
1 parent c9f6307 commit a63b998
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Prepare
run: |
sudo apt update
sudo apt install -y ruby ruby-dev rubygems build-essential llvm
sudo apt install -y ruby ruby-dev rubygems build-essential llvm libc++-dev
sudo apt install -y libgl1-mesa-dev libglu1-mesa-dev
- name: Tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux_luajit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Prepare
run: |
sudo apt update
sudo apt install -y build-essential llvm
sudo apt install -y build-essential llvm libc++-dev
sudo apt install -y libgl1-mesa-dev libglu1-mesa-dev
- name: Tests
Expand Down
8 changes: 4 additions & 4 deletions tests/projects/c++/modules/test_base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ function main(t)
end
local clang = find_tool("clang", {version = true})
if clang and clang.version and semver.compare(clang.version, "14.0") >= 0 then
os.vexec("xmake clean -a")
os.vexec("xmake f --toolchain=clang -c --yes")
os.exec("xmake clean -a")
os.exec("xmake f --toolchain=clang -c --yes")
_build()
os.vexec("xmake clean -a")
os.vexec("xmake f --toolchain=clang --runtimes=c++_shared -c --yes")
os.exec("xmake clean -a")
os.exec("xmake f --toolchain=clang --runtimes=c++_shared -c --yes")
_build()
end
end
Expand Down

0 comments on commit a63b998

Please sign in to comment.