forked from mingodad/CocoR-CPP
-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (62 loc) · 1.86 KB
/
build-and-deploy-executables.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: build-and-deploy-executables
on:
workflow_dispatch: # workflow can be run manually from the actions tab
schedule:
- cron: '0 3 * * 0' # run workflow at 3am each sunday
jobs:
build:
runs-on: ${{ matrix.os }}
env:
CMAKE_BUILD_TYPE: "${{ matrix.build_type }}"
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- run: ./build.sh
- run: |
if test -f "cocor.exe"; then
mv cocor.exe ./cocor.${{ matrix.os }}-${{ matrix.build_type }}.exe
else
mv cocor ./cocor.${{ matrix.os }}-${{ matrix.build_type }}
fi
- uses: actions/upload-artifact@v3
with:
name: cocor-executables
path: cocor.${{ matrix.os }}-${{ matrix.build_type }}*
if-no-files-found: error
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
build_type: [debug, release]
tag-wip:
runs-on: ubuntu-latest
permissions: write-all
needs: build
steps:
- uses: actions/checkout@v3
- uses: rickstaa/action-create-tag@v1
with:
tag: "wip"
message: "temporary: work in progress"
force_push_tag: true
deploy-executables-wip:
runs-on: ubuntu-latest
permissions: write-all
needs: tag-wip
steps:
- uses: actions/download-artifact@v3
with:
name: cocor-executables
- uses: ncipollo/release-action@v1
with:
tag: "wip"
name: "work in progress"
body: |
## Working on binary stream extensions
Rules for reading binary input chunks
prerelease: true
allowUpdates: true
removeArtifacts: true
artifacts: "*"