-
Notifications
You must be signed in to change notification settings - Fork 1
98 lines (98 loc) · 3.86 KB
/
release_capi.yml
File metadata and controls
98 lines (98 loc) · 3.86 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
on:
release:
types: [published]
workflow_run:
workflows:
- Release
types:
- completed
pull_request:
types: [labeled]
name: Append C-API artifact to latest release
jobs:
deploy_linux_binaries:
if: ${{ github.event.action == 'completed' || github.event.label.name == 'test-release-process' || (github.event_name == 'release' && github.event.action == 'published') }}
runs-on: ubuntu-22.04
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- id: latest-release
uses: pozetroninc/github-action-get-latest-release@v0.7.0
with:
repository: ${{ github.repository }}
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1.0.6
with:
toolchain: stable
profile: minimal
- uses: Swatinem/rust-cache@v2.2.1
- run: cargo build --release --package graphannis-capi
- run: mv target/release/libgraphannis_capi.so target/release/libgraphannis.so
- name: Upload graphANNIS shared library
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "./target/release/libgraphannis.so"
artifactContentType: application/x-sharedlib
tag: ${{ steps.latest-release.outputs.release}}
omitBodyDuringUpdate: true
omitDraftDuringUpdate: true
omitNameDuringUpdate: true
omitPrereleaseDuringUpdate: true
deploy_windows_binaries:
if: ${{ github.event.action == 'completed' || github.event.label.name == 'test-release-process' || (github.event_name == 'release' && github.event.action == 'published') }}
runs-on: windows-2025
steps:
- id: latest-release
uses: pozetroninc/github-action-get-latest-release@v0.7.0
with:
repository: ${{ github.repository }}
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1.0.6
with:
toolchain: stable
profile: minimal
- uses: Swatinem/rust-cache@v2.2.1
- run: cargo build --release --package graphannis-capi
- run: Rename-Item -Path "target\release\graphannis_capi.dll" -NewName "graphannis.dll"
- name: Upload graphANNIS shared library
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "./target/release/graphannis.dll"
artifactContentType: application/x-dosexec
tag: ${{ steps.latest-release.outputs.release}}
omitBodyDuringUpdate: true
omitDraftDuringUpdate: true
omitNameDuringUpdate: true
omitPrereleaseDuringUpdate: true
deploy_macos_binaries:
if: ${{ github.event.action == 'completed' || github.event.label.name == 'test-release-process' || (github.event_name == 'release' && github.event.action == 'published') }}
runs-on: macos-14
steps:
- id: latest-release
uses: pozetroninc/github-action-get-latest-release@v0.7.0
with:
repository: ${{ github.repository }}
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1.0.6
with:
toolchain: stable
profile: minimal
- uses: Swatinem/rust-cache@v2.2.1
- run: cargo build --release --package graphannis-capi
- run: mv target/release/libgraphannis_capi.dylib target/release/libgraphannis.dylib
- name: Upload graphANNIS shared library
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "./target/release/libgraphannis.dylib"
artifactContentType: application/x-mach-binary
tag: ${{ steps.latest-release.outputs.release}}
omitBodyDuringUpdate: true
omitDraftDuringUpdate: true
omitNameDuringUpdate: true
omitPrereleaseDuringUpdate: true