-
Notifications
You must be signed in to change notification settings - Fork 3
66 lines (62 loc) · 1.92 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: ci
on:
push:
branches: ["0.4.x"]
pull_request:
branches: ["0.4.x"]
schedule:
# Run every day at 6:00 UTC
- cron: '00 6 * * *'
jobs:
build_and_test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v3
- name: 📦 NuGet Cache
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: 📦 Cargo Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
tools/slicec-cs/target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
- name: Setup Ice 3.7
run: |
sudo mkdir -p /etc/apt/keyrings
sudo curl -fsSL https://download.zeroc.com/GPG-KEY-zeroc-release-B6391CB2CFBA643D | sudo gpg --dearmor -o /etc/apt/keyrings/zeroc.gpg
echo \
"deb [signed-by=/etc/apt/keyrings/zeroc.gpg] https://download.zeroc.com/ice/3.7/ubuntu22.04 stable main" \
| sudo tee /etc/apt/sources.list.d/zeroc-ice-3.7.list
sudo apt-get update
sudo apt-get install zeroc-ice-slice zeroc-ice-compilers
- name: Check out IceRPC for C# repository
uses: actions/checkout@master
with:
repository: icerpc/icerpc-csharp
ref: 0.4.x
path: 'icerpc-csharp'
- name: 🔨 Build and Publish IceRPC NuGet packages
working-directory: icerpc-csharp
run: ./build.sh --publish
- name: 🔨 Build Tests
run: dotnet build
- name: 🧪 Run Tests
run: dotnet test --no-build --verbosity normal