GitHub Actions ci.yml: update runners, run on all branches #429
This file contains hidden or 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: | |
| pull_request: | |
| workflow_dispatch: | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| # Available runners: https://docs.github.com/en/actions/reference/runners/github-hosted-runners | |
| os: [ ubuntu-latest, macos-latest, macos-26, windows-latest ] | |
| 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* |