Skip to content

Enable support for sccache for windows machines by default #3

Enable support for sccache for windows machines by default

Enable support for sccache for windows machines by default #3

Workflow file for this run

name: Test / Metrics
on:
push:
branches:
- main
- v*
- feature/*
- fix/*
workflow_dispatch:
jobs:
metrics:
permissions:
id-token: write
contents: read
strategy:
fail-fast: false
matrix:
image: [ubuntu24-full-x64, ubuntu24-full-arm64]
configuration: ["existing-aws-creds", "no-aws-creds", "cw-agent-stopped"]
runs-on: runs-on=${{ github.run_id }}/cpu=2/family=m7/image=${{ matrix.image }}
steps:
- uses: actions/checkout@v4
- name: configure aws credentials
if: matrix.configuration == 'existing-aws-creds'
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502
with:
role-to-assume: arn:aws:iam::756351362063:role/github-oidc
role-session-name: test
aws-region: ${{ env.RUNS_ON_AWS_REGION }}
- name: Stop CloudWatch agent
if: matrix.configuration == 'cw-agent-stopped'
run: sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a stop || true
- uses: ./
with:
metrics: cpu,network,memory,disk,io
- name: Setup
run: sudo apt-get update && sudo apt-get install -y stress-ng
- name: Generate load
run: |
# CPU intensive - variable load
for i in {1..10}; do
dd if=/dev/zero bs=1M count=$((RANDOM % 100 + 150)) | md5sum &
sleep 10
done &
# Memory intensive - variable load
for i in {1..10}; do
stress-ng --vm $((RANDOM % 4 + 1)) --vm-bytes $((RANDOM % 512 + 256))M --timeout 10s &
sleep 10
done &
# Disk intensive - variable load
for i in {1..10}; do
dd if=/dev/urandom of=/tmp/testfile$i bs=1M count=$((RANDOM % 100 + 150)) &
sleep 10
done &
wait