-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: create test-cross-platform.yml
- Loading branch information
1 parent
e8d23ba
commit 4704050
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |