ci #256
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "ci" | |
on: | |
workflow_dispatch: | |
release: | |
types: | |
- created | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-22.04, windows-2022, macos-13] # macos-12 is deprecated https://github.com/actions/runner-images/issues/10721 | |
fail-fast: false # see https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#handling-failures | |
runs-on: ${{ matrix.os }} | |
env: | |
BUILD_TYPE: debug | |
INSTALL_PATH: out | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v4 | |
- name: Cache Submodules | |
id: cache-submodules | |
uses: actions/cache@v4 | |
with: | |
path: libs | |
key: cache-submodules-${{ hashFiles( '.gitmodules' ) }} | |
restore-keys: cache-submodules- | |
- name: Git Checkout Submodules | |
if: steps.cache-submodules.outputs.cache-hit == 'false' | |
run: | | |
git submodule init | |
git submodule update | |
- name: Install | |
shell: bash | |
run: rake install --trace | |
- name: Build | |
shell: bash | |
run: rake build --trace |