This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,13 @@
name: Changelog check
on:
pull_request:
branches: [ main ]
types: [ opened, synchronize, reopened, labeled, unlabeled ]
jobs:
Changelog-Entry-Check:
name: Check Changelog Action
runs-on: ubuntu-latest
steps:
- uses: tarides/changelog-check-action@v3

View file

@ -0,0 +1,19 @@
name: Build on Dune PM
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
runs-on: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.runs-on }}
continue-on-error: true
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use dune
uses: ocaml-dune/setup-dune@v0.0.1
with:
automagic: true

View file

@ -0,0 +1,10 @@
name: PR number update
on: [pull_request_target]
jobs:
PR-Number-Update:
name: Update PR number
runs-on: ubuntu-latest
steps:
- uses: tarides/pr-number-action@v2

View file

@ -0,0 +1,53 @@
name: Build on `trunk`
on:
push:
branches:
- main
pull_request:
schedule:
# Every weekday, at 5:43 UTC
- cron: '43 5 * * 1-5'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Pick up a robust cache prefix
id: setup
run: |
# Ensure that cache is flushed when trunk is updated
cache_prefix="$(git ls-remote https://github.com/ocaml/ocaml.git refs/heads/trunk | cut -f 1)"
echo "cache_prefix=$cache_prefix" >> "$GITHUB_OUTPUT"
cat "$GITHUB_OUTPUT"
- name: Install OCaml compiler
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 'ocaml-variants.5.4.0+trunk'
dune-cache: true
cache-prefix: ${{ steps.setup.outputs.cache_prefix }}
- name: Install ppxlib dependencies
run: |
opam install ./ppxlib.opam --deps-only
- name: Show configuration
run: |
opam exec -- ocamlc -config
opam config list
opam exec -- dune printenv
opam list
- name: Build the ppxlib
run: opam exec -- dune build -p ppxlib @install
- name: Install test dependencies
run: |
opam install ./ppxlib.opam --deps-only -t
opam exec -- dune build -p ppxlib @runtest
continue-on-error: true