Skip to content

Commit

Permalink
Add workflow to create and upload test data
Browse files Browse the repository at this point in the history
  • Loading branch information
albertziegenhagel committed Jul 1, 2023
1 parent 2b15657 commit e0dfa05
Showing 1 changed file with 99 additions and 0 deletions.
99 changes: 99 additions & 0 deletions .github/workflows/test-data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: Update Test Data

on:
workflow_dispatch:
pull_request:
branches: [main]

jobs:
job:
name: update-${{ matrix.run-on }}

runs-on: ${{ matrix.run-on }}

strategy:
fail-fast: false
matrix:
run-on: [windows-latest]

steps:
- uses: actions/checkout@v3

- name: Install ninja
if: runner.os == 'Linux'
run: sudo apt install ninja-build

- uses: TheMrMilchmann/setup-msvc-dev@v2
if: runner.os == 'Windows'
with:
arch: x64

- name: Enable profiling
if: runner.os == 'Linux'
run: |
sudo echo "kernel.perf_event_paranoid = -1" >> /etc/sysctl.conf
cat /etc/sysctl.conf
- name: Configure
run: cmake -G Ninja ${{ github.workspace }}/tests/apps

- name: Build
run: ninja

- name: Build & Install Apps
run: ninja install-apps

- name: Record
run: ninja -j1 record

- name: Install Records
run: ninja install-records

- name: Pack & Upload rests
uses: actions/upload-artifact@v3
with:
name: test-data-${{ matrix.run-on }}
path: ${{ github.workspace }}/tests/apps/*/dist/**

linux-job:
name: update-linux

runs-on: ubuntu-latest

container:
image: gcc:13.1.0
options: --user root

steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: |
apt-get update
apt-get install -y cmake ninja-build linux-perf
# - name: Enable profiling
# run: |
# sudo echo "kernel.perf_event_paranoid = -1" >> /etc/sysctl.conf
# cat /etc/sysctl.conf

- name: Configure
run: cmake -G Ninja $GITHUB_WORKSPACE/tests/apps

- name: Build
run: ninja

- name: Build & Install Apps
run: ninja install-apps

- name: Record
run: ninja -j1 record

- name: Install Records
run: ninja install-records

- name: Pack & Upload rests
uses: actions/upload-artifact@v3
with:
name: test-data-linux
path: $GITHUB_WORKSPACE/tests/apps/*/dist/**

0 comments on commit e0dfa05

Please sign in to comment.