CI #417
Workflow file for this run
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 | |
# Avoid duplicate builds for pull requests, allow manual trigger. | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
workflow_dispatch: | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: | |
- windows-2019 | |
- macos-12 | |
- ubuntu-22.04 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- run: git config --global core.autocrlf false | |
- name: Get sources | |
uses: actions/checkout@v4 | |
- name: Cache Deps | |
uses: actions/cache@v4 | |
with: | |
path: ./third_party/* | |
key: ${{ runner.os }}-${{ github.workspace }}-deps-${{ hashFiles('./third_party/*') }} | |
- run: make | |
- run: make test-depend | |
- run: make test | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: objectbox-generator-${{ runner.os }} | |
path: objectbox-generator* |