-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (46 loc) · 1.14 KB
/
bump-version.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
name: Bump Packio version
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test-packio:
name: Build and Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-13, macos-14]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build C++ project and run C++ tests
run: |
mkdir build && cd build
cmake -DPACKIO_BUILD_TESTS=ON .. && cmake --build .
ctest .
cd ..
bump_version:
runs-on: ubuntu-latest
name: "Bump version and create changelog with commitizen"
needs:
- test-packio
permissions:
contents: write
id-token: write
steps:
- name: Check out
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ github.token }}
- id: cz
name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
github_token: ${{ github.token }}
- name: Print Version
run: echo "Bumped to version ${{ steps.cz.outputs.version }}"