Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@ on:
branches:
- main

permissions: {}

jobs:
build:
uses: ably/features/.github/workflows/sdk-features.yml@main
permissions:
contents: read
deployments: write
id-token: write
# Track the live SDK feature spec on main rather than pinning.
uses: ably/features/.github/workflows/sdk-features.yml@main # zizmor: ignore[unpinned-uses]
Comment thread
emptyhammond marked this conversation as resolved.
with:
repository-name: ably-dotnet
secrets: inherit
secrets:
ABLY_AWS_ACCOUNT_ID_SDK: ${{ secrets.ABLY_AWS_ACCOUNT_ID_SDK }}
46 changes: 29 additions & 17 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,28 @@ on:
description: 'Ably version'
required: true

permissions:
contents: read

jobs:
package-library:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
submodules: 'recursive'
persist-credentials: false

- name: Download dotnet framework
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
with:
dotnet-version: |
3.1.426
6.0.428
7.0.410

- name: Setup Android SDK
uses: android-actions/setup-android@v3
uses: android-actions/setup-android@9fc6c4e9069bf8d3d10b2204b1fb8f6ef7065407 # v3.2.2

- name: Install Android SDK Platform 30
shell: pwsh
Expand Down Expand Up @@ -79,10 +83,12 @@ jobs:
run: dotnet tool restore

- name: Package
run: ./package.cmd ${{ github.event.inputs.version }}
env:
VERSION: ${{ github.event.inputs.version }}
run: ./package.cmd $env:VERSION

- name: Archive package
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: ably-package
path: |
Expand All @@ -94,25 +100,26 @@ jobs:
DOTNET_NOLOGO: true

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
submodules: 'recursive'
persist-credentials: false

- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
uses: maxim-lobanov/setup-xcode@ed7a3b1fda3918c0306d1b724322adc0b8cc0a90 # v1.7.0
with:
xcode-version: '14.3'

- name: Setup Android SDK
uses: android-actions/setup-android@v3
uses: android-actions/setup-android@9fc6c4e9069bf8d3d10b2204b1fb8f6ef7065407 # v3.2.2

- name: Install Android SDK Platform 30
run: |
yes | "$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" "platforms;android-30"
yes | "$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" "build-tools;30.0.3"

- name: Download dotnet framework
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
with:
dotnet-version: |
3.1.426
Expand All @@ -137,10 +144,12 @@ jobs:
run: dotnet tool restore

- name: Package Push (iOS & Android)
run: ./package-push.sh ${{ github.event.inputs.version }}
env:
VERSION: ${{ github.event.inputs.version }}
run: ./package-push.sh "$VERSION"

- name: Archive push packages
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: ably-push-package
path: |
Expand All @@ -149,12 +158,13 @@ jobs:
package-unity:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
submodules: 'recursive'
persist-credentials: false

- name: Download dotnet framework
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
with:
dotnet-version: |
2.1.818
Expand All @@ -164,10 +174,12 @@ jobs:
run: dotnet tool restore

- name: Package Unity
run: ./package-unity.sh ${{ github.event.inputs.version }}
env:
VERSION: ${{ github.event.inputs.version }}
run: ./package-unity.sh "$VERSION"

- name: Archive Unity package
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: ably-unity-package
path: |
Expand All @@ -178,7 +190,7 @@ jobs:
needs: [package-library, package-push, package-unity]
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
path: artifacts

Expand Down Expand Up @@ -223,7 +235,7 @@ jobs:
echo "Total files: $(ls -1 output-package | wc -l)"

- name: Upload merged artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: output-package
path: output-package/
8 changes: 6 additions & 2 deletions .github/workflows/run-tests-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-22.04
Expand All @@ -17,12 +20,13 @@ jobs:
targetframework: [ "net6.0", "net7.0", "net8.0", "net9.0" ]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
submodules: 'recursive'
persist-credentials: false

- name: Download dotnet framework
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
with:
dotnet-version: |
6.0.428
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/run-tests-macos-mono.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,23 @@ on:
branches:
- main

permissions:
contents: read

jobs:
check:
runs-on: macos-14
env:
DOTNET_NOLOGO: true

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
submodules: 'recursive'
persist-credentials: false

- name: Download dotnet framework
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
with:
dotnet-version: |
3.1.426
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/run-tests-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main

permissions:
contents: read

jobs:
check:
runs-on: macos-14
Expand All @@ -17,12 +20,13 @@ jobs:
targetframework: [ "net6.0", "net7.0", "net8.0", "net9.0" ]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
submodules: 'recursive'
persist-credentials: false

- name: Download dotnet framework
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
with:
dotnet-version: |
6.0.428
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/run-tests-windows-netframework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,23 @@ on:
branches:
- main

permissions:
contents: read

jobs:
check:
runs-on: windows-2022
env:
DOTNET_NOLOGO: true

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
submodules: 'recursive'
persist-credentials: false

- name: Download dotnet framework
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
with:
dotnet-version: |
7.0.410
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/run-tests-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main

permissions:
contents: read

jobs:
check:
runs-on: windows-2022
Expand All @@ -17,12 +20,13 @@ jobs:
targetframework: [ "net6.0", "net7.0", "net8.0", "net9.0" ]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
submodules: 'recursive'
persist-credentials: false

- name: Download framework
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
with:
dotnet-version: |
6.0.428
Expand Down
Loading