Skip to content

Commit 93f19d6

Browse files
author
devizer
committed
Actions on VM: Framework 4.6? All the VM images, Combine always, 1 worker, 2GB RAM, 4 CPUs, Host Ubuntu 20.04, Upload VM Artifact, Tests on VM with timeout, more vms
1 parent 2dc7064 commit 93f19d6

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/CpuUsage-Tests-Matrix.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- os: 'i386-debian-12'
5353

5454
runs-on: ubuntu-20.04
55-
timeout-minutes: 20
55+
timeout-minutes: 15
5656
steps:
5757
- name: Checkout
5858
uses: actions/checkout@v4
@@ -66,11 +66,12 @@ jobs:
6666
try-and-retry sudo apt-get install bsdutils -y -qq;
6767
timeout --version
6868
69-
- name: Build NET47 Tests
69+
- name: Build Tests
7070
run: |
7171
set -ue; set -o pipefail
7272
cd Universe.CpuUsage.Tests
73-
time try-and-retry dotnet build -c Release -f net47 -o "$HOME/Artifacts" >/dev/null
73+
Reset-Target-Framwork -fw net46
74+
time try-and-retry dotnet build -c Release -f net46 -o "$HOME/Artifacts" >/dev/null
7475
7576
- name: Pull VM
7677
run: |
@@ -81,7 +82,7 @@ jobs:
8182
- name: Run Tests
8283
run: |
8384
set -ue; set -o pipefail
84-
timeout 900 docker run --privileged -e VM_MEM=1000M -e VM_CPUS=2 -e QEMU_TCG_ACCELERATOR=tcg --name VM --hostname VM --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined -t \
85+
timeout 666 docker run --privileged -e VM_MEM=1000M -e VM_CPUS=2 -e QEMU_TCG_ACCELERATOR=tcg --name VM --hostname VM --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined -t \
8586
-v "$HOME/Artifacts":/job \
8687
"devizervlad/crossplatform-pipeline:${{ matrix.os }}" \
8788
bash -e -c "a=1; Say \"STARTING TESTS\"; free -m; nunit3-console --framework=v4.0 --workers=1 --dispose-runners Universe.CpuUsage.Tests.dll | tee /job/PRECISION.LOG; Say \"TESTS COMPLETED\""

0 commit comments

Comments
 (0)