Skip to content

Commit bde3d63

Browse files
Test github workflow 2
1 parent 93e8d26 commit bde3d63

1 file changed

Lines changed: 36 additions & 25 deletions

File tree

.github/workflows/build.yml

Lines changed: 36 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,56 @@
1-
name: Build EclipseGS
1+
name: Build EclipseGS
22

33
on:
44
push:
5-
branches:
6-
- main
5+
branches: [main]
76
pull_request:
8-
branches:
9-
- main
7+
branches: [main]
8+
9+
env:
10+
BUILD_TYPE: Release
1011

1112
jobs:
13+
1214
build-linux:
1315
runs-on: ubuntu-latest
16+
1417
steps:
15-
- name: Checkout code
16-
uses: actions/checkout@v3
18+
- uses: actions/checkout@v3
1719

18-
- name: Install dependencies
20+
- name: Install system packages
1921
run: |
2022
sudo apt-get update
21-
sudo apt-get install -y cmake g++ qt6-base-dev libsdl2-dev
23+
sudo apt-get install -y \
24+
cmake g++ make \
25+
qt6-base-dev qt6-tools-dev \
26+
libsdl2-dev
2227
23-
- name: Configure project
24-
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
28+
- name: Configure CMake
29+
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
2530

26-
- name: Build project
27-
run: cmake --build build --config Release
31+
- name: Build
32+
run: cmake --build build --config $BUILD_TYPE --parallel
2833

2934
build-windows:
3035
runs-on: windows-latest
31-
steps:
32-
- name: Checkout code
33-
uses: actions/checkout@v3
3436

35-
- name: Install dependencies
37+
steps:
38+
- uses: actions/checkout@v3
39+
40+
- name: Install Qt
41+
uses: jurplel/install-qt-action@v4
42+
with:
43+
version: '6.7.2'
44+
host: 'windows'
45+
target: 'desktop'
46+
arch: 'win64_msvc2022_64'
47+
tools: 'tools_windeployqt'
48+
49+
- name: Configure CMake (MSVC 2022)
3650
run: |
37-
choco install cmake --installargs '"ADD_CMAKE_TO_PATH=System"'
38-
choco install qt6
39-
choco install sdl2
40-
41-
- name: Configure project
42-
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
51+
cmake -S . -B build ^
52+
-G "Visual Studio 17 2022" ^
53+
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
4354
44-
- name: Build project
45-
run: cmake --build build --config Release
55+
- name: Build
56+
run: cmake --build build --config %BUILD_TYPE% --parallel

0 commit comments

Comments
 (0)