Skip to content

Change ubuntu version #10

Change ubuntu version

Change ubuntu version #10

Workflow file for this run

name: CI
on:
push:
branches:
- 'main'
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
jobs:
build:
strategy:
fail-fast: false
matrix:
ocaml-compiler:
- "5.2"
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install & Verify FFmpeg version
run: |
sudo apt-get update
sudo apt-get install -y ffmpeg libavcodec-dev libavutil-dev libavformat-dev libswscale-dev libavdevice-dev libavfilter-dev libavresample-dev
ffmpeg -version
pkg-config --modversion libavcodec
pkg-config --modversion libavutil
- name: Install OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- name: Install dependencies
run: opam install . --deps-only --with-test
#- name: Build SoundML libraries and executables
# run: opam exec -- dune build
#- name: Run tests
# run: opam exec -- dune runtest
- name: Build SoundML documentation
run: opam install odoc && opam exec -- dune build @doc
- name: Upload odoc documentation
uses: actions/upload-artifact@v4
with:
name: doc
path: |
_build/default/_doc/_html/soundml
_build/default/_doc/_html/odoc.support
lint-fmt:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout tree
uses: actions/checkout@v4
- name: Install OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: "5.2"
dune-cache: true
- uses: ocaml/setup-ocaml/lint-fmt@v2
deploy-site:
needs: [build, lint-fmt]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Download odoc documentation
uses: actions/download-artifact@v4
with:
name: doc
path: doc/
- name: Move documentation
run: mv doc/soundml doc/doc
- name: Deploy to VPS Server
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-rlgoDzvc -i"
SOURCE: "/doc/"
REMOTE_HOST: ${{ secrets.HOST }}
REMOTE_USER: ${{ secrets.USERNAME }}
TARGET: ${{ secrets.PATH }}
EXCLUDE: "/ocaml/, *.md"