Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add depexts test for Altlinux #6277

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -122,6 +122,7 @@ users)

## Github Actions
* Add a doc generation job under linux [#5349 @rjbou]
* Add depext job for depext test on Altlinux [#XXX @rjbou]
rjbou marked this conversation as resolved.
Show resolved Hide resolved

## Doc
* Update the command to install opam to point to the new simplified url on opam.ocaml.org [#6226 @kit-ty-kate]
Expand Down
Loading