Skip to content

Commit a9523f5

Browse files
Alexander Kurbatovalkurbatov
Alexander Kurbatov
authored andcommitted
build: Correct the CI action
* Move build folder to env. * Reduce verbosity. * Do CI only on pushes to master to reduce the load on environment when I do pull requests from the branches in this repo (not from forks). * Utilize both CPU cores for faster build. * Shorten name of the CI action. Signed-off-by: Alexander Kurbatov <Alexander.Kurbatov@acronis.com>
1 parent 92a3c5a commit a9523f5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/crossplatform-ci.yml renamed to .github/workflows/ci.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
name: Crossplatform CI
1+
name: CI
22

33
on:
44
push:
5+
branches:
6+
- master
57
paths:
68
- 'src/**'
79
- 'contrib/**'
@@ -14,6 +16,7 @@ on:
1416

1517
env:
1618
BUILD_TYPE: Release
19+
BUILD_DIR: ${{github.workspace}}/build
1720

1821
jobs:
1922
build:
@@ -28,9 +31,7 @@ jobs:
2831
submodules: recursive
2932

3033
- name: Configure
31-
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
34+
run: cmake -B ${{env.BUILD_DIR}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
3235

3336
- name: Build
34-
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
35-
env:
36-
VERBOSE: 1
37+
run: cmake --build ${{env.BUILD_DIR}} --config ${{env.BUILD_TYPE}} --parallel 2

0 commit comments

Comments
 (0)