Skip to content

Commit 791e75d

Browse files
chore: simplify CMake configuration steps in GitHub Actions workflow
1 parent e1a8151 commit 791e75d

1 file changed

Lines changed: 7 additions & 36 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,8 @@ jobs:
1717
run: |
1818
sudo apt-get update
1919
sudo apt-get install -y build-essential cmake g++-14 libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev
20-
- name: Setup Compiler Cache
21-
uses: hendrikmuhs/ccache-action@v1.2
22-
with:
23-
key: ubuntu-ccache-${{ github.ref_name }}
24-
restore-keys: |
25-
ubuntu-ccache-
26-
max-size: 500M
2720
- name: Configure CMake
28-
run: >
29-
cmake -B ${{ github.workspace }}/build -S .
30-
-DCMAKE_BUILD_TYPE=Release
31-
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
32-
-DCMAKE_C_COMPILER_LAUNCHER=ccache
21+
run: cmake -B ${{ github.workspace }}/build -S . -DCMAKE_BUILD_TYPE=Release
3322
env:
3423
CXX: g++-14
3524
- name: Build Target
@@ -43,19 +32,10 @@ jobs:
4332
steps:
4433
- name: Checkout repository
4534
uses: actions/checkout@v6
46-
- name: Setup Compiler Cache
47-
uses: hendrikmuhs/ccache-action@v1.2
48-
with:
49-
key: win-ccache-${{ github.ref_name }}
50-
restore-keys: |
51-
win-ccache-
52-
max-size: 500M
5335
- name: Configure CMake
54-
run: >
55-
cmake -B ${{ github.workspace }}/build -S .
56-
-DCMAKE_BUILD_TYPE=Release
57-
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
58-
-DCMAKE_C_COMPILER_LAUNCHER=ccache
36+
run: cmake -B ${{ github.workspace }}/build -S . -DCMAKE_BUILD_TYPE=Release
37+
- name: Build Target
38+
run: cmake --build ${{ github.workspace }}/build --config Release
5939
- name: Verify Executable Production
6040
shell: pwsh
6141
run: Test-Path "${{ github.workspace }}/build/Release/vectorjs.exe"
@@ -66,18 +46,9 @@ jobs:
6646
steps:
6747
- name: Checkout repository
6848
uses: actions/checkout@v6
69-
- name: Setup Compiler Cache
70-
uses: hendrikmuhs/ccache-action@v1.2
71-
with:
72-
key: mac-ccache-${{ github.ref_name }}
73-
restore-keys: |
74-
mac-ccache-
75-
max-size: 500M
7649
- name: Configure CMake
77-
run: >
78-
cmake -B ${{ github.workspace }}/build -S .
79-
-DCMAKE_BUILD_TYPE=Release
80-
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
81-
-DCMAKE_C_COMPILER_LAUNCHER=ccache
50+
run: cmake -B ${{ github.workspace }}/build -S . -DCMAKE_BUILD_TYPE=Release
51+
- name: Build Target
52+
run: cmake --build ${{ github.workspace }}/build --config Release
8253
- name: Verify Executable Production
8354
run: ls -l ${{ github.workspace }}/build/vectorjs

0 commit comments

Comments
 (0)