From 4d41db7297e59f2dc2cefb67bc4a526eff89959f Mon Sep 17 00:00:00 2001 From: Hyblocker Date: Fri, 12 Jun 2026 09:53:01 +0200 Subject: [PATCH] feat: i think this ci should work --- .github/workflows/cmake.yml | 53 +++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/cmake.yml diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml new file mode 100644 index 0000000..b4d96dc --- /dev/null +++ b/.github/workflows/cmake.yml @@ -0,0 +1,53 @@ +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + workflow_dispatch: + +env: + BUILD_TYPE: RelWithDebInfo + +jobs: + build: + name: Build (${{ matrix.name }}) + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + include: + - name: windows-x64 + os: windows-2025-vs2026 + artifact-name: space-calibrator-win64 + + - name: linux-x64 + os: ubuntu-latest + container: registry.gitlab.steamos.cloud/steamrt/steamrt4/sdk:latest + artifact-name: space-calibrator-linux-x64 + + - name: linux-arm64 + os: ubuntu-latest + container: registry.gitlab.steamos.cloud/steamrt/steamrt4/sdk/arm64:latest + artifact-name: space-calibrator-linux-arm64 + + container: ${{ matrix.container }} + + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Configure CMake + run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + + - name: Build + run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: ${{ matrix.artifact-name }} + path: | + ${{ github.workspace }}/build/**/artifacts/ + ${{ github.workspace }}/build/driver_01spacecalibrator/ \ No newline at end of file