upstream: https://github.com/mirage/mirage-crypto
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: remove dead CI workflows inherited from upstream

The fork inherited CI configuration from the original mirage-crypto
import:

- .github/workflows/test.yml (Linux GitHub Actions)
- .github/workflows/windows.yml (Windows GitHub Actions)
- .cirrus.yml (Cirrus CI for FreeBSD/macOS)
- .test-mirage.sh (MirageOS unikernel test script)

None of these have ever run in this fork:

- The monorepo has no top-level .github/workflows/ -- GitHub Actions
only looks at workflows at the repo root, never inside subtree
packages, so the per-package workflows have been dead since the
import.
- They install opam packages by upstream names (mirage-crypto,
mirage-crypto-rng-mirage, mirage-crypto-pk, mirage-crypto-ec)
which do not exist in the fork (we ship crypto, crypto-rng,
crypto-pk, crypto-ec).
- .test-mirage.sh invokes "mirage configure" against a mirage/
unikernel test directory that was dropped from the fork along
with the Lwt/Miou sub-libraries.

Also drop the corresponding .gitignore entries for the
no-longer-present mirage/ directory.

This is a cleanup-only commit -- no source files are touched.
The 4068-test suite still passes (no behavioural change).

-157
-20
.cirrus.yml
··· 1 - freebsd_instance: 2 - image_family: freebsd-14-3 3 - 4 - freebsd_task: 5 - env: 6 - matrix: 7 - - OCAML_VERSION: 4.14.2 8 - 9 - pkg_install_script: pkg install -y ocaml-opam gmp gmake pkgconf bash 10 - 11 - ocaml_script: 12 - - opam init -a --comp=$OCAML_VERSION 13 - - opam env 14 - 15 - pin_packages_script: 16 - - opam install -y --deps-only -t ./mirage-crypto.opam ./mirage-crypto-rng.opam ./mirage-crypto-rng-mirage.opam ./mirage-crypto-ec.opam ./mirage-crypto-pk.opam 17 - 18 - test_script: opam exec -- dune runtest -p mirage-crypto,mirage-crypto-rng,mirage-crypto-rng-mirage,mirage-crypto-pk,mirage-crypto-ec 19 - 20 - test_mirage_script: eval `opam env` && ./.test-mirage.sh
-69
.github/workflows/test.yml
··· 1 - name: Crypto 2 - 3 - on: [push, pull_request] 4 - 5 - jobs: 6 - tests: 7 - name: Tests 8 - 9 - strategy: 10 - fail-fast: false 11 - matrix: 12 - ocaml-version: ["4.14.2"] 13 - operating-system: [macos-latest, ubuntu-latest] 14 - 15 - runs-on: ${{ matrix.operating-system }} 16 - 17 - steps: 18 - - name: Checkout code 19 - uses: actions/checkout@v4 20 - 21 - - name: Use OCaml ${{ matrix.ocaml-version }} 22 - uses: ocaml/setup-ocaml@v3 23 - with: 24 - opam-local-packages: | 25 - *.opam 26 - !mirage-crypto-rng-miou-unix.opam 27 - ocaml-compiler: ${{ matrix.ocaml-version }} 28 - 29 - - name: Install dependencies 30 - run: opam install --deps-only -t mirage-crypto mirage-crypto-rng mirage-crypto-rng-mirage mirage-crypto-pk mirage-crypto-ec 31 - 32 - - name: Build 33 - run: opam exec -- dune build -p mirage-crypto,mirage-crypto-rng,mirage-crypto-rng-mirage,mirage-crypto-pk,mirage-crypto-ec 34 - 35 - - name: Test 36 - run: opam exec -- dune runtest -p mirage-crypto,mirage-crypto-rng,mirage-crypto-rng-mirage,mirage-crypto-pk,mirage-crypto-ec 37 - 38 - build-test-ocaml-5: 39 - name : Tests with OCaml 5 40 - 41 - strategy: 42 - fail-fast: false 43 - matrix: 44 - ocaml-version: ["5.2.1"] 45 - operating-system: [macos-latest, ubuntu-latest] 46 - 47 - runs-on: ${{ matrix.operating-system }} 48 - 49 - steps: 50 - - name: Checkout code 51 - uses: actions/checkout@v4 52 - 53 - - name: Use OCaml ${{ matrix.ocaml-version }} 54 - uses: ocaml/setup-ocaml@v3 55 - with: 56 - opam-local-packages: | 57 - mirage-crypto.opam 58 - mirage-crypto-rng.opam 59 - mirage-crypto-rng-miou-unix.opam 60 - ocaml-compiler: ${{ matrix.ocaml-version }} 61 - 62 - - name: Install dependencies 63 - run: opam install --deps-only -t mirage-crypto mirage-crypto-rng mirage-crypto-rng-miou-unix 64 - 65 - - name: Build 66 - run: opam exec -- dune build -p mirage-crypto,mirage-crypto-rng,mirage-crypto-rng-miou-unix 67 - 68 - - name: Test 69 - run: opam exec -- dune runtest -p mirage-crypto,mirage-crypto-rng,mirage-crypto-rng-miou-unix
-39
.github/workflows/windows.yml
··· 1 - name: Crypto 2 - 3 - on: [push, pull_request] 4 - 5 - jobs: 6 - tests: 7 - name: Tests 8 - 9 - strategy: 10 - fail-fast: false 11 - matrix: 12 - ocaml-version: ["4.14.2"] 13 - operating-system: [windows-latest] 14 - 15 - runs-on: ${{ matrix.operating-system }} 16 - 17 - steps: 18 - - name: Checkout code 19 - uses: actions/checkout@v4 20 - 21 - - name: Use OCaml ${{ matrix.ocaml-compiler }} 22 - uses: ocaml/setup-ocaml@v3 23 - with: 24 - opam-repositories: | 25 - opam-repository-mingw: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset 26 - default: https://github.com/ocaml/opam-repository.git 27 - opam-local-packages: | 28 - *.opam 29 - !mirage-crypto-rng-miou-unix.opam 30 - ocaml-compiler: ${{ matrix.ocaml-version }} 31 - 32 - - name: Install dependencies 33 - run: opam install --deps-only -t mirage-crypto mirage-crypto-rng mirage-crypto-rng-mirage mirage-crypto-pk mirage-crypto-ec 34 - 35 - - name: Build 36 - run: opam exec -- dune build -p mirage-crypto,mirage-crypto-rng,mirage-crypto-rng-mirage,mirage-crypto-pk,mirage-crypto-ec 37 - 38 - - name: Test 39 - run: opam exec -- dune runtest -p mirage-crypto,mirage-crypto-rng,mirage-crypto-rng-mirage,mirage-crypto-pk,mirage-crypto-ec
-12
.gitignore
··· 1 1 _build 2 2 .merlin 3 3 .*.swp 4 - mirage/Makefile 5 - mirage/crypto_test* 6 - mirage/dune 7 - mirage/dune-project 8 - mirage/dune.build 9 - mirage/dune.config 10 - mirage/key_gen.ml 11 - mirage/main.ml 12 - mirage/main.native 13 - mirage/*opam 14 - mirage/myocamlbuild.ml 15 - mirage/.mirage.config 16 4 _opam 17 5 *.install 18 6 .opam/
-17
.test-mirage.sh
··· 1 - #!/bin/sh 2 - 3 - set -ex 4 - 5 - opam install --confirm-level=unsafe-yes "mirage>4" 6 - # to satisfy hardcoded version constraints in mirage, we need to be < 0.12.0 7 - # and "dune subst" doesn't work on these PR checkouts 8 - version='version: "2.99.0~dev"' 9 - echo $version >> mirage-crypto-rng-mirage.opam 10 - echo $version >> mirage-crypto-rng.opam 11 - echo $version >> mirage-crypto.opam 12 - echo $version >> mirage-crypto-pk.opam 13 - (mirage configure -t unix -f mirage/config.ml && gmake depend && dune build --root . mirage/dist/ && mirage/dist/crypto-test) || exit 1 14 - (mirage configure -t hvt -f mirage/config.ml && gmake depend && dune build --root . mirage/dist/) || exit 1 15 - if [ $(uname -m) = "amd64" ] || [ $(uname -m) = "x86_64" ]; then 16 - (mirage configure -t xen -f mirage/config.ml && gmake depend && dune build --root . mirage/dist/) || exit 1 17 - fi