Skip to content

Commit b77e90e

Browse files
author
devizer
committed
Actions: Tests Matrix
1 parent 39aff54 commit b77e90e

1 file changed

Lines changed: 68 additions & 0 deletions

File tree

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: CPU Usage Tests Matrix
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ "master" ]
7+
8+
defaults:
9+
run:
10+
shell: bash
11+
12+
jobs:
13+
Info:
14+
name: Gather Benchmarks
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [windows-2025, windows-2022, windows-2019, ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, macos-13, macos-14, macos-15]
19+
20+
runs-on: ${{ matrix.os }}
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Environment
26+
run: 'printenv | sort'
27+
28+
- name: Setup .NET Core
29+
uses: actions/setup-dotnet@v1
30+
with:
31+
dotnet-version: 5.*
32+
33+
- name: Build And Test
34+
run: |
35+
set -eu;
36+
cd Universe.CpuUsage.Tests
37+
dotnet test -c Release -f net8.0
38+
39+
40+
- name: Upload artifacts [${{ env.THEARTIFACTS_NATIVE }}]
41+
uses: actions/upload-artifact@v4
42+
if: always()
43+
with:
44+
name: 'System Info ${{ matrix.os }}'
45+
path: |
46+
${{ env.THEARTIFACTS_NATIVE }}
47+
48+
Combine:
49+
name: Combine results in a single Artifact
50+
needs: Info
51+
runs-on: ubuntu-latest
52+
steps:
53+
- name: Download All Artifacts
54+
uses: actions/download-artifact@v4
55+
with:
56+
pattern: '**'
57+
path: "${{ runner.temp }}/Combined"
58+
merge-multiple: true
59+
60+
- name: Show Download Structure
61+
run: 'sudo apt-get update -qq; sudo apt-get install tree -y -qq; tree $RUNNER_TEMP'
62+
63+
- name: Upload Combined System Info
64+
uses: actions/upload-artifact@v4
65+
with:
66+
name: 'Combined CPU Usage Tests'
67+
path: "${{ runner.temp }}/Combined"
68+

0 commit comments

Comments
 (0)