-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate CI from Travis and Appveyor to Github Workflows.
- Loading branch information
Showing
4 changed files
with
49 additions
and
70 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,49 @@ | ||
name: Build and Test | ||
|
||
on: | ||
- pull_request | ||
- push | ||
|
||
jobs: | ||
linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Configure | ||
# We enforce -Wdeclaration-after-statement because Qt project needs to | ||
# build MD4C with Integrity compiler which chokes whenever a declaration | ||
# is not at the beginning of a block. | ||
run: CFLAGS='--coverage -g -O0 -Wall -Wdeclaration-after-statement -Werror' cmake -DCMAKE_BUILD_TYPE=Debug -G 'Unix Makefiles' . | ||
- name: Build | ||
run: make VERBOSE=1 | ||
- name: Test | ||
run: ./scripts/run-tests.sh | ||
- name: Code Coverage Report | ||
if: ${{ github.event_name == 'push' }} | ||
continue-on-error: true | ||
run: | | ||
sudo apt-get install -y lcov | ||
lcov --directory . --capture --output-file coverage.info | ||
lcov --remove coverage.info '/usr/*' --output-file coverage.info | ||
lcov --list coverage.info | ||
bash <(curl -s https://codecov.io/bash) | ||
windows-32: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: microsoft/[email protected] | ||
- name: Configure | ||
run: cmake -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 17 2022" -A Win32 . | ||
- name: Build | ||
run: msbuild.exe md4c.sln.sln /p:Configuration=Release /p:Platform=Win32 | ||
|
||
windows-64: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: microsoft/[email protected] | ||
- name: Configure | ||
run: cmake -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 17 2022" -A x64 . | ||
- name: Build | ||
run: msbuild.exe md4c.sln /p:Configuration=Release /p:Platform=x64 |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.