CI: Build vulkan version
Some checks are pending
Build eismuliplexer for linux / Build (push) Waiting to run
Some checks are pending
Build eismuliplexer for linux / Build (push) Waiting to run
This commit is contained in:
parent
35d87197dc
commit
b3185e4bc5
3 changed files with 64 additions and 2 deletions
20
.github/actions/linux-setup-vulkan/action.yml
vendored
Normal file
20
.github/actions/linux-setup-vulkan/action.yml
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
name: "Linux - Setup Vulkan SDK"
|
||||||
|
description: "Setup Vulkan SDK for Linux"
|
||||||
|
inputs:
|
||||||
|
path:
|
||||||
|
description: "Installation path"
|
||||||
|
required: true
|
||||||
|
version:
|
||||||
|
description: "Vulkan SDK version"
|
||||||
|
required: true
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
- name: Setup Vulkan SDK
|
||||||
|
id: setup
|
||||||
|
uses: ./.github/actions/unarchive-tar
|
||||||
|
with:
|
||||||
|
url: https://sdk.lunarg.com/sdk/download/${{ inputs.version }}/linux/vulkan_sdk.tar.xz
|
||||||
|
path: ${{ inputs.path }}
|
||||||
|
strip: 1
|
||||||
27
.github/actions/unarchive-tar/action.yml
vendored
Normal file
27
.github/actions/unarchive-tar/action.yml
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
name: "Unarchive tar"
|
||||||
|
description: "Download and unarchive tar into directory"
|
||||||
|
inputs:
|
||||||
|
url:
|
||||||
|
description: "URL of the tar archive"
|
||||||
|
required: true
|
||||||
|
path:
|
||||||
|
description: "Directory to unarchive into"
|
||||||
|
required: true
|
||||||
|
type:
|
||||||
|
description: "Compression type (tar option)"
|
||||||
|
required: false
|
||||||
|
default: "J"
|
||||||
|
strip:
|
||||||
|
description: "Strip components"
|
||||||
|
required: false
|
||||||
|
default: "0"
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
- name: Unarchive into directory
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
mkdir -p ${{ inputs.path }}
|
||||||
|
cd ${{ inputs.path }}
|
||||||
|
curl --no-progress-meter ${{ inputs.url }} | tar -${{ inputs.type }}x --strip-components=${{ inputs.strip }}
|
||||||
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
|
|
@ -7,9 +7,23 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependancies
|
- name: Install dependancies
|
||||||
run: sudo apt update; sudo apt install -y libusb-1.0-0-dev cmake qt6-base-dev qt6-base-dev-tools qt6-tools-dev-tools libqt6widgets6 libqt6multimedia6 qt6-multimedia-dev ffmpeg wget libglx-dev libgl1-mesa-dev qt6-qpa-plugins
|
run: |
|
||||||
|
sudo add-apt-repository -y ppa:kisak/kisak-mesa
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install -y build-essential mesa-vulkan-drivers libusb-1.0-0-dev cmake qt6-base-dev qt6-base-dev-tools qt6-tools-dev-tools libqt6widgets6 libqt6multimedia6 qt6-multimedia-dev ffmpeg wget libglx-dev libgl1-mesa-dev qt6-qpa-plugins
|
||||||
|
- name: Get latest Vulkan SDK version
|
||||||
|
id: vulkan_sdk_version
|
||||||
|
run: |
|
||||||
|
echo "VULKAN_SDK_VERSION=$(curl https://vulkan.lunarg.com/sdk/latest/linux.txt)" >> "$GITHUB_ENV"
|
||||||
|
- name: Setup Vulkan SDK
|
||||||
|
uses: ./.github/actions/linux-setup-vulkan
|
||||||
|
with:
|
||||||
|
path: ./vulkan_sdk
|
||||||
|
version: ${{ env.VULKAN_SDK_VERSION }}
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
submodules: 'true'
|
||||||
- name: Install Appimagetool
|
- name: Install Appimagetool
|
||||||
run: |
|
run: |
|
||||||
wget -c https://github.com/$(wget -q https://github.com/probonopd/go-appimage/releases/expanded_assets/continuous -O - | grep "appimagetool-.*-x86_64.AppImage" | head -n 1 | cut -d '"' -f 2)
|
wget -c https://github.com/$(wget -q https://github.com/probonopd/go-appimage/releases/expanded_assets/continuous -O - | grep "appimagetool-.*-x86_64.AppImage" | head -n 1 | cut -d '"' -f 2)
|
||||||
|
|
@ -23,8 +37,9 @@ jobs:
|
||||||
echo "tag=$(git describe --tags `git rev-list --tags --max-count=1`)" >> $GITHUB_OUTPUT
|
echo "tag=$(git describe --tags `git rev-list --tags --max-count=1`)" >> $GITHUB_OUTPUT
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
|
source ./vulkan_sdk/setup-env.sh
|
||||||
mkdir ${{ github.workspace }}/build; cd ${{ github.workspace }}/build
|
mkdir ${{ github.workspace }}/build; cd ${{ github.workspace }}/build
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install/usr -DGIT_TAG=${{ steps.version.outputs.tag }} ..
|
cmake -DCMAKE_BUILD_TYPE=Release -DGGML_VULKAN=ON -DCMAKE_INSTALL_PREFIX=./install/usr -DGIT_TAG=${{ steps.version.outputs.tag }} ..
|
||||||
make -j $(nproc)
|
make -j $(nproc)
|
||||||
make install
|
make install
|
||||||
- name: Create Appimage
|
- name: Create Appimage
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue