Skip to content

Commit

Permalink
updated ci with windows
Browse files Browse the repository at this point in the history
  • Loading branch information
araujo88 committed Mar 24, 2024
1 parent e4b0cc6 commit 1d3ba6e
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,29 @@ name: C/C++ CI

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

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
#- name: configure
# run: ./configure
- name: make
run: make
#- name: make check
# run: make check
#- name: make distcheck
# run: make distcheck
- uses: actions/checkout@v3

- name: Build on Ubuntu
if: runner.os == 'Linux'
run: make

- name: Setup Build Environment on Windows
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1

- name: Build on Windows with MSBuild
if: runner.os == 'Windows'
run: |
msbuild teapot.sln /p:Configuration=Release /p:Platform="x64"

0 comments on commit 1d3ba6e

Please sign in to comment.