Skip to content

GitHub Actions ci.yml: update runners, run on all branches #429

GitHub Actions ci.yml: update runners, run on all branches

GitHub Actions ci.yml: update runners, run on all branches #429

Workflow file for this run

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*