File tree Expand file tree Collapse file tree 2 files changed +44
-6
lines changed Expand file tree Collapse file tree 2 files changed +44
-6
lines changed Original file line number Diff line number Diff line change 88
99jobs :
1010 build-linux :
11- runs-on : ubuntu-24.04
11+ runs-on : ubuntu-latest
1212
1313 steps :
1414 - uses : actions/checkout@v4
6767 $i
6868 done
6969
70+ build-linux-mlir :
71+ runs-on : ubuntu-latest
72+
73+ steps :
74+ - uses : actions/checkout@v4
75+
76+ - name : Install LLVM and MLIR deps
77+ run : |
78+ sudo apt-get -y update
79+ sudo apt-get install -y \
80+ llvm-18-dev \
81+ libmlir-18-dev \
82+ mlir-18-tools
83+
84+ - name : Install unit tests requirements
85+ run : |
86+ python3 -m venv .env
87+ . .env/bin/activate
88+ pip install -r tests/unit_tests/requirements.txt
89+
90+ - name : Build
91+ run : |
92+ . .env/bin/activate
93+
94+ cmake . \
95+ -Bbuild \
96+ -DCMAKE_BUILD_TYPE=Release \
97+ -DCXX_ENABLE_MLIR=ON \
98+ -DMLIR_DIR=/usr/lib/llvm-18/lib/cmake/mlir
99+
100+ cmake --build build
101+
102+ - name : Test
103+ working-directory : build
104+ run : |
105+ ctest --output-on-failure
106+
70107 build-windows :
71108 runs-on : windows-latest
72109
89126 ctest --verbose -C Release
90127
91128 build-emscripten :
92- runs-on : ubuntu-24.04
129+ runs-on : ubuntu-latest
93130
94131 steps :
95132 - uses : actions/checkout@v4
@@ -173,7 +210,7 @@ jobs:
173210 done
174211
175212 build-wasi :
176- runs-on : ubuntu-24.04
213+ runs-on : ubuntu-latest
177214
178215 env :
179216 WASMTIME_VERSION : 25.0.2
@@ -243,7 +280,7 @@ jobs:
243280 retention-days : 1
244281
245282 release-please :
246- runs-on : ubuntu-24.04
283+ runs-on : ubuntu-latest
247284 if : false && github.repository == 'robertoraggi/cplusplus' && github.ref == 'refs/heads/main'
248285 steps :
249286 - uses : GoogleCloudPlatform/release-please-action@v3
@@ -258,7 +295,7 @@ jobs:
258295 templates/cxx-parse-esm/package.json
259296
260297 build-storybook :
261- runs-on : ubuntu-24.04
298+ runs-on : ubuntu-latest
262299 needs : build-emscripten
263300 steps :
264301 - uses : actions/checkout@v4
@@ -297,7 +334,7 @@ jobs:
297334 name : github-pages
298335 url : ${{ steps.deployment.outputs.page_url }}
299336
300- runs-on : ubuntu-24.04
337+ runs-on : ubuntu-latest
301338 steps :
302339 - name : Deploy to GitHub Pages
303340 id : deployment
Original file line number Diff line number Diff line change @@ -26,5 +26,6 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
2626 target_compile_options (cxx-mlir PRIVATE
2727 -Wno-unused-variable
2828 -Wno-covered-switch-default
29+ -Wno-unused-but-set-variable
2930 )
3031endif ()
You can’t perform that action at this time.
0 commit comments