File tree Expand file tree Collapse file tree 1 file changed +71
-0
lines changed
Expand file tree Collapse file tree 1 file changed +71
-0
lines changed Original file line number Diff line number Diff line change 1+ # Github Actions configuration file
2+ name : Build
3+
4+ on :
5+ release :
6+ types :
7+ - published
8+
9+ jobs :
10+ build :
11+ runs-on : ${{ matrix.config.os }}
12+ strategy :
13+ fail-fast : false
14+ matrix :
15+ config :
16+ - os : windows-latest
17+ package : ZIP
18+
19+ - os : ubuntu-20.04
20+ package : ZIP
21+
22+ - os : macos-13
23+ package : ZIP
24+
25+ - os : macos-14
26+ package : ZIP
27+ configure_args : " -DCPACK_SYSTEM_NAME=Darwin-arm64"
28+
29+ - os : ubuntu-20.04
30+ package : DEB
31+
32+ - os : ubuntu-20.04
33+ package : RPM
34+
35+ steps :
36+ - name : Setup Windows/MSVC
37+ if : runner.os == 'Windows'
38+ uses : ilammy/msvc-dev-cmd@v1
39+ with :
40+ arch : amd64_x86
41+
42+ - name : Setup Linux/gcc-8
43+ if : runner.os == 'Linux'
44+ run : |
45+ sudo apt-get install g++-8
46+ echo 'CC=gcc-8' >> $GITHUB_ENV
47+ echo 'CXX=g++-8' >> $GITHUB_ENV
48+
49+ - name : Checkout
50+ uses : actions/checkout@v2
51+ with :
52+ fetch-depth : 0
53+ submodules : recursive
54+
55+ - name : Configure CMake
56+ run : cmake -B ${{github.workspace}}/build -DCMAKE_INSTALL_PREFIX=dist ${{matrix.config.configure_args}}
57+ - name : Build
58+ run : cmake --build ${{github.workspace}}/build --config Release
59+ - name : Install
60+ run : cmake --install ${{github.workspace}}/build --config Release
61+ - name : Package
62+ run : cpack -G ${{ matrix.config.package }} --config ${{github.workspace}}/build/CPackConfig.cmake
63+
64+ - name : Upload to Github release
65+ uses : xresloader/upload-to-github-release@v1
66+ env :
67+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
68+ with :
69+ file : " *.zip;*.tar.gz;*.deb;*.rpm"
70+ tags : true
71+ draft : false
You can’t perform that action at this time.
0 commit comments