Skip to content

Add dmosi SAL implementation for Dmod_GetUptime #68

Add dmosi SAL implementation for Dmod_GetUptime

Add dmosi SAL implementation for Dmod_GetUptime #68

Workflow file for this run

name: Build and Test
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: Build
runs-on: ubuntu-latest
container:
image: chocotechnologies/dmod:1.0.2
strategy:
fail-fast: false
matrix:
build_type: [Debug, Release]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Configure CMake (Default)
run: |
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ..
- name: Build (Default)
run: |
cd build
make -j$(nproc)
- name: Verify library was created
run: |
test -f build/libdmosi.a
echo "✓ libdmosi.a created successfully"
- name: Clean for second build
run: |
rm -rf build
- name: Configure CMake (With DMOSI_DONT_IMPLEMENT_DMOD_API)
run: |
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DDMOSI_DONT_IMPLEMENT_DMOD_API=ON ..
- name: Build (With DMOSI_DONT_IMPLEMENT_DMOD_API)
run: |
cd build
make -j$(nproc)
- name: Verify library was created (second build)
run: |
test -f build/libdmosi.a
echo "✓ libdmosi.a created successfully with DMOSI_DONT_IMPLEMENT_DMOD_API=ON"