-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI pipelines and clean up the code a little bit (#2)
- Loading branch information
Showing
20 changed files
with
1,166 additions
and
552 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,89 @@ | ||
name: Linux_CI | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- rel-* | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
Linux_x64_gcc_ubuntu24_release: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
set -e -x | ||
rm -rf build | ||
cmake --workflow --preset linux_gcc_release_workflow | ||
Linux_x64_gcc_ubuntu22_release: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
set -e -x | ||
rm -rf build | ||
cmake --workflow --preset linux_gcc_release_workflow | ||
Linux_x64_gcc_ubuntu24_debug: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
set -e -x | ||
rm -rf build | ||
cmake --workflow --preset linux_gcc_debug_workflow | ||
Linux_x64_clang_ubuntu24_debug: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
set -e -x | ||
rm -rf build | ||
cmake --workflow --preset linux_clang_debug_workflow | ||
Linux_x64_gcc_ubuntu24_debug_asan: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
set -e -x | ||
rm -rf build | ||
cmake --workflow --preset linux_gcc_debug_asan_workflow | ||
Linux_wasm_debug_asan: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
set -e -x | ||
rm -rf build | ||
mkdir -p build | ||
cd build | ||
git clone https://github.com/emscripten-core/emsdk.git | ||
cd emsdk | ||
./emsdk install latest | ||
./emsdk activate latest | ||
source emsdk_env.sh | ||
cd .. | ||
CFLAGS="-O0 -g -fsanitize=address" CXXFLAGS="-O0 -g -fsanitize=address" emcmake cmake .. -DCMAKE_BUILD_TYPE=Debug -DMLAS_ENABLE_WEBASSEMBLY_THREADS=ON | ||
make -j $(nproc) all | ||
ctest --output-on-failure | ||
Linux_wasm_release: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
set -e -x | ||
rm -rf build | ||
mkdir -p build | ||
cd build | ||
git clone https://github.com/emscripten-core/emsdk.git | ||
cd emsdk | ||
./emsdk install latest | ||
./emsdk activate latest | ||
source emsdk_env.sh | ||
cd .. | ||
CFLAGS="-O2 -DNDEBUG -g" CXXFLAGS="-O2 -DNDEBUG -g" emcmake cmake .. -DCMAKE_BUILD_TYPE=Release -DMLAS_ENABLE_WEBASSEMBLY_THREADS=ON | ||
make -j $(nproc) all | ||
ctest --output-on-failure |
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,31 @@ | ||
name: MacOS_CI | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- rel-* | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
# The following one doesn't work on macos-12. It has some compiling errors related to std::date | ||
MacOS14_arm64_release: | ||
runs-on: macos-14 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
set -e -x | ||
rm -rf build | ||
cmake --workflow --preset macos_arm64_release_workflow | ||
MacOS14_universal2_release: | ||
runs-on: macos-14 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
set -e -x | ||
rm -rf build | ||
cmake --workflow --preset macos_universal2_release_workflow |
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
Oops, something went wrong.