Skip to content

Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #66

Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows

Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #66

Workflow file for this run

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
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