Skip to content

fixed bug where sections ended up in a copy (#108) #114

fixed bug where sections ended up in a copy (#108)

fixed bug where sections ended up in a copy (#108) #114

Workflow file for this run

name: Tests
on:
release:
types:
- published
push:
branches:
- master
pull_request:
jobs:
build-linux:
strategy:
matrix:
build-type: ["Debug"]
build-shared:
- { flag: "1", repr: "shared" }
- { flag: "0", repr: "static" }
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
- name: Restore from cache and install vcpkg
uses: lukka/run-vcpkg@v11
- name: deps
run: |
sudo apt-get update
sudo apt-get install -y build-essential clang
- name: configure
run: |
cmake \
-B build \
-S . \
--preset default \
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \
-DBUILD_SHARED_LIBS=${{ matrix.build-shared.flag }} \
-DBUILD_SVCLI=1 \
-DBUILD_TESTS=1
- name: build
run: cmake --build build
- name: tests
working-directory: build
run: ./test/uthenticode_test
build-macos:
strategy:
matrix:
build-type: ["Debug"]
build-shared:
- { flag: "1", repr: "shared" }
- { flag: "0", repr: "static" }
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
- name: Restore from cache and install vcpkg
uses: lukka/run-vcpkg@v11
- name: configure
run: |
cmake \
-B build \
-S . \
--preset default \
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \
-DBUILD_SHARED_LIBS=${{ matrix.build-shared.flag }} \
-DBUILD_SVCLI=1 \
-DBUILD_TESTS=1
- name: build
run: cmake --build build
- name: tests
working-directory: build
run: ./test/uthenticode_test
build-windows:
strategy:
matrix:
build-arch:
- { arch: "x64", triplet: "x64-windows" }
- { arch: "Win32", triplet: "x86-windows" }
build-type: ["Debug"]
runs-on: windows-latest
env:
VCPKG_DEFAULT_TRIPLET: ${{ matrix.build-arch.triplet }}
steps:
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
- name: Restore from cache and install vcpkg
uses: lukka/run-vcpkg@v11
- name: configure
shell: bash
run: |
cmake \
-G "Visual Studio 17 2022" \
-A ${{ matrix.build-arch.arch }} \
-B build \
-S . \
--preset default \
-DBUILD_SVCLI=1 \
-DBUILD_TESTS=1 \
..
- name: build
run: cmake --build build --config ${{ matrix.build-type }}
- name: tests
working-directory: build
run: |
./test/${{ matrix.build-type }}/uthenticode_test
all-tests-pass:
if: always()
needs:
- build-linux
- build-macos
- build-windows
runs-on: ubuntu-latest
steps:
- name: check test jobs
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
with:
jobs: ${{ toJSON(needs) }}