File tree 2 files changed +68
-0
lines changed
2 files changed +68
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : build
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
+
9
+ env :
10
+ # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
11
+ BUILD_TYPE : Release
12
+
13
+ jobs :
14
+ build :
15
+ # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
16
+ # You can convert this to a matrix build if you need cross-platform coverage.
17
+ # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
18
+ runs-on : ubuntu-latest
19
+
20
+ steps :
21
+ - uses : actions/checkout@v3
22
+
23
+ - name : Install dependencies
24
+ run : sudo apt-get install gcc ninja-build cmake
25
+
26
+ - name : CMake
27
+ # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
28
+ # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
29
+ run : cmake -G Ninja -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
30
+
31
+ - name : Build
32
+ # Build your program with the given configuration
33
+ run : ninja -C ${{github.workspace}}/build
Original file line number Diff line number Diff line change
1
+ on :
2
+ release :
3
+ types : [created]
4
+
5
+ env :
6
+ # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
7
+ BUILD_TYPE : Release
8
+
9
+ jobs :
10
+ build :
11
+ # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
12
+ # You can convert this to a matrix build if you need cross-platform coverage.
13
+ # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
14
+ runs-on : ubuntu-latest
15
+
16
+ steps :
17
+ - uses : actions/checkout@v3
18
+
19
+ - name : Install dependencies
20
+ run : sudo apt-get install gcc ninja-build cmake
21
+
22
+ - name : Generate the artifacts
23
+ # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
24
+ # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
25
+ run : |
26
+ cmake -G Ninja -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
27
+ ninja -C ${{github.workspace}}/build
28
+
29
+ - name : Upload the artifacts
30
+ uses : skx/github-action-publish-binaries@master
31
+ env :
32
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
+ with :
34
+ args : ${{github.workspace}}/build/daylight
35
+
You can’t perform that action at this time.
0 commit comments