-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2298a52
commit 2773b49
Showing
2 changed files
with
130 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: Release StreamrProxyClient | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
env: | ||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | ||
|
||
jobs: | ||
build-desktop: | ||
strategy: | ||
matrix: | ||
include: | ||
- os: macos-14 | ||
target: arm64-osx | ||
- os: macos-13 | ||
target: x64-osx | ||
- os: ubuntu-24.04 | ||
target: x64-linux | ||
- os: linux-arm64-runner | ||
target: arm64-linux | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Dependencies | ||
uses: ./.github/workflows/reusable/cached-install | ||
|
||
- name: test | ||
run: | ||
./test.sh | ||
shell: bash | ||
|
||
- name: Package and Upload | ||
run: | | ||
# Only package the compiled libraries | ||
cd ./packages/streamr-libstreamrproxyclient/dist | ||
gh release upload ${{ github.event.release.tag_name }} streamrproxyclient-${{ matrix.target }}-*.tgz | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build-ios: | ||
needs: build-desktop | ||
runs-on: macos-14 | ||
env: | ||
ARCHFLAGS: --ios | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Dependencies | ||
uses: ./.github/workflows/reusable/cached-install | ||
|
||
- name: Package and Upload | ||
run: | | ||
cd ./packages/streamr-libstreamrproxyclient/dist | ||
gh release upload ${{ github.event.release.tag_name }} ios-swift-package/streamrproxyclient-ios-swift-package-*.tgz | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build-android: | ||
needs: build-desktop | ||
runs-on: macos-15 | ||
env: | ||
ARCHFLAGS: --android | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
fetch-depth: 0 | ||
|
||
- name: Install Dependencies | ||
uses: ./.github/workflows/reusable/cached-install | ||
|
||
- name: Package and Upload | ||
run: | | ||
cd ./packages/streamr-libstreamrproxyclient/dist | ||
gh release upload ${{ github.event.release.tag_name }} android-library-module/streamrproxyclient-android-library-module-*.tgz | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters