Add build workflow
This commit is contained in:
55
.gitea/workflows/build_pc.yml
Normal file
55
.gitea/workflows/build_pc.yml
Normal file
@@ -0,0 +1,55 @@
|
||||
name: "Build OpenVulkano"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
env:
|
||||
BUILD_TYPE: Release
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build desktop
|
||||
runs-on: ${{matrix.config.os}}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
config:
|
||||
- {
|
||||
name: "Windows",
|
||||
os: windows_x64
|
||||
}
|
||||
- {
|
||||
name: "Linux",
|
||||
os: ubuntu-latest
|
||||
}
|
||||
# - {
|
||||
# name: "macOS",
|
||||
# os: macos-latest
|
||||
# }
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
- name: Install Vulkan SDK
|
||||
if: matrix.config.os == 'ubuntu-latest'
|
||||
uses: humbletim/install-vulkan-sdk@v1.1.1
|
||||
with:
|
||||
version: 1.3.250.1
|
||||
cache: true
|
||||
- name: Install Dev Packages
|
||||
if: matrix.config.os == 'ubuntu-latest'
|
||||
run: sudo apt update && sudo apt install -y extra-cmake-modules libwayland-dev libxkbcommon-dev xorg-dev libarchive-dev libjpeg-turbo8-dev
|
||||
- name: Configure CMake
|
||||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||
- name: Build
|
||||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
||||
- name: Test
|
||||
working-directory: ${{github.workspace}}/build
|
||||
run: ctest -C ${{env.BUILD_TYPE}}
|
||||
|
||||
#TODO archive executables
|
||||
Reference in New Issue
Block a user