This repository was archived by the owner on Nov 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
137 lines (129 loc) · 3.86 KB
/
cmake.yml
File metadata and controls
137 lines (129 loc) · 3.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
name: Build
on:
push:
branches: [ main ]
paths-ignore:
- '**.md'
pull_request:
branches: [ main ]
paths-ignore:
- '**.md'
env:
# Customize the CMake build type here (Release, Debug, Distribution)
BUILD_TYPE: Release
VULKAN_VERSION: 1.3.224.1
jobs:
linux-clang:
runs-on: ubuntu-latest
name: Linux Clang
strategy:
fail-fast: true
matrix:
build_type: [Release]
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.12
with:
cmake-version: 3.27
- name: Install Vulkan SDK
uses: humbletim/install-vulkan-sdk@v1.1.1
with:
version: ${{env.VULKAN_VERSION}}
cache: true
- name: Install GTK
run: |
sudo apt-get update
sudo apt install build-essential libgtk-3-dev
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_COMPILER=clang++
- name: Build
run: cmake --build ./build --config ${{env.BUILD_TYPE}}
- name: "Generate Release"
run: |
wget https://github.com/Hatrickek/OxArena/releases/download/pre-release/Assets.zip
- name: "Publish Release"
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: |
./build/OxArena/Release/OxArena
./*.zip
msvc_cl:
runs-on: windows-latest
name: Visual Studio CL
strategy:
fail-fast: true
matrix:
build_type: [Release]
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Vulkan SDK
uses: humbletim/install-vulkan-sdk@v1.1.1
with:
version: ${{env.VULKAN_VERSION}}
cache: true
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1.12.1
with:
arch: ${{ matrix.arch }}
vsversion: 2022
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.3
- name: Configure CMake
run: cmake -S . -B ${{github.workspace}}/build -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: msbuild build\OxArena.sln /property:Configuration=${{env.BUILD_TYPE}}
- name: "Generate Release"
run: |
C:\msys64\usr\bin\wget.exe https://github.com/Hatrickek/OxArena/releases/download/pre-release/Assets.zip
- name: "Publish Release"
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: |
./build/OxArena/Release/*.exe
./*.zip
#mac_clang:
# runs-on: macos-latest
# name: Mac Clang
# strategy:
# fail-fast: false
# matrix:
# build_type: [Release]
#
# steps:
# - name: Checkout Code
# uses: actions/checkout@v3
# with:
# submodules: recursive
# - name: Install Vulkan SDK
# uses: humbletim/install-vulkan-sdk@v1.1.1
# with:
# version: ${{env.VULKAN_VERSION}}
# cache: true
# - name: Configure CMake
# run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
# - name: Build
# run: cmake --build ./build --config ${{env.BUILD_TYPE}}
# - name: "Release"
# uses: marvinpinto/action-automatic-releases@latest
# with:
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
# automatic_release_tag: "latest"
# prerelease: true
# title: "Development Build"
# files: |
# ${{github.workspace}}/build/OxArena/Release/OxArena