Skip to content

Commit

Permalink
Test: Github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
brenocq committed Jul 12, 2024
1 parent 7179756 commit eaac08f
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: ubuntu-latest
name: 🐧 Linux
build_command: cmake --build build -- -j
test_command: ./git-kudos
- os: macos-latest
name: 🍎 MacOS
build_command: cmake --build build -- -j
test_command: ./git-kudos
- os: windows-latest
name: 🪟 Windows
build_command: cmake --build . --config Release
test_command: ./Release/git-kudos.exe

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up CMake
uses: actions/setup-cmake@v3

- name: Configure CMake
run: cmake -S . -B build

- name: Build CMake
run: ${{ matrix.build_command }}

- name: Test
run: ${{ matrix.test_command }}

0 comments on commit eaac08f

Please sign in to comment.