Skip to content

test codesign dune patch #4163

test codesign dune patch

test codesign dune patch #4163

Workflow file for this run

name: Pipeline
on:
pull_request:
branches:
- master
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
nix-fmt-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
- name: fmt
run: |
find . -iname '*.nix' | xargs nix shell -f ./ nixpkgs-fmt -c nixpkgs-fmt --check
- name: check
run: nix flake check
native-linux:
strategy:
fail-fast: false
matrix:
setup:
- { ocaml-version: 4_14, continue-on-error: false }
- { ocaml-version: 5_0, continue-on-error: false }
- { ocaml-version: 5_1, continue-on-error: false }
- { ocaml-version: 5_2, continue-on-error: true }
name: Native packages (Linux, OCaml ${{ matrix.setup.ocaml-version }})
runs-on: ubuntu-latest
env:
NIXPKGS_ALLOW_UNFREE: 1
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
with:
extra_nix_config: |
experimental-features = nix-command flakes
system-features = nixos-test benchmark big-parallel kvm
extra-substituters = https://anmonteiro.nix-cache.workers.dev
extra-trusted-public-keys = ocaml.nix-cache.com-1:/xI2h2+56rwFfKyyFVbkJSeGqSIYMC/Je+7XXqGKDIY=
- uses: nix-ocaml/nix-s3-action@fork
with:
endpoint: "s3://overlays?endpoint=https://7a53c28e9b7a91239f9ed42da04276bc.r2.cloudflarestorage.com"
signingKey: ${{ secrets.R2_SIGNING_KEY }}
awsAccessKeyId: ${{ secrets.R2_ACCESS_KEY_ID }}
awsSecretAccessKey: ${{ secrets.R2_SECRET_ACESS_KEY }}
- name: Build nix packages
run: ./ci.sh x86_64-linux build_${{ matrix.setup.ocaml-version }}
continue-on-error: ${{ matrix.setup.continue-on-error }}
top-level-packages:
strategy:
fail-fast: false
matrix:
setup:
- { os: ubuntu-latest, target: x86_64-linux }
- { os: macos-13, target: x86_64-darwin }
name: Native (Top-level) packages (${{ matrix.setup.os }})
runs-on: ${{ matrix.setup.os }}
env:
NIXPKGS_ALLOW_UNFREE: 1
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
with:
extra_nix_config: |
experimental-features = nix-command flakes
system-features = nixos-test benchmark big-parallel kvm
extra-substituters = https://anmonteiro.nix-cache.workers.dev
extra-trusted-public-keys = ocaml.nix-cache.com-1:/xI2h2+56rwFfKyyFVbkJSeGqSIYMC/Je+7XXqGKDIY=
- uses: nix-ocaml/nix-s3-action@fork
with:
endpoint: "s3://overlays?endpoint=https://7a53c28e9b7a91239f9ed42da04276bc.r2.cloudflarestorage.com"
signingKey: ${{ secrets.R2_SIGNING_KEY }}
awsAccessKeyId: ${{ secrets.R2_ACCESS_KEY_ID }}
awsSecretAccessKey: ${{ secrets.R2_SECRET_ACESS_KEY }}
- name: Build nix packages
run: ./ci.sh ${{ matrix.setup.target }} build_top-level-packages
native-macos:
strategy:
fail-fast: false
matrix:
setup:
- { ocaml-version: 4_14, continue-on-error: false }
- { ocaml-version: 5_0, continue-on-error: false }
- { ocaml-version: 5_1, continue-on-error: false }
- { ocaml-version: 5_2, continue-on-error: true }
name: Native packages (macOS, OCaml ${{ matrix.setup.ocaml-version }})
runs-on: macos-13
env:
NIXPKGS_ALLOW_UNFREE: 1
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
with:
extra_nix_config: |
experimental-features = nix-command flakes
system-features = nixos-test benchmark big-parallel kvm
extra-substituters = https://anmonteiro.nix-cache.workers.dev
extra-trusted-public-keys = ocaml.nix-cache.com-1:/xI2h2+56rwFfKyyFVbkJSeGqSIYMC/Je+7XXqGKDIY=
- uses: nix-ocaml/nix-s3-action@fork
with:
endpoint: "s3://overlays?endpoint=https://7a53c28e9b7a91239f9ed42da04276bc.r2.cloudflarestorage.com"
signingKey: ${{ secrets.R2_SIGNING_KEY }}
awsAccessKeyId: ${{ secrets.R2_ACCESS_KEY_ID }}
awsSecretAccessKey: ${{ secrets.R2_SECRET_ACESS_KEY }}
- name: Build nix packages
run: ./ci.sh x86_64-darwin build_${{ matrix.setup.ocaml-version }}
continue-on-error: ${{ matrix.setup.continue-on-error }}
cross-compilers:
# needs: [native-linux]
strategy:
fail-fast: false
matrix:
setup:
- { ocaml-version: 4_14, continue-on-error: false }
- { ocaml-version: 5_0, continue-on-error: false }
- { ocaml-version: 5_1, continue-on-error: false }
- { ocaml-version: 5_2, continue-on-error: false }
target:
- arm64
- musl
name: ${{matrix.target}} packages (OCaml ${{ matrix.setup.ocaml-version }})
runs-on: ubuntu-latest
env:
NIXPKGS_ALLOW_UNFREE: 1
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
with:
extra_nix_config: |
experimental-features = nix-command flakes
system-features = nixos-test benchmark big-parallel kvm
extra-substituters = https://anmonteiro.nix-cache.workers.dev
extra-trusted-public-keys = ocaml.nix-cache.com-1:/xI2h2+56rwFfKyyFVbkJSeGqSIYMC/Je+7XXqGKDIY=
- uses: nix-ocaml/nix-s3-action@fork
with:
endpoint: "s3://overlays?endpoint=https://7a53c28e9b7a91239f9ed42da04276bc.r2.cloudflarestorage.com"
signingKey: ${{ secrets.R2_SIGNING_KEY }}
awsAccessKeyId: ${{ secrets.R2_ACCESS_KEY_ID }}
awsSecretAccessKey: ${{ secrets.R2_SECRET_ACESS_KEY }}
- name: Build nix packages
run : ./ci.sh x86_64-linux ${{matrix.target}}_${{matrix.setup.ocaml-version}}
continue-on-error: ${{ matrix.setup.continue-on-error }}