Skip to content

Commit

Permalink
Migrate CI to GitHub workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
mity committed Dec 5, 2023
1 parent db02db8 commit c7f8b81
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 60 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build and Test

on:
- pull_request
- push

jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure
run: CFLAGS='--coverage -g -O0' cmake -DCMAKE_BUILD_TYPE=Debug -G 'Unix Makefiles' .
- name: Build
run: make VERBOSE=1
- name: Test
run: for testsuite in test-*; do echo "Running $testsuite:"; ./$testsuite; done
- 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 --remove coverage.info 'tests/*' --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=Debug -G "Visual Studio 17 2022" -A Win32 .
- name: Build
run: msbuild.exe hsluv-c.sln /p:Configuration=Debug /p:Platform=Win32
- name: Test
run: for %t in ("tests\Debug\test-*.exe") do %t

windows-64:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: microsoft/[email protected]
- name: Configure
run: cmake -DCMAKE_BUILD_TYPE=Debug -G "Visual Studio 17 2022" -A x64 .
- name: Build
run: msbuild.exe hsluv-c.sln /p:Configuration=Debug /p:Platform=x64
- name: Test
run: for %t in ("tests\Debug\test-*.exe") do %t
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

29 changes: 0 additions & 29 deletions appveyor.yml

This file was deleted.

0 comments on commit c7f8b81

Please sign in to comment.