-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (56 loc) · 1.58 KB
/
Releaser.yml
File metadata and controls
74 lines (56 loc) · 1.58 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Releaser
on:
push:
tags:
- "*"
env:
APP_NAME: viterbi
jobs:
test_app:
name: Test app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build app
run: |
g++ -std=c++17 src/viterbi_test.cpp src/ConvolutionalCoding.cpp src/ViterbiDecoding.cpp -o viterbi_test -I include
./viterbi_test
build_app:
needs: [test_app]
name: Build app for all os
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- name: Bulding app
run:
g++ -std=c++17 src/main.cpp src/ConvolutionalCoding.cpp src/BinarySymmetricChannel.cpp src/ViterbiDecoding.cpp -o ${{env.APP_NAME}}_${{matrix.os}} -I include
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.2
with:
name: ${{env.APP_NAME}}_matrix
path: |
${{env.APP_NAME}}_${{matrix.os}}
${{env.APP_name}}_${{matrix.os}}.exe
retention-days: 4
make_release:
needs: [build_app]
name: Make release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: ${{env.APP_NAME}}_matrix
- uses: ncipollo/release-action@v1
with:
removeArtifacts: true
artifacts: "viterbi*"
bodyFile: ReleaseNotes.md