Improve handling overflows #76
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
permissions: read-all | |
name: Build x86_64 Windows | |
on: | |
push: | |
branches: | |
- '*' | |
- '!ci_test_*' | |
tags-ignore: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
- '!ci_test_*' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
make_windows_x86_64: | |
name: Build x86_64 Windows | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
os: [windows-latest] | |
build_type: [Release] | |
c_compiler: [cl] | |
include: | |
- os: windows-latest | |
c_compiler: cl | |
cpp_compiler: cl | |
steps: | |
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.0.0 | |
- name: Set reusable strings | |
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file. | |
id: strings | |
shell: bash | |
run: | | |
echo "build-output-dir=out" >> "$GITHUB_OUTPUT" | |
- name: Build and test | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git clone --branch widen_mul https://token:${GITHUB_TOKEN}@github.com/awxkee/highway | |
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DBUILD_SHARED=ON -B ${{ steps.strings.outputs.build-output-dir }} -S . | |
cmake --build ${{ steps.strings.outputs.build-output-dir }} --config Release | |
ctest --test-dir out | |
cp out/Release/sparkyuv.dll sparkyuv.dll | |
- name: Compress MSVC x86_64 build | |
uses: a7ul/tar-action@v1.1.0 | |
id: compress | |
with: | |
command: c | |
files: | | |
sparkyuv.dll | |
include | |
outPath: libsparkyuv.windows-x86_64.tar.gz | |
- name: Upload built graviton library | |
uses: actions/upload-artifact@v4 | |
id: artifact-windows-x86_64 | |
with: | |
name: libsparkyuv.windows-x86_64.tar.gz | |
path: libsparkyuv.windows-x86_64.tar.gz |