-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (58 loc) · 1.72 KB
/
ci.yml
File metadata and controls
66 lines (58 loc) · 1.72 KB
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: Continuous Integration
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
name: Build and test on ${{ matrix.os }} ${{ matrix.architecture }}
strategy:
matrix:
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-latest, macos-13]
include:
- os: ubuntu-latest
architecture: x64
- os: ubuntu-24.04-arm
architecture: arm64
- os: windows-latest
architecture: x64
- os: macos-latest
architecture: arm64
- os: macos-13
architecture: x64
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install .NET SDK
if: startsWith(matrix.os, 'ubuntu')
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
2.x
8.x
- name: Install .NET SDK
if: matrix.os == 'macos-latest'
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.x
- name: Install .NET SDK
if: matrix.os == 'macos-13'
uses: actions/setup-dotnet@v4
with:
dotnet-version: 2.x
- name: Install libssl
if: matrix.os == 'ubuntu-latest'
run: |
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb
- name: Install libssl
if: matrix.os == 'ubuntu-24.04-arm'
run: |
wget http://ports.ubuntu.com/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.24_arm64.deb
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.24_arm64.deb
- name: Build and test
run: dotnet test