Skip to content

Commit 505ffbc

Browse files
authored
Remove job that uploads individual libs in favor of bundle (#216)
1 parent cd8d10f commit 505ffbc

File tree

1 file changed

+0
-60
lines changed

1 file changed

+0
-60
lines changed

.github/workflows/release-libs.yml

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -6,66 +6,6 @@ on:
66
types: [published]
77

88
jobs:
9-
publish_binaries:
10-
name: Upload ${{ matrix.build_job }} artifact
11-
runs-on: ${{ matrix.os }}
12-
strategy:
13-
matrix:
14-
include:
15-
- os: ubuntu-latest
16-
library_file: libokapi.so
17-
artifact_name: linux
18-
build_job: build_linux
19-
# - os: ubuntu-latest
20-
# library_file: libokapi.so
21-
# artifact_name: linux-arm
22-
# build_job: build_linux_arm
23-
- os: windows-latest
24-
library_file: okapi.dll
25-
artifact_name: windows
26-
build_job: build_windows
27-
- os: windows-latest
28-
library_file: okapi.dll
29-
artifact_name: windows-gnu
30-
build_job: build_windows_gnu
31-
- os: macos-latest
32-
library_file: libokapi.dylib
33-
artifact_name: macos
34-
build_job: build_macos
35-
- os: macos-latest
36-
library_file: "**/*.so"
37-
artifact_name: android
38-
build_job: build_android
39-
- os: macos-latest
40-
library_file: libokapi.a
41-
artifact_name: ios
42-
build_job: build_ios
43-
steps:
44-
- name: Download workflow artifact
45-
uses: dawidd6/[email protected]
46-
with:
47-
workflow: "build-libs.yml"
48-
path: ./libs
49-
branch: main
50-
- run: |
51-
$json = Invoke-WebRequest 'https://api.github.com/repos/trinsic-id/okapi/releases/latest' `
52-
-Headers @{ "Authorization" = "Token $env:API_GITHUB_TOKEN"} | ConvertFrom-Json
53-
$version = $json.tag_name
54-
echo "RELEASE_VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf-8 -Append
55-
shell: pwsh
56-
env:
57-
API_GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}
58-
- name: Push packages to release
59-
uses: svenstaro/upload-release-action@v2
60-
if: github.event_name == 'release'
61-
with:
62-
repo_token: ${{ secrets.GITHUB_TOKEN }}
63-
file: ./libs/${{ matrix.artifact_name }}/${{ matrix.library_file }}
64-
asset_name: ${{ matrix.artifact_name }}
65-
tag: ${{ env.RELEASE_VERSION }}
66-
overwrite: true
67-
body: "Okapi binaries"
68-
699
publish_binaries_bundle:
7010
name: Upload libs.zip artifact
7111
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)