diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml new file mode 100644 index 0000000000..4601c85dd0 --- /dev/null +++ b/.github/workflows/master.yml @@ -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 diff --git a/Makefile b/Makefile index 48c3fe7cab..c5c69ab796 100644 --- a/Makefile +++ b/Makefile @@ -60,7 +60,7 @@ 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 '***************************************************************' @@ -68,19 +68,15 @@ doc/stdlib/index.html: bin/nitdoc bin/nitls --custom-title "Nit Standard Library" \ --custom-brand "Nitlanguage.org" \ --custom-overview-text "

Documentation for the standard library of Nit
Version $$(git describe)
Date: $$(git show --format="%cd" | head -1)

" \ - --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 "Nitlanguage.org" \ --custom-overview-text "

Documentation for the Nit tools
Version $$(git describe)
Date: $$(git show --format="%cd" | head -1)

" \ - --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