2022-05-12 19:07:01 +02:00
|
|
|
name: Test WHY2
|
2022-04-27 19:19:38 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ development ]
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
2022-07-11 18:06:29 +02:00
|
|
|
test-why2:
|
2022-05-21 15:13:49 +02:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-05-31 19:26:44 +02:00
|
|
|
os: [ ubuntu-latest ]
|
2022-05-21 15:13:49 +02:00
|
|
|
include:
|
2022-05-31 19:14:14 +02:00
|
|
|
- os: ubuntu-latest
|
2022-05-21 15:13:49 +02:00
|
|
|
output: out/why2-test
|
|
|
|
configure: configure.sh
|
|
|
|
app: why2
|
2022-05-21 15:46:19 +02:00
|
|
|
|
2022-05-21 15:13:49 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
ref: development
|
|
|
|
|
2022-05-26 18:54:48 +02:00
|
|
|
- if: matrix.os == 'ubuntu-latest'
|
|
|
|
name: Update packages
|
|
|
|
run: |
|
|
|
|
sudo apt update
|
2022-05-25 17:24:41 +02:00
|
|
|
# sudo apt upgrade
|
2022-05-21 15:13:49 +02:00
|
|
|
|
|
|
|
- name: Permissions
|
|
|
|
run: chmod +x ${{ matrix.configure }}
|
|
|
|
|
2022-05-27 18:45:05 +02:00
|
|
|
- name: Preparation
|
2022-05-21 15:13:49 +02:00
|
|
|
run: sudo ./${{ matrix.configure }}
|
|
|
|
|
|
|
|
- name: Install WHY2
|
|
|
|
run: sudo make install
|
|
|
|
|
|
|
|
- name: Build WHY2 Test
|
|
|
|
run: make test
|
|
|
|
|
|
|
|
- name: Test Lib
|
|
|
|
run: ./${{ matrix.output }}
|
|
|
|
|
2022-05-13 18:49:35 +02:00
|
|
|
- name: Test App
|
|
|
|
run: ${{ matrix.app }}
|