Skip to content

Commit 647b624

Browse files
committed
Removed cake postfix from all shell and bash build, package scripts
1 parent 78e0096 commit 647b624

14 files changed

+58
-60
lines changed

.github/workflows/package.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
run: dotnet tool restore
8080

8181
- name: Package
82-
run: ./package-cake.cmd ${{ github.event.inputs.version }}
82+
run: ./package.cmd ${{ github.event.inputs.version }}
8383

8484
- name: Archive package
8585
uses: actions/upload-artifact@v4
@@ -137,7 +137,7 @@ jobs:
137137
run: dotnet tool restore
138138

139139
- name: Package Push (iOS & Android)
140-
run: ./package-push-cake.sh ${{ github.event.inputs.version }}
140+
run: ./package-push.sh ${{ github.event.inputs.version }}
141141

142142
- name: Archive push packages
143143
uses: actions/upload-artifact@v4
@@ -164,7 +164,7 @@ jobs:
164164
run: dotnet tool restore
165165

166166
- name: Package Unity
167-
run: ./package-unity-cake.sh ${{ github.event.inputs.version }}
167+
run: ./package-unity.sh ${{ github.event.inputs.version }}
168168

169169
- name: Archive Unity package
170170
uses: actions/upload-artifact@v4

.github/workflows/run-tests-linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
run: dotnet tool restore
3535

3636
- name: Unit tests
37-
run: ./build-cake.sh --target=Test.NetStandard.Unit.WithRetry --framework=${{ matrix.targetframework }}
37+
run: ./build.sh --target=Test.NetStandard.Unit.WithRetry --framework=${{ matrix.targetframework }}
3838

3939
- name: Integration tests
40-
run: ./build-cake.sh --target=Test.NetStandard.Integration.WithRetry --framework=${{ matrix.targetframework }}
40+
run: ./build.sh --target=Test.NetStandard.Integration.WithRetry --framework=${{ matrix.targetframework }}

.github/workflows/run-tests-macos-mono.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
./tools/mono-install.sh
3232
3333
- name: Run Unit tests using mono
34-
run: ./build-cake.sh --target=Test.NetFramework.Unit.WithRetry
34+
run: ./build.sh --target=Test.NetFramework.Unit.WithRetry
3535

3636
- name: Run Integration tests using mono
37-
run: ./build-cake.sh --target=Test.NetFramework.Integration.WithRetry
37+
run: ./build.sh --target=Test.NetFramework.Integration.WithRetry

.github/workflows/run-tests-macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
run: dotnet tool restore
3535

3636
- name: Unit tests
37-
run: ./build-cake.sh --target=Test.NetStandard.Unit.WithRetry --framework=${{ matrix.targetframework }}
37+
run: ./build.sh --target=Test.NetStandard.Unit.WithRetry --framework=${{ matrix.targetframework }}
3838

3939
- name: Integration tests
40-
run: ./build-cake.sh --target=Test.NetStandard.Integration.WithRetry --framework=${{ matrix.targetframework }}
40+
run: ./build.sh --target=Test.NetStandard.Integration.WithRetry --framework=${{ matrix.targetframework }}

.github/workflows/run-tests-windows-netframework.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: dotnet tool restore
2727

2828
- name: Unit tests
29-
run: ./build-cake.cmd --target=Test.NetFramework.Unit.WithRetry
29+
run: ./build.cmd --target=Test.NetFramework.Unit.WithRetry
3030

3131
- name: Integration tests
32-
run: ./build-cake.cmd --target=Test.NetFramework.Integration.WithRetry
32+
run: ./build.cmd --target=Test.NetFramework.Integration.WithRetry

.github/workflows/run-tests-windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
run: dotnet tool restore
3535

3636
- name: Unit tests
37-
run: ./build-cake.cmd --target=Test.NetStandard.Unit.WithRetry --framework=${{ matrix.targetframework }}
37+
run: ./build.cmd --target=Test.NetStandard.Unit.WithRetry --framework=${{ matrix.targetframework }}
3838

3939
- name: Integration tests
40-
run: ./build-cake.cmd --target=Test.NetStandard.Integration.WithRetry --framework=${{ matrix.targetframework }}
40+
run: ./build.cmd --target=Test.NetStandard.Integration.WithRetry --framework=${{ matrix.targetframework }}
File renamed without changes.
File renamed without changes.

cake-build/README.md

Lines changed: 28 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Clone the project and download Cake tools by running the following command at ro
2121
dotnet tool restore
2222
```
2323

24-
Running `.\build-cake.cmd` (Windows) or `./build-cake.sh` (Unix/macOS) will start the build process. By default it builds the NetStandard project.
24+
Running `.\build.cmd` (Windows) or `./build.sh` (Unix/macOS) will start the build process. By default it builds the NetStandard project.
2525

2626
## Build Commands
2727

@@ -30,28 +30,28 @@ We have a dedicated NetFramework project targeting .NET Framework 4.6+.
3030

3131
**Windows:**
3232
```cmd
33-
.\build-cake.cmd --target=Build.NetFramework
33+
.\build.cmd --target=Build.NetFramework
3434
```
3535

3636
### Build NetStandard
3737
NetStandard currently supports explicit targets for netstandard2.0, net6.0 and net7.0.
3838

3939
**Windows:**
4040
```cmd
41-
.\build-cake.cmd --target=Build.NetStandard
41+
.\build.cmd --target=Build.NetStandard
4242
```
4343

4444
**Unix/macOS:**
4545
```bash
46-
./build-cake.sh --target=Build.NetStandard
46+
./build.sh --target=Build.NetStandard
4747
```
4848

4949
### Build Xamarin
5050
We have a Xamarin solution targeting Android and iOS.
5151

5252
**Unix/macOS:**
5353
```bash
54-
./build-cake.sh --target=Build.Xamarin
54+
./build.sh --target=Build.Xamarin
5555
```
5656

5757
## Test Commands
@@ -60,74 +60,69 @@ We have a Xamarin solution targeting Android and iOS.
6060

6161
**Run unit tests:**
6262
```cmd
63-
.\build-cake.cmd --target=Test.NetFramework.Unit
64-
.\build-cake.cmd --target=Test.NetFramework.Unit.WithRetry # Retry failed tests
63+
.\build.cmd --target=Test.NetFramework.Unit
64+
.\build.cmd --target=Test.NetFramework.Unit.WithRetry # Retry failed tests
6565
```
6666

6767
**Run integration tests:**
6868
```cmd
69-
.\build-cake.cmd --target=Test.NetFramework.Integration
70-
.\build-cake.cmd --target=Test.NetFramework.Integration.WithRetry # Retry failed tests
69+
.\build.cmd --target=Test.NetFramework.Integration
70+
.\build.cmd --target=Test.NetFramework.Integration.WithRetry # Retry failed tests
7171
```
7272

7373
### Test NetStandard
7474

7575
**Run unit tests:**
7676
```bash
77-
./build-cake.sh --target=Test.NetStandard.Unit
78-
./build-cake.sh --target=Test.NetStandard.Unit.WithRetry # Retry failed tests
77+
./build.sh --target=Test.NetStandard.Unit
78+
./build.sh --target=Test.NetStandard.Unit.WithRetry # Retry failed tests
7979
```
8080

8181
**Run integration tests:**
8282
```bash
83-
./build-cake.sh --target=Test.NetStandard.Integration
84-
./build-cake.sh --target=Test.NetStandard.Integration.WithRetry # Retry failed tests
83+
./build.sh --target=Test.NetStandard.Integration
84+
./build.sh --target=Test.NetStandard.Integration.WithRetry # Retry failed tests
8585
```
8686

8787
**Target specific framework:**
8888

8989
Additional `--framework` flag can be supplied to test for target framework `net6.0` or `net7.0`:
9090
```bash
91-
./build-cake.sh --target=Test.NetStandard.Unit --framework=net6.0 # Run tests for .NET 6.0 runtime
92-
./build-cake.sh --target=Test.NetStandard.Unit --framework=net7.0 # Run tests for .NET 7.0 runtime
91+
./build.sh --target=Test.NetStandard.Unit --framework=net6.0 # Run tests for .NET 6.0 runtime
92+
./build.sh --target=Test.NetStandard.Unit --framework=net7.0 # Run tests for .NET 7.0 runtime
9393
```
9494

9595
## Create NuGet Packages
9696

9797
Currently, we have two scripts to generate NuGet packages:
9898

99-
### 1. package-cake.sh / package-cake.cmd
99+
### 1. package.cmd
100100

101-
Responsible for creating core `ably.io` NuGet package.
101+
- Responsible for creating core `ably.io` NuGet package.
102+
- Works only on Windows due to a dependency on the .NET Framework.
102103

103-
**Unix/macOS:**
104-
```bash
105-
./package-cake.sh 1.2.3
106-
```
107-
108-
**Windows:**
109104
```cmd
110-
.\package-cake.cmd 1.2.3
105+
.\package.cmd 1.2.3
111106
```
112107

113108
Above command creates `ably.io.1.2.3.nupkg` package at root.
114109

115110
During release process, this package is hosted on [nuget.org/packages/ably.io](https://www.nuget.org/packages/ably.io).
116111

117-
### 2. package-push-cake.sh / package-push-cake.cmd
112+
### 2. package-push.sh / package-push.cmd
118113

119114
Responsible for creating push packages for Android and iOS.
120115

121116
Please take a look at [Push Notification Documentation](../PushNotifications.md) for usage.
122117

123118
**Unix/macOS:**
124119
```bash
125-
./package-push-cake.sh 1.2.3
120+
./package-push.sh 1.2.3
126121
```
127122

128123
**Windows:**
129124
```cmd
130-
.\package-push-cake.cmd 1.2.3
125+
.\package-push.cmd 1.2.3
131126
```
132127

133128
Above command creates `ably.io.push.android.1.2.3.nupkg` and `ably.io.push.ios.1.2.3.nupkg` packages at root.
@@ -140,34 +135,34 @@ During release process, these packages are hosted on:
140135

141136
### Build with specific configuration
142137
```bash
143-
.\build-cake.cmd --target=Build.NetStandard --configuration=Debug
138+
.\build.cmd --target=Build.NetStandard --configuration=Debug
144139
```
145140

146141
### Build with custom constants
147142
```bash
148-
.\build-cake.cmd --target=Build.NetStandard --define=MY_CONSTANT
143+
.\build.cmd --target=Build.NetStandard --define=MY_CONSTANT
149144
```
150145

151146
### Verbose output
152147
```bash
153-
.\build-cake.cmd --target=Build.NetStandard --verbosity=diagnostic
148+
.\build.cmd --target=Build.NetStandard --verbosity=diagnostic
154149
```
155150

156151
### List all available targets
157152
```bash
158-
.\build-cake.cmd --description
153+
.\build.cmd --description
159154
```
160155

161156
**Note:** This command shows all tasks including internal tasks (starting with `_`). Internal tasks are implementation details and should not be called directly. Use the public targets listed in this README instead.
162157

163158
### Show task dependency tree
164159
```bash
165-
.\build-cake.cmd --tree
160+
.\build.cmd --tree
166161
```
167162

168163
### Dry run (test without execution)
169164
```bash
170-
.\build-cake.cmd --target=Build.NetStandard --dryrun
165+
.\build.cmd --target=Build.NetStandard --dryrun
171166
```
172167

173168
## Resources

package-cake.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)