Skip to content

Commit a3df36d

Browse files
committed
builddd
1 parent 57e2419 commit a3df36d

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ name: Build and Release Raylib Project
22

33
on:
44
push:
5+
branches:
6+
- main
57

68
jobs:
79
build_and_release:
810
runs-on: ${{ matrix.os }}
911
strategy:
1012
matrix:
11-
os: [ubuntu-latest, windows-latest]
13+
os: [ubuntu-latest, windows-latest, macos-latest]
1214

1315
steps:
1416
# 1. Pobranie kodu źródłowego
@@ -26,19 +28,21 @@ jobs:
2628
- name: Install dependencies (Windows)
2729
if: runner.os == 'Windows'
2830
run: |
31+
# Instalacja Visual Studio Build Tools z kompilatorami C++
32+
- name: Install Visual Studio Build Tools
33+
run: |
34+
# Pobranie i zainstalowanie narzędzi Visual Studio Build Tools
35+
choco install visualstudio2019buildtools -y
36+
2937
# Instalacja CMake
3038
curl -LO https://github.com/Kitware/CMake/releases/download/v3.27.2/cmake-3.27.2-windows-x86_64.msi
3139
msiexec /i cmake-3.27.2-windows-x86_64.msi /quiet /norestart
32-
40+
3341
# Instalacja Ninja
3442
curl -LO https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-win.zip
3543
unzip ninja-win.zip -d C:\ninja
3644
setx PATH "%PATH%;C:\ninja"
3745
38-
# Instalacja Visual Studio Build Tools (z kompilatorami C++)
39-
# Jeśli nie jest już zainstalowane, instalacja narzędzi Visual Studio
40-
choco install visualstudio2019buildtools -y
41-
4246
# 4. Instalacja zależności dla macOS
4347
- name: Install dependencies (macOS)
4448
if: runner.os == 'macOS'
@@ -48,12 +52,12 @@ jobs:
4852
# 5. Konfiguracja projektu
4953
- name: Configure CMake
5054
run: |
51-
cmake -B build -G Ninja
55+
cmake -B build -G "Visual Studio 16 2019"
5256
5357
# 6. Kompilacja projektu
5458
- name: Build project
5559
run: |
56-
cmake --build build
60+
cmake --build build --config Release
5761
5862
# 7. Pakowanie wyników w ZIP
5963
- name: Package the build

0 commit comments

Comments
 (0)