Skip to content

Commit dfd9257

Browse files
mejorar github actions
1 parent 80a5839 commit dfd9257

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/cmake-ci.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
name: CMake Continuo Integration
1+
name: CMake Continuous Integration
22

33
on:
44
push:
55
branches: [ main ]
6-
76
pull_request:
87
branches: [ main ]
98

@@ -14,18 +13,17 @@ env:
1413
jobs:
1514

1615
build-linux-x64:
17-
1816
runs-on: ubuntu-latest
1917

2018
steps:
2119
- name: Checkout Github Actions
22-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
2321

2422
- name: Update repository
2523
run: sudo apt update
2624

2725
- name: Install gcc 14
28-
run: sudo apt install gcc-14 g++-14
26+
run: sudo apt install -y gcc-14 g++-14
2927

3028
- name: View version gcc 14
3129
run: gcc-14 --version
@@ -35,8 +33,8 @@ jobs:
3533
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 100
3634
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-14 100
3735
38-
#- name: Configure CMake
39-
# run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
36+
- name: Configure CMake
37+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
4038

4139
- name: Build
4240
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
@@ -46,12 +44,11 @@ jobs:
4644
run: ctest -C ${{env.BUILD_TYPE}}
4745

4846
build-windows-x64:
49-
5047
runs-on: windows-latest
5148

5249
steps:
5350
- name: Checkout Github Actions
54-
uses: actions/checkout@v2
51+
uses: actions/checkout@v4
5552

5653
- name: Configure CMake
5754
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

0 commit comments

Comments
 (0)