-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to create and upload test data
- Loading branch information
1 parent
2b15657
commit e0dfa05
Showing
1 changed file
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/** |