-
Notifications
You must be signed in to change notification settings - Fork 1
98 lines (74 loc) · 2.81 KB
/
msbuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: MSBuild
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
SOLUTION_FILE_PATH: hsrans.sln
BUILD_CONFIGURATION: Release
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
- name: Create Solution Files
working-directory: ${{env.GITHUB_WORKSPACE}}
run: premake/premake5.exe vs2022
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} /v:m
- uses: actions/upload-artifact@v4.1.7
with:
name: build-win64
path: builds/bin/hsrans.exe
test:
runs-on: windows-latest
needs: build
steps:
- uses: actions/download-artifact@v4.1.7
with:
name: build-win64
- name: Download Samples
working-directory: ${{env.GITHUB_WORKSPACE}}
run: git clone https://github.com/rainerzufalldererste/rle_samples.git
- name: Test sample0
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample0.bin --test
- name: Test sample0 AVX2
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample0.bin --test --max-simd avx2
- name: Test sample0 SSE4.2
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample0.bin --test --max-simd sse4.2
- name: Test sample0 No-SIMD
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample0.bin --test --max-simd none
- name: Test sample1
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample1.bin --test
- name: Test sample1 AVX2
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample1.bin --test --max-simd avx2
- name: Test sample1 SSE4.2
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample1.bin --test --max-simd sse4.2
- name: Test sample1 No-SIMD
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample1.bin --test --max-simd none
- name: Test sample2
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample2.bin --test
- name: Test sample2 AVX2
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample2.bin --test --max-simd avx2
- name: Test sample2 SSE4.2
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample2.bin --test --max-simd sse4.2
- name: Test sample2 No-SIMD
working-directory: ${{env.GITHUB_WORKSPACE}}
run: ./hsrans rle_samples/sample2.bin --test --max-simd none