From 3fb1cfb68eebcd81718505bf0c8d8e6780875d6d Mon Sep 17 00:00:00 2001 From: Erik Abair Date: Fri, 24 Jun 2022 23:07:17 -0700 Subject: [PATCH] Adds basic build & test workflow. --- .github/workflows/build.yml | 37 +++++++++++++++++++++++++++++++++++++ CMakeLists.txt | 2 +- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..ef6ce99 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,37 @@ +name: Build + +on: + push: + branches: + - main + paths-ignore: + - '.github/**' + - '!.github/workflows/**' + pull_request: + paths-ignore: + - '.github/**' + - '!.github/workflows/**' + - 'README.md' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + submodules: recursive + - name: Install Dependencies + run: sudo apt-get update && sudo apt-get install -yq libboost-test-dev + - name: Build + run: | + mkdir build + cmake -Bbuild -S. + cmake --build build/ --target all + ls build + - name: Test Operations + run: build/operations_tests + - name: Test Disassembler + run: build/disassembler_tests + - name: Test Emulator + run: build/emulator_tests diff --git a/CMakeLists.txt b/CMakeLists.txt index be8248b..a187eb1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,7 +16,7 @@ option(nv2a_vsh_cpu_UNIT_TEST "Enable nv2a_vsh_cpu's various unit tests" ON) if (nv2a_vsh_cpu_UNIT_TEST) include(FindPkgConfig) find_package( - Boost 1.74 + Boost 1.71 COMPONENTS unit_test_framework REQUIRED