use conan2, fix plt bug and warning fix, test workflow #162
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: CI | |
on: | |
push: | |
branches: [ main ] | |
tags: ['*'] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Conan | |
id: conan | |
uses: turtlebrowser/get-conan@main | |
with: | |
version: 2.8.1 | |
- name: Configure conan | |
run: | | |
conan profile detect | |
sed -i 's/compiler\.cppstd=.*/compiler.cppstd=20/g' ~/.conan2/profiles/default | |
conan install --build=fmt/11.0.0 . | |
- name: Build | |
run: | | |
CURDIR=$PWD | |
mkdir -p build | |
cd build | |
cmake "-DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=$CURDIR/conan_provider.cmake" -DCMAKE_C_COMPILER=/usr/bin/gcc-10 -DCMAKE_CXX_COMPILER=/usr/bin/g++-10 -DCMAKE_BUILD_TYPE=Release .. | |
cmake --build . | |
- name: Unit test | |
run: | | |
cd build && ctest | |
- name: Smoke test | |
run: | | |
$GITHUB_WORKSPACE/build/bin/asm-parser $GITHUB_WORKSPACE/resources/example_intel.asm > ./example_intel.json | |
- uses: actions/upload-artifact@v4 | |
with: | |
path: build/bin/asm-parser | |
- name: Release | |
uses: fnkr/github-action-ghr@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
env: | |
GHR_COMPRESS: xz | |
GHR_PATH: build/bin/ | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |