Skip to content

Run CI workflow on macOS, Windows, and Linux #1050

Run CI workflow on macOS, Windows, and Linux

Run CI workflow on macOS, Windows, and Linux #1050

Workflow file for this run

name: ci
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
# See https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build_and_test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/build
- name: Publish
uses: ./.github/actions/publish
- name: Run Tests
uses: ./.github/actions/test
- name: Install Templates
run: dotnet new install src/IceRpc.Templates/bin/Debug/IceRpc.Templates.*.nupkg
shell: bash
- name: Test Templates
uses: ./.github/actions/test-templates
if: runner.os != 'Windows'
- name: Build Examples
uses: ./.github/actions/build-examples
- name: Build DocFX Examples
run: dotnet build docfx/examples/Examples.sln
shell: bash