From 5e1194bf8638b16ee15f47f7aeb4359d9615194b Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Fri, 2 May 2025 11:28:27 +0800 Subject: ci: move install deps into another file --- .github/actions/setup_base/action.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/actions/setup_base/action.yml (limited to '.github/actions') diff --git a/.github/actions/setup_base/action.yml b/.github/actions/setup_base/action.yml new file mode 100644 index 0000000..e530333 --- /dev/null +++ b/.github/actions/setup_base/action.yml @@ -0,0 +1,15 @@ +name: "Setup base" + +runs: + using: "composite" + steps: + - name: Install dependencies + shell: bash + run: | + pacman -Syu --noconfirm + pacman -S --noconfirm base-devel git make ninja clang llvm cmake + git clone https://github.com/ArthurSonzogni/FTXUI.git + cd FTXUI + cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build + cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF` + cmake --install build -- cgit v1.2.3