Skip to content

Commit 3860594

Browse files
authored
Create automatic_tagged_release.yml
1 parent ac6b443 commit 3860594

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: "automatic-tagged-release"
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
tagged-release:
10+
name: "Tagged Release"
11+
runs-on: "ubuntu-latest"
12+
13+
steps:
14+
# ...
15+
- name: Install gtest manually
16+
run: sudo apt-get install libgtest-dev
17+
18+
- name: Install benchmark manually
19+
run: |
20+
git clone https://github.com/google/benchmark.git
21+
git clone https://github.com/google/googletest.git benchmark/googletest
22+
cd benchmark
23+
cmake -E make_directory "build"
24+
cmake -E chdir "build" cmake -DCMAKE_BUILD_TYPE=Release ../
25+
cmake --build "build" --config Release
26+
sudo cmake --build "build" --config Release --target install
27+
- uses: actions/checkout@v2
28+
29+
- name: Configure CMake
30+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
31+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
32+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
33+
34+
- name: Build
35+
# Build your program with the given configuration
36+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
37+
38+
- name: Install rpm
39+
run: |
40+
sudo apt-get install rpm
41+
42+
- name: Build Packages
43+
run: |
44+
cd packaging
45+
./make_packaging.sh
46+
47+
- uses: "marvinpinto/action-automatic-releases@latest"
48+
with:
49+
repo_token: "${{ secrets.PERSONAL_TOKEN }}"
50+
prerelease: false
51+
files: |
52+
LICENSE
53+
README.md
54+
packaging/deb/*.deb
55+
packaging/rpm/RPMS/noarch/*.noarch.rpm
56+
packaging/*.tar.bz2
57+
58+

0 commit comments

Comments
 (0)