diff --git a/.github/workflows/test-cross-platform.yml b/.github/workflows/test-cross-platform.yml new file mode 100644 index 0000000..6f0e0a2 --- /dev/null +++ b/.github/workflows/test-cross-platform.yml @@ -0,0 +1,50 @@ +name: test-cross-platform + +on: + push: + branches: [main] + + pull_request: + branches: [main] + +jobs: + run-clang-format: + strategy: + matrix: + os-version: + - macos-latest + - macos-14 + - macos-13 + - macos-12 + - ubuntu-latest + - ubuntu-24.04 + - ubuntu-22.04 + - ubuntu-20.04 + - windows-latest + - windows-2022 + - windows-2019 + + runs-on: ${{ matrix.os-version }} + + steps: + - name: Set up checkout + uses: actions/checkout@v4 + + - name: Set up node + uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: npm + + - name: Set up node_modules + run: npm ci + + - name: Debug GLIBC version + if: runner.os == 'Linux' + run: ldd --version + + - name: Build + run: npm run build + + - name: Test + run: npx clang-format --version