Test run-example #216
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
on: | |
push: | |
paths: | |
- 'infrastructure/uxas/**' | |
- 'infrastructure/paths.sh' | |
- 'infrastructure/specs/**' | |
- 'infrastructure/run_example.py' | |
- 'infrastructure/install-libexec/**' | |
- 'anod' | |
- 'src/cpp/**' | |
- 'run-example' | |
pull_request: | |
paths: | |
- 'infrastructure/uxas/**' | |
- 'infrastructure/paths.sh' | |
- 'infrastructure/specs/**' | |
- 'infrastructure/run_example.py' | |
- 'infrastructure/install-libexec/**' | |
- 'anod' | |
- 'src/cpp/**' | |
- 'run-example' | |
workflow_dispatch: | |
schedule: | |
- cron: '20 3 * * 4' | |
name: Test run-example | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
env: [ | |
{os: ubuntu-22.04, python: '3.10'}, | |
{os: ubuntu-24.04, python: '3.12'} | |
] | |
runs-on: ${{ matrix.env.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: OpenUxAS | |
- name: Set up python ${{ matrix.env.python }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.env.python }} | |
- name: Set up java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: Install infrastructure | |
run: | | |
cd OpenUxAS | |
infrastructure/install -vv --no-gnat --no-java -y | |
- name: Build OpenUxAS C++ | |
run: | | |
cd OpenUxAS | |
./anod -v build uxas | |
- name: Build OpenAMASE | |
run: | | |
cd OpenUxAS | |
./anod -v build amase | |
- name: Test run-example | |
run: | | |
cd OpenUxAS | |
./run-example 01_HelloWorld |