Set LIBCPUID_DEPRECATED macro to deprecate attributes #351
Workflow file for this run
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
name: Build (UNIX) | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
build_unix: | |
name: Build | |
runs-on: ${{ matrix.os.label }} | |
strategy: | |
matrix: | |
os: | |
- { label: macos-latest, name: macos-aarch64 } | |
- { label: macos-13, name: macos-x86_64 } | |
- { label: ubuntu-latest, name: linux-x86_64 } | |
env: | |
OS_NAME: ${{ matrix.os.name }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Generate build system | |
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="" -DLIBCPUID_TESTS:BOOL=ON | |
- name: Build | |
run: cmake --build build | |
# - name: Run cpuid_tool | |
# run: | | |
# echo "RAW dump" | |
# ./build/cpuid_tool/cpuid_tool --save=- | |
# echo "Report" | |
# ./build/cpuid_tool/cpuid_tool --all | |
- name: Run tests | |
run: | | |
make -C build consistency | |
make -C build test-old | |
- name: Install | |
run: | | |
cmake --install build | |
install -v AUTHORS ChangeLog COPYING Readme.md "$DESTDIR" | |
echo -e "Operating system and compiler version:\n$(uname -a)\n$(cc --version)" > "$DESTDIR/Readme.$OS_NAME" | |
env: | |
DESTDIR: ${{ github.workspace }}/installdir | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.os.name }} | |
path: installdir/* |