File tree Expand file tree Collapse file tree 2 files changed +57
-32
lines changed
Expand file tree Collapse file tree 2 files changed +57
-32
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: tests
33on : [push]
44
55jobs :
6- test :
6+ test-clang :
77 runs-on : ubuntu-22.04
88 permissions :
99 id-token : write
3535 clang++ -v
3636 which clang++
3737 make "${{ matrix.build-type }}"
38+ rm -rf mason_packages
3839
3940 # Run the clang-format and clang-tidy scripts. Any code formatting changes
4041 # will trigger the build to fail (idea here is to get us to pay attention
4445 make format
4546 make tidy
4647
47- - name : Run tests
48+ - name : Run node tests
4849 run : |
49- npm test
50+ npm test
51+
52+ test-gcc :
53+ runs-on : ubuntu-22.04
54+ permissions :
55+ id-token : write
56+ contents : read
57+
58+ strategy :
59+ fail-fast : false
60+ matrix :
61+ build-type : ['debug']
62+ # build-type: ['release', 'debug']
63+ node-version : ['22']
64+ # node-version: ['20', '22']
65+
66+ steps :
67+ - uses : actions/checkout@v4
68+ - name : Install packages
69+ run : |
70+ sudo apt update
71+ sudo apt-get install -y libstdc++-12-dev g++-12 gcc-12
72+
73+ - uses : actions/setup-node@v4
74+ with :
75+ node-version : ${{ matrix.node-version }}
76+
77+ - name : Install and setup
78+ env :
79+ CXX : g++-12
80+ CC : gcc-12
81+ LINK : g++-12
82+ AR : ar
83+ NM : nm
84+ CXXFLAGS : -fext-numeric-literals
85+ run : |
86+ node -v
87+ which node
88+ g++ -v
89+ which g++
90+ make "${{ matrix.build-type }}"
91+ rm -rf mason_packages
92+
93+ # Run the clang-format and clang-tidy scripts. Any code formatting changes
94+ # will trigger the build to fail (idea here is to get us to pay attention
95+ # and get in the habit of running these locally before committing)
96+ - name : Run format and tidy
97+ run : |
98+ make format
99+ make tidy
100+
101+ - name : Run node tests
102+ run : |
103+ npm test
Original file line number Diff line number Diff line change @@ -91,32 +91,3 @@ matrix:
9191 - which llvm-cov
9292 - pip install --user codecov
9393 - codecov --gcov-exec "llvm-cov gcov -l"
94- # Clang format build
95- - os : linux
96- # can be generic since we don't need nodejs to run formatting
97- language : generic
98- env : CLANG_FORMAT
99- # Overrides `install` to avoid initializing clang toolchain
100- install :
101- # Run the clang-format script. Any code formatting changes
102- # will trigger the build to fail (idea here is to get us to pay attention
103- # and get in the habit of running these locally before committing)
104- - make format
105- # Overrides `before_script`, no need to run tests
106- before_script : true
107- # Overrides `script` to disable publishing
108- script : true
109- # Clang tidy build
110- - os : linux
111- env : CLANG_TIDY
112- # Overrides `install` to avoid initializing clang toolchain
113- install :
114- # First run the clang-tidy target
115- # Any code formatting fixes automatically applied by clang-tidy
116- # will trigger the build to fail (idea here is to get us to pay attention
117- # and get in the habit of running these locally before committing)
118- - make tidy
119- # Overrides `before_script`, no need to run tests
120- before_script : true
121- # Overrides `script` to disable publishing
122- script : true
You can’t perform that action at this time.
0 commit comments