From 29195a5310ea18621dcb5be0e8632d531145bb32 Mon Sep 17 00:00:00 2001 From: Raja Boujbel Date: Tue, 29 Oct 2024 17:45:27 +0100 Subject: [PATCH] ci: add depexts test for Altlinux --- .github/scripts/depexts/generate-actions.sh | 12 ++++++++++++ .github/workflows/depexts.yml | 18 ++++++++++++++++++ master_changes.md | 1 + 3 files changed, 31 insertions(+) diff --git a/.github/scripts/depexts/generate-actions.sh b/.github/scripts/depexts/generate-actions.sh index 07bfb37d6a0..9159eacc082 100644 --- a/.github/scripts/depexts/generate-actions.sh +++ b/.github/scripts/depexts/generate-actions.sh @@ -29,6 +29,14 @@ case "$target" in FROM alpine RUN apk add $mainlibs $ocaml RUN apk add g++ +EOF + ;; + altlinux) + cat >$dir/Dockerfile << EOF +FROM alt +RUN apt-get update +RUN apt-get install -y $mainlibs $ocaml +RUN apt-get install -y gcc-c++ EOF ;; archlinux) @@ -185,6 +193,10 @@ if [ $target = "alpine" ]; then # conf-pandoc.0.1 fi +#if [ $target = "altlinux" ]; then +# test_depext xxx +#fi + if [ $target = "fedora" ]; then test_depext conf-emacs.1 fi diff --git a/.github/workflows/depexts.yml b/.github/workflows/depexts.yml index 88355bd2f5b..0569bc1bf95 100644 --- a/.github/workflows/depexts.yml +++ b/.github/workflows/depexts.yml @@ -56,6 +56,24 @@ jobs: uses: ./.github/actions/alpine id: depexts-alpine + depexts-altlinux: + needs: opam-cache + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: opam binary cache + uses: actions/cache@v4 + with: + path: binary/opam + key: binary-${{ env.OPAMVERSION }} + - name: generate action + run: | + bash .github/scripts/depexts/generate-actions.sh altlinux + - name: depexts actions altlinux + uses: ./.github/actions/altlinux + id: depexts-altlinux + depexts-archlinux: needs: opam-cache runs-on: ubuntu-latest diff --git a/master_changes.md b/master_changes.md index 1aa9069f5ee..c88ffed57b7 100644 --- a/master_changes.md +++ b/master_changes.md @@ -121,6 +121,7 @@ users) ## Github Actions * Add a doc generation job under linux [#5349 @rjbou] + * Add depext job for depext test on Altlinux [#XXX @rjbou] ## Doc * Update the command to install opam to point to the new simplified url on opam.ocaml.org [#6226 @kit-ty-kate]