Skip to content

Commit 8ea03a5

Browse files
committed
correct linux build for branches
1 parent ba4a6ef commit 8ea03a5

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,20 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- name: Checkout Repository
16+
uses: actions/checkout@v4
1617
with:
1718
submodules: recursive
1819

19-
- name: Upgrade CMake
20+
- name: Install Dependencies
2021
run: |
21-
brew update
22-
brew install cmake
23-
cmake --version
22+
sudo apt update
23+
sudo apt-get install libx11-dev libfreetype-dev libfontconfig1-dev libasound2-dev libxrandr-dev libxinerama-dev libxcursor-dev
2424
25-
- name: Create Build Environment
26-
run: cmake -E make_directory ${{github.workspace}}/build
27-
28-
- name: Configure CMake
29-
shell: bash
30-
working-directory: ${{github.workspace}}/build
31-
run: cmake $GITHUB_WORKSPACE -G "Xcode"
25+
- name: Generate Build Files
26+
run: |
27+
cmake -G "Unix Makefiles" -DBUILD_STANDALONE=OFF -DCMAKE_BUILD_TYPE=Release -S . -B ./build
3228
33-
- name: Build
34-
working-directory: ${{github.workspace}}/build
35-
shell: bash
36-
run: cmake --build . --config $BUILD_TYPE
29+
- name: Build Project
30+
run: |
31+
cmake --build ./build --config Release

0 commit comments

Comments
 (0)