Skip to content

Commit

Permalink
ci: add depexts test for Altlinux
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbou committed Oct 29, 2024
1 parent 8e3ee68 commit 29195a5
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/scripts/depexts/generate-actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/depexts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 29195a5

Please sign in to comment.