-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (32 loc) · 954 Bytes
/
build_pc.yml
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
name: build-pc
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
preset: [imgui, imgui-dev, sdl2, sdl2-dev, benchmark]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install gcc-12 (ubuntu)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa -y
sudo apt-get update
sudo apt upgrade -y
sudo apt install gcc-12 g++-12 cmake libsdl2-dev libminizip-dev -y
sudo unlink /usr/bin/gcc
sudo unlink /usr/bin/g++
sudo ln -s /usr/bin/gcc-12 /usr/bin/gcc
sudo ln -s /usr/bin/g++-12 /usr/bin/g++
- name: Configure CMake
run: |
cmake --preset ${{ matrix.preset }}
- name: Build
run: cmake --build --preset ${{ matrix.preset }} --parallel 4