Skip to content

Commit d2d4e32

Browse files
committed
Ad actions? hope it'll work
1 parent a8b8a0b commit d2d4e32

3 files changed

Lines changed: 65 additions & 0 deletions

File tree

.github/workflows/linux-tests.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Linux Tests
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
branches: [ main, master ]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Install dependencies
17+
run: |
18+
sudo apt-get update
19+
sudo apt-get install -y build-essential cmake
20+
pip install matplotlib numpy pandas py-cpuinfo
21+
22+
- name: Run tests and update benchmarks
23+
run: |
24+
chmod +x ./run_tests.sh
25+
./run_tests.sh
26+
27+
- name: Commit changes
28+
uses: stefanzweifel/git-auto-commit-action@v4
29+
with:
30+
commit_message: "Update benchmark results from GitHub Actions (Linux)"
31+
file_pattern: benchmark_results_linux_gcc/* README.md test_results.txt

.github/workflows/update-readme.yml

Whitespace-only changes.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Windows Tests
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
branches: [ main, master ]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: windows-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Setup MSBuild
17+
uses: microsoft/setup-msbuild@v1.1
18+
19+
- name: Setup Python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: '3.x'
23+
24+
- name: Install Python dependencies
25+
run: pip install matplotlib numpy pandas py-cpuinfo
26+
27+
- name: Run tests and update benchmarks
28+
run: .\run_tests.bat
29+
30+
- name: Commit changes
31+
uses: stefanzweifel/git-auto-commit-action@v4
32+
with:
33+
commit_message: "Update benchmark results from GitHub Actions (Windows)"
34+
file_pattern: benchmark_results_windows_msvc/* README.md test_results.txt

0 commit comments

Comments
 (0)