-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.37 KB
/
release-build.yml
File metadata and controls
54 lines (47 loc) · 1.37 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
name: Build and Release
on:
push:
branches:
- main
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake libgl1-mesa-dev libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libwayland-dev libxkbcommon-dev libcurl4-openssl-dev
- name: Configure and build (Linux)
if: runner.os == 'Linux'
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make
- name: Configure and build (Windows)
if: runner.os == 'Windows'
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release
- name: Upload artifact (Linux)
if: runner.os == 'Linux'
uses: actions/upload-artifact@v6
with:
name: EntropyVisualizer (Linux)
path: build/EntropyVisualizer
- name: Upload artifact (Windows)
if: runner.os == 'Windows'
uses: actions/upload-artifact@v6
with:
name: EntropyVisualizer (Windows)
path: build/Release/EntropyVisualizer.exe