Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
oaknut: github: Build on x86-64
Browse files Browse the repository at this point in the history
  • Loading branch information
merryhime committed Jan 30, 2024
1 parent 496ff1b commit 143a3dc
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
39 changes: 38 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: [push, pull_request]
jobs:
test_on_ubuntu:
runs-on: ubuntu-latest
name: g++-10
name: g++-10 (aarch64)

steps:
- name: Checkout oaknut repo
Expand Down Expand Up @@ -207,3 +207,40 @@ jobs:
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build . --config Release

x86_64:
runs-on: ubuntu-latest
name: x86_64

steps:
- name: Checkout oaknut repo
uses: actions/checkout@v3

- name: Update package repositories
run: sudo apt-get update

- name: Install dependencies
run: sudo apt-get install -q -y ninja-build

- name: Checkout Catch2 v3 repo
uses: actions/checkout@v3
with:
repository: catchorg/Catch2
ref: v3.2.0
path: externals/catch

- name: Configure CMake
run: >
cmake
-B ${{github.workspace}}/build
-H.
-GNinja
-DOAKNUT_USE_BUNDLED_CATCH=ON
- name: Build
working-directory: ${{github.workspace}}/build
run: ninja

- name: Test
working-directory: ${{github.workspace}}/build
run: ./oaknut-tests -d yes
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ if (BUILD_TESTING)
else()
target_compile_options(oaknut-tests PRIVATE -Wall -Wextra -Wcast-qual -pedantic -pedantic-errors -Wfatal-errors -Wno-missing-braces)
endif()

add_test(oaknut-tests oaknut-tests --durations yes)
endif()

# Install
Expand Down

0 comments on commit 143a3dc

Please sign in to comment.