-
-
Notifications
You must be signed in to change notification settings - Fork 427
Expand file tree
/
Copy pathstress-test-tcp-open-close-windows.yml
More file actions
78 lines (73 loc) · 2.83 KB
/
stress-test-tcp-open-close-windows.yml
File metadata and controls
78 lines (73 loc) · 2.83 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
name: Windows TCP Open/Close Stress Tests
on:
schedule:
- cron: "45 5 * * *"
workflow_dispatch:
inputs:
sha:
description: 'SHA to test'
required: true
type: string
default: 'main'
permissions:
packages: read
jobs:
x86_64-windows:
runs-on: windows-2025
defaults:
run:
shell: pwsh
strategy:
fail-fast: false
matrix:
include:
- name: "x86-64 Windows [release]"
target: stress-test-tcp-open-close-release
- name: "x86-64 Windows [debug]"
target: stress-test-tcp-open-close-debug
- name: "x86-64 Windows [cd] [release]"
target: stress-test-tcp-open-close-with-cd-release
- name: "x86-64 Windows [cd] [debug]"
target: stress-test-tcp-open-close-with-cd-debug
name: ${{matrix.target}}:${{ matrix.name }}
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
ref: ${{ github.event.inputs.sha || 'main' }}
- name: Install Dependencies
run: |
function msys() { C:\msys64\usr\bin\bash.exe @('-lc') + @Args }; msys ' '; msys 'pacman --noconfirm -Syuu'; msys 'pacman --noconfirm -Syuu'; msys 'pacman --noconfirm -S --needed base-devel mingw-w64-x86_64-lldb'; msys 'pacman --noconfirm -Scc'
python.exe -m pip install --upgrade cloudsmith-cli
- name: Restore Libs Cache
id: restore-libs
uses: actions/cache/restore@v4
with:
path: build/libs
key: libs-windows-2025-${{ hashFiles('make.ps1', 'CMakeLists.txt', 'lib/CMakeLists.txt') }}
- name: Build Libs
if: steps.restore-libs.outputs.cache-hit != 'true'
run: .\make.ps1 -Command libs
- name: Save Libs Cache
if: steps.restore-libs.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: build/libs
key: libs-windows-2025-${{ hashFiles('make.ps1', 'CMakeLists.txt', 'lib/CMakeLists.txt') }}
- name: Configure
run: .\make.ps1 -Command configure -Config Debug
- name: Build Debug Runtime
run: .\make.ps1 -Command build -Config Debug
- name: Run Stress Test
run: .\make.ps1 -Command ${{ matrix.target }} -Config Debug
- name: Send alert on failure
if: ${{ failure() }}
uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5
with:
api-key: ${{ secrets.ZULIP_SCHEDULED_JOB_FAILURE_API_KEY }}
email: ${{ secrets.ZULIP_SCHEDULED_JOB_FAILURE_EMAIL }}
organization-url: 'https://ponylang.zulipchat.com/'
to: notifications
type: stream
topic: ${{ github.repository }} scheduled job failure
content: ${{ github.server_url}}/${{ github.repository }}/actions/runs/${{ github.run_id }} failed.