Nightly tests #525
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nightly tests | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
test_moorhen: | |
runs-on: ubuntu-latest | |
timeout-minutes: 240 | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout Moorhen | |
with: | |
submodules: recursive | |
- name: Install dependencies | |
working-directory: /home/runner/work/Moorhen/ | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y bzr nodejs npm pkg-config libfreetype6-dev libxft-dev blt-dev build-essential zlib1g-dev autoconf autotools-dev libtool gcc cmake patch curl libeigen3-dev meson | |
- name: Download and install emsdk | |
run: | | |
cd /home/runner/work/Moorhen/ | |
git clone https://github.com/emscripten-core/emsdk.git | |
cd /home/runner/work/Moorhen/emsdk/ | |
./emsdk install latest | |
./emsdk activate latest | |
- name: Download Moorhen sources | |
working-directory: /home/runner/work/Moorhen/Moorhen | |
run: | | |
source /home/runner/work/Moorhen/emsdk/emsdk_env.sh | |
./get_sources | |
- name: Install bindings | |
working-directory: /home/runner/work/Moorhen/Moorhen | |
run: | | |
source /home/runner/work/Moorhen/emsdk/emsdk_env.sh | |
./initial_build.sh | |
- name: Run tests | |
working-directory: /home/runner/work/Moorhen/Moorhen/baby-gru | |
run: | | |
source /home/runner/work/Moorhen/emsdk/emsdk_env.sh | |
npm test |