Skip to content

changes

changes #59

Workflow file for this run

name: ci
on:
workflow_dispatch:
push:
branches: ["3.7", "main", "macos-windows-ci"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["3.7", "main"]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
language: [cpp, csharp, java, python, js] # available on all os
os: [macos-latest, ubuntu-latest, windows-latest]
include:
- language: swift
os: macos-latest
- language: php
os: [ubuntu-latest, macos-latest]
- language: ruby
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Dependencies
uses: ./.github/actions/setup-dependencies
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ runner.os }}-build
if: startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'macos')
- name: Window Cache
if: startsWith(matrix.os, 'windows')
uses: actions/cache@v3
with:
path: |
**/bin
**/obj
key: ${{ runner.os }}-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-build-${{ github.sha }}
${{ runner.os }}-build-
- name: Build ${{ matrix.os }}
uses: ./.github/actions/build
- name: Build ${{ matrix.os }}
uses: ./.github/actions/test
with:
language: ${{ matrix.language }}