File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed
Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Bundle Build
2+
3+ on :
4+ push :
5+
6+ pull_request :
7+ branches : [ "main" ]
8+
9+ # Allows you to run this workflow manually from the Actions tab
10+ workflow_dispatch :
11+
12+ env :
13+ parallel_processes : 6 # A good default counts is: available Threads + 2
14+
15+ jobs :
16+ build :
17+ runs-on : windows-latest
18+ strategy :
19+ matrix :
20+ build_type : ["MinSizeRel"]
21+
22+ steps :
23+ - run : git config --global core.autocrlf input # Workaround: https://github.com/msys2/setup-msys2?tab=readme-ov-file#actionscheckout-and-line-endings
24+ - uses : actions/checkout@v4
25+
26+ - name : Requirements
27+ uses : msys2/setup-msys2@v2
28+ with :
29+ update : true
30+ msystem : UCRT64
31+ install : >-
32+ mingw-w64-ucrt-x86_64-qt6
33+ mingw-w64-ucrt-x86_64-zlib
34+
35+ - name : Configure CMake
36+ # Choose CMakeLists.text from a specific source directory with -S.
37+ # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
38+ # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
39+ run : |
40+ cmake -S ${{github.workspace}} -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}}
41+
42+ - name : Build
43+ # Build your program with the given configuration
44+ run : |
45+ cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} -j ${{env.parallel_processes}} --target stellarium
46+
47+ - name : Deploy Artifact
48+ uses : actions/upload-artifact@v4
49+ with :
50+ name : stellarium-windows-${{matrix.build_type}}
51+ path : ${{github.workspace}}/build/src
52+ retention-days : 3 # Don't store to long as stellarium builds are large
You can’t perform that action at this time.
0 commit comments