-
Notifications
You must be signed in to change notification settings - Fork 0
102 lines (84 loc) · 2.47 KB
/
Copy pathci.yml
File metadata and controls
102 lines (84 loc) · 2.47 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: ci
on:
pull_request:
push:
branches:
- main
- master
permissions:
contents: read
packages: read
env:
DOTNET_NOLOGO: true
REGISTRY_IMAGE: ghcr.io/a5c-ai/agentpowershell
jobs:
dotnet:
name: ci / dotnet / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Build and test (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: ./eng/ci/test.ps1
- name: Install smoke test (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: ./eng/ci/install-smoke.ps1
- name: Build and test (Unix)
if: runner.os != 'Windows'
shell: bash
run: |
chmod +x eng/ci/test.sh
./eng/ci/test.sh
- name: Install smoke test (Unix)
if: runner.os != 'Windows'
shell: bash
run: |
chmod +x install.sh eng/ci/install-smoke.sh
./eng/ci/install-smoke.sh
docker-linux:
name: ci / docker / linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Docker smoke test
run: |
chmod +x eng/ci/docker-smoke.sh
./eng/ci/docker-smoke.sh agentpowershell:linux-ci
- name: Linux install and release-package smoke
run: |
chmod +x eng/ci/linux-package-smoke.sh eng/ci/release-package-smoke.sh eng/ci/install-smoke.sh install.sh
./eng/ci/linux-package-smoke.sh linux-x64
docker-windows:
name: ci / docker / windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Docker smoke test
shell: pwsh
run: |
./eng/ci/docker-smoke.ps1 -ImageTag agentpowershell:windows-ci
- name: Linux install and release-package smoke
shell: pwsh
run: |
./eng/ci/linux-package-smoke.ps1 -Rid linux-x64
docker-macos-note:
name: ci / docker / macos-note
runs-on: macos-latest
steps:
- name: Explain hosted-runner limitation
run: |
echo "GitHub-hosted macOS runners do not provide a Docker daemon."
echo "The .NET test matrix covers macOS directly, while Docker smoke coverage runs on Linux and Windows runners."