-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds a new job to the CI workflow which builds, runs the tests, and the benchmarks under meson on Linux, Windows and macos. The benchmark code up until now was not compiled with the same flags as the library and runtime and so had avoided some scrutiny from these warnings. Under Meson this is no longer the case, and so this code has been fixed up to clean up some warnings
- Loading branch information
Showing
7 changed files
with
83 additions
and
18 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 |
---|---|---|
|
@@ -58,3 +58,45 @@ jobs: | |
cmake . | ||
msbuild FlatCC.sln /m /property:Configuration=Release | ||
ctest -VV | ||
meson-build: | ||
name: Meson (${{matrix.os}}) | ||
runs-on: ${{matrix.os}} | ||
continue-on-error: true | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-22.04, macos-12, windows-2022 ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: microsoft/[email protected] | ||
if: runner.os == 'windows' | ||
- uses: actions/setup-python@v2 | ||
if: runner.os == 'windows' | ||
- name: Prepare MSVC | ||
uses: bus1/cabuild/action/msdevshell@v1 | ||
with: | ||
architecture: x64 | ||
if: runner.os == 'windows' | ||
- name: Install dependencies (windows) | ||
if: runner.os == 'windows' | ||
run: | | ||
pip install meson | ||
- name: Install dependencies (ubuntu) | ||
if: runner.os == 'linux' | ||
run: | | ||
sudo apt update -y | ||
sudo apt install ninja-build meson | ||
- name: Install dependencies (macos) | ||
if: runner.os == 'macos' | ||
run: | | ||
brew install meson ninja | ||
- name: Build and run tests | ||
run: | | ||
meson setup build --buildtype release | ||
meson compile -C build | ||
meson test -C build --verbose | ||
meson test -C build --benchmark --verbose |
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
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
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
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
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
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