Add dmosi SAL implementation for Dmod_GetUptime #68
This file contains hidden or 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: 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" | |