Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbou committed Jan 29, 2025
1 parent b2d570b commit 68bd0c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 48 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/main/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ fi

if [ "$OPAM_DEPENDS" = "1" ]; then
(set +x; echo -en "::group::depends\r") 2>/dev/null
opam_admin_url="https://github.com/ocamlpro/opam-bundle"
opam_admin_url="https://github.com/ocaml-opam/opam-publish"
if [ ! -d $CACHE/opam-admin ]; then
git clone $opam_admin_url $CACHE/opam-admin
fi
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.ml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ let ocamls = [
"4.08.1";

(* The last elements of the list after 4.14 will be used as default versions *)
latest_ocaml4; latest_ocaml5;
latest_ocaml4;
]
let start_latests_ocaml = (4, 14)

Expand Down
48 changes: 2 additions & 46 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
needs: Analyse
strategy:
matrix:
ocamlv: [ 4.08.1, 4.14.2, 5.3.0 ]
ocamlv: [ 4.08.1, 4.14.2 ]
fail-fast: true
steps:
- name: Install bubblewrap
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
needs: [ Analyse, Build-Linux ]
strategy:
matrix:
ocamlv: [ 4.14.2, 5.3.0 ]
ocamlv: [ 4.14.2 ]
fail-fast: false
env:
OPAM_DEPENDS: 1
Expand Down Expand Up @@ -150,47 +150,3 @@ jobs:
BASE_REF_SHA: ${{ github.event.pull_request.base.sha }}
PR_REF_SHA: ${{ github.event.pull_request.head.sha }}
run: bash -exu .github/scripts/main/main.sh x86_64-pc-linux-gnu

####
# Around opam tests
####
Hygiene:
runs-on: ubuntu-22.04
needs: Analyse
steps:
- name: Install system's dune and ocaml packages
run: sudo apt install dune ocaml
- name: Checkout tree
uses: actions/checkout@v4
- name: src_ext/archives and opam-repository Cache
id: archives
uses: actions/cache@v4
with:
path: |
src_ext/archives
~/opam-repository
key: ${{ needs.Analyse.outputs.archives }}
enableCrossOsArchive: true
- name: Get changed files
id: files
uses: Ana06/[email protected]
- name: Changed files list
run: |
for changed_file in ${{ steps.files.outputs.modified }}; do
echo "M ${changed_file}."
done
for changed_file in ${{ steps.files.outputs.removed }}; do
echo "D ${changed_file}."
done
for changed_file in ${{ steps.files.outputs.added }}; do
echo "A ${changed_file}."
done
for changed_file in ${{ steps.files.outputs.renamed }}; do
echo "AD ${changed_file}."
done
- name: Hygiene
env:
BASE_REF_SHA: ${{ github.event.pull_request.base.sha }}
PR_REF_SHA: ${{ github.event.pull_request.head.sha }}
if: contains(steps.files.outputs.modified, 'configure.ac') || contains(steps.files.outputs.modified, 'shell/install.sh') || contains(steps.files.outputs.all, 'src_ext') || contains(steps.files.outputs.all, '.github/workflows')
run: bash -exu .github/scripts/main/hygiene.sh

0 comments on commit 68bd0c8

Please sign in to comment.