Skip to content

Commit a09add5

Browse files
committed
Merge remote-tracking branch 'origin/main' into copilot/fix-513
2 parents 55a6a54 + a79222d commit a09add5

File tree

199 files changed

+2484
-264
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+2484
-264
lines changed

.github/actions/install-nightly-ice/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ runs:
1919
echo "deb [signed-by=/etc/apt/keyrings/zeroc-nightly.gpg] https://download.zeroc.com/nexus/repository/ubuntu24.04-nightly nightly main" | sudo tee /etc/apt/sources.list.d/zeroc-nightly.list
2020
2121
sudo apt-get update
22-
sudo apt-get install -y zeroc-ice-all-dev
22+
sudo apt-get install -y libzeroc-ice-dev
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Setup Xcode
2+
runs:
3+
using: "composite"
4+
steps:
5+
# https://github.com/actions/runner-images/blob/main/images/macos/macos-15-arm64-Readme.md
6+
- name: Use Xcode 16.4
7+
if: runner.os == 'macOS'
8+
shell: bash
9+
run: sudo xcode-select --switch /Applications/Xcode_16.4.app/Contents/Developer

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ jobs:
3232
- name: Checkout repository
3333
uses: actions/checkout@v4
3434

35+
- name: Setup Xcode
36+
if: runner.os == 'macOS'
37+
uses: ./.github/actions/setup-xcode
38+
3539
- name: Setup .NET 8
3640
uses: actions/setup-dotnet@v4
3741
with:
@@ -108,8 +112,7 @@ jobs:
108112
Get-ChildItem -Recurse -Depth 2 -Filter gradlew | ForEach-Object {
109113
Push-Location $_.DirectoryName
110114
Write-Host "Building in $($_.DirectoryName)..."
111-
$gradlew = if ($IsWindows) { "./gradlew.bat" } else { "./gradlew" }
112-
& $gradlew build
115+
& ./gradlew build
113116
if ($LASTEXITCODE -ne 0) {
114117
throw "Build failed in $($_.DirectoryName)"
115118
}

.github/workflows/java.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Java
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: ["main"]
9+
10+
jobs:
11+
checkstyle:
12+
runs-on: ubuntu-24.04
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Java
18+
uses: actions/setup-java@v4
19+
with:
20+
distribution: "oracle"
21+
java-version: "17"
22+
23+
- name: Run checkstyle formatter
24+
timeout-minutes: 20
25+
working-directory: java
26+
shell: pwsh
27+
run: |
28+
$ErrorActionPreference = "Stop"
29+
Get-ChildItem -Recurse -Depth 2 -Filter gradlew | ForEach-Object {
30+
Push-Location $_.DirectoryName
31+
Write-Host "Building in $($_.DirectoryName)..."
32+
& ./gradlew check
33+
if ($LASTEXITCODE -ne 0) {
34+
throw "Build failed in $($_.DirectoryName)"
35+
}
36+
Pop-Location
37+
}
38+
39+
rewrite:
40+
runs-on: ubuntu-24.04
41+
steps:
42+
- name: Checkout repository
43+
uses: actions/checkout@v4
44+
45+
- name: Setup Java
46+
uses: actions/setup-java@v4
47+
with:
48+
distribution: "oracle"
49+
java-version: "17"
50+
51+
- name: Run rewrite linter
52+
timeout-minutes: 20
53+
working-directory: java
54+
shell: pwsh
55+
run: |
56+
$ErrorActionPreference = "Stop"
57+
Get-ChildItem -Recurse -Depth 2 -Filter gradlew | ForEach-Object {
58+
Push-Location $_.DirectoryName
59+
Write-Host "Building in $($_.DirectoryName)..."
60+
& ./gradlew rewriteDryRun
61+
if ($LASTEXITCODE -ne 0) {
62+
throw "Build failed in $($_.DirectoryName)"
63+
}
64+
Pop-Location
65+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
build
33

44
.gradle
5+
.kotlin
56

67
# Ignore all JARs except the Gradle wrapper
78
*.jar

cpp/Ice/config/Greeter.ice

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ module VisitorCenter
88
interface Greeter
99
{
1010
/// Creates a personalized greeting.
11-
/// @param name: The name of the person to greet.
12-
/// @returns: The greeting.
11+
/// @param name The name of the person to greet.
12+
/// @return The greeting.
1313
string greet(string name);
1414
}
1515
}

cpp/Ice/config/config.client

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Ice.Default.Protocol=ssl
2222
IceSSL.DefaultDir=../../../certs
2323

2424
# The certificate authority file.
25-
IceSSL.CAs=cacert.pem
25+
IceSSL.CAs=ca_cert.pem
2626

2727
# The client's certificate file.
2828
IceSSL.CertFile=client.p12

cpp/Ice/config/config.server

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Ice.Trace.Dispatch=1
2727
IceSSL.DefaultDir=../../../certs
2828

2929
# The certificate authority file.
30-
IceSSL.CAs=cacert.pem
30+
IceSSL.CAs=ca_cert.pem
3131

3232
# The server's certificate file.
3333
IceSSL.CertFile=server.p12

java/Glacier2/greeter/client/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ plugins {
66

77
// Apply the Slice-tools plugin to enable Slice compilation.
88
id("com.zeroc.ice.slice-tools") version "3.8.+"
9+
10+
// Pull in our local 'convention plugin' to enable linting.
11+
id("zeroc-linting")
912
}
1013

1114
dependencies {

java/Glacier2/greeter/client/src/main/java/com/example/glacier2/greeter/client/Client.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
package com.example.glacier2.greeter.client;
44

55
import com.example.visitorcenter.GreeterPrx;
6-
import com.zeroc.Ice.Communicator;
7-
import com.zeroc.Ice.Util;
6+
import com.zeroc.Glacier2.CannotCreateSessionException;
7+
import com.zeroc.Glacier2.PermissionDeniedException;
88
import com.zeroc.Glacier2.RouterPrx;
99
import com.zeroc.Glacier2.SessionPrx;
10-
import com.zeroc.Glacier2.PermissionDeniedException;
11-
import com.zeroc.Glacier2.CannotCreateSessionException;
10+
import com.zeroc.Ice.Communicator;
11+
import com.zeroc.Ice.Util;
1212

1313
class Client {
1414
public static void main(String[] args) {

0 commit comments

Comments
 (0)