Skip to content

Commit

Permalink
github actions: master branch build doc
Browse files Browse the repository at this point in the history
  • Loading branch information
privat committed Jul 3, 2024
1 parent 97b707e commit a93b0cd
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 8 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on: [ push ]
env:
# BASIC_PACKAGES is used fo the basic tools (make)
BASIC_PACKAGES: git build-essential ccache libgc-dev graphviz libunwind-dev libreadline-dev pkg-config
# MORE_PACKAGES is used for more tools and libs (make more)
MORE_PACKAGES: libgmp-dev libcurl4-openssl-dev libevent-dev openjdk-17-jdk-headless libgles-dev libegl-dev libsdl1.2-dev libsdl2-dev libsdl2-mixer-dev libsdl2-gfx-dev libsdl2-image-dev libsdl2-net-dev libsdl2-ttf-dev libgtk-3-dev inkscape postgresql libxdg-basedir-dev gettext libsqlite3-dev libpq-dev libmongoc-dev openmpi-bin libopenmpi-dev

jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y $BASIC_PACKAGES $MORE_PACKAGES
- uses: actions/checkout@v4
- run: make
- uses: actions/upload-artifact@v4
with:
path: bin
name: bin
- run: make docs
- uses: actions/upload-artifact@v4
with:
path: doc
name: doc
- run: make web -C share/man
- uses: actions/upload-artifact@v4
with:
path: share/man/www
name: man
12 changes: 4 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,27 +60,23 @@ bin/nitpick:
src/version.nit:
cd src && ./git-gen-version.sh

doc/stdlib/index.html: bin/nitdoc bin/nitls
doc/stdlib/index.html: bin/nitdoc
@echo '***************************************************************'
@echo '* Generate doc for NIT standard library *'
@echo '***************************************************************'
bin/nitdoc lib -d doc/stdlib \
--custom-title "Nit Standard Library" \
--custom-brand "<a href=\"http://nitlanguage.org/\">Nitlanguage.org</a>" \
--custom-overview-text "<p>Documentation for the standard library of Nit<br/>Version $$(git describe)<br/>Date: $$(git show --format="%cd" | head -1)</p>" \
--custom-footer-text "Nit standard library. Version $$(git describe)." \
--piwik-tracker "pratchett.info.uqam.ca/piwik/" \
--piwik-site-id "2" \
--custom-footer-text "Nit standard library. Version $$(git describe)."

doc/nitc/index.html: bin/nitdoc bin/nitls
doc/nitc/index.html: bin/nitdoc
bin/nitdoc lib src/nit*.nit src/test_*.nit -d doc/nitc \
--private \
--custom-title "Nit Compilers and Tools" \
--custom-brand "<a href=\"http://nitlanguage.org/\">Nitlanguage.org</a>" \
--custom-overview-text "<p>Documentation for the Nit tools<br/>Version $$(git describe)<br/>Date: $$(git show --format="%cd" | head -1)</p>" \
--custom-footer-text "Nit tools. Version $$(git describe)." \
--piwik-tracker "pratchett.info.uqam.ca/piwik/" \
--piwik-site-id "3"
--custom-footer-text "Nit tools. Version $$(git describe)."

man:
# Setup PATH to find nitc
Expand Down

0 comments on commit a93b0cd

Please sign in to comment.