Skip to content

Commit 47f839a

Browse files
committed
add a separate test build for g++
1 parent b30b621 commit 47f839a

File tree

2 files changed

+57
-32
lines changed

2 files changed

+57
-32
lines changed

.github/workflows/test.yml

Lines changed: 57 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: tests
33
on: [push]
44

55
jobs:
6-
test:
6+
test-clang:
77
runs-on: ubuntu-22.04
88
permissions:
99
id-token: write
@@ -35,6 +35,7 @@ jobs:
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
@@ -44,6 +45,59 @@ jobs:
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

.travis.yml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)