-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (39 loc) · 1.09 KB
/
Copy pathbuild-linux.yml
File metadata and controls
50 lines (39 loc) · 1.09 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
# This workflow will build the project in Linux
name: Build (Linux)
on:
pull_request:
push:
branches:
- main
- master
paths-ignore:
- 'README.md'
- 'LICENSE'
- 'screenshots/*'
- 'guides/*'
- 'wix/*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Update APT registry
run: sudo apt update
- name: Install C++ compiler
run: sudo apt install -y build-essential
- name: Install CMake
run: sudo apt install -y cmake
- name: Install C++ Dependencies
run: sudo apt install -y zlib1g-dev libzip-dev zipcmp zipmerge ziptool libgtk-3-dev libglew-dev libwxgtk3.2-dev
- name: Cache compilation files
uses: actions/cache@v3
with:
path: |
./release/
key: cache-release-${{ hashFiles('**/CMakeLists.txt', './vcpkg.json') }}
restore-keys: |
cache-release-
- name: CMAKE - Configure
run: cmake -DCMAKE_BUILD_TYPE=Release -Ssrc -Brelease
- name: CMAKE - Build
run: cmake --build release --config Release