Skip to content

Commit aaab1e5

Browse files
committed
Druga próba poprawienia Workflows
1 parent 26ed6ba commit aaab1e5

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/cmake-multi-platform.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,18 @@ jobs:
4848
- uses: actions/checkout@v4
4949

5050
- name: Set reusable strings
51-
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
5251
id: strings
5352
shell: bash
5453
run: |
5554
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
56-
55+
5756
- name: Install dependencies (Linux)
58-
if: matrix.os == 'ubuntu-latest'
57+
if: runner.os == 'Linux'
5958
run: |
6059
sudo apt-get update
61-
sudo apt-get install -y libx11-dev libxpm-dev
60+
sudo apt-get install -y libx11-dev libxpm-dev
6261
6362
- name: Configure CMake
64-
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
65-
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
6663
run: >
6764
cmake -B ${{ steps.strings.outputs.build-output-dir }}
6865
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
@@ -71,7 +68,6 @@ jobs:
7168
-S ${{ github.workspace }}
7269
7370
- name: Build
74-
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
7571
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}
7672

7773
- name: Test

0 commit comments

Comments
 (0)