Skip to content

Commit

Permalink
Add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Apr 2, 2024
1 parent 69244a1 commit 0e77b21
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 8 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
strategy:
matrix:
include:
- os: ubuntu-latest
platform: linux
arch: x64
- os: macos-latest
platform: darwin
arch: x64
- os: windows-latest
platform: win32
arch: x64
runs-on: ${{ matrix.os }}
name: ${{ matrix.platform }}-${{ matrix.arch }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/cache@v4
with:
path: vendor/bare/corestore
key: corestore-${{ matrix.platform }}-${{ matrix.arch }}
- uses: actions/setup-node@v4
with:
node-version: lts/*
- run: npm install -g bare-dev
- run: bare-dev configure --debug --platform ${{ matrix.platform }} --arch ${{ matrix.arch }}
- run: bare-dev build --debug
- run: bare-dev test --debug
9 changes: 1 addition & 8 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,7 @@ foreach(test IN LISTS tests)
${test}
PRIVATE
appling_static
)

target_include_directories(
${test}
PRIVATE
$<TARGET_PROPERTY:appling,INTERFACE_INCLUDE_DIRECTORIES>
$<TARGET_PROPERTY:hex,INTERFACE_INCLUDE_DIRECTORIES>
$<TARGET_PROPERTY:compact,INTERFACE_INCLUDE_DIRECTORIES>
compact_static
)

add_test(
Expand Down

0 comments on commit 0e77b21

Please sign in to comment.