WHY2/.github/workflows/why2-project.yml
ENGO150 9feca42ec5
Some checks failed
Codacy Scan / Codacy Security Scan (push) Failing after 1m22s
Build WHY2-chat / test-why2 (./out/why2-chat-client, configure.sh, ubuntu-latest, ./out/why2-chat-server) (push) Failing after 1m13s
Test WHY2-logger / test-why2 (why2-logger, configure.sh, ubuntu-latest, ./out/why2-logger-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Failing after 1m0s
Test Project / test-project (configure.sh, ubuntu-latest, test) (push) Failing after 4m48s
Test WHY2-core / test-why2 (why2, configure.sh, ubuntu-latest, ./out/why2-core-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Failing after 1m9s
fixed bs in workflows
2025-01-08 18:01:54 +01:00

68 lines
1.8 KiB
YAML

# This is part of WHY2
# Copyright (C) 2022 Václav Šmejkal
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
name: Test Project
on:
push:
branches: [ development ]
workflow_dispatch:
jobs:
test-project:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
include:
- os: ubuntu-latest
configure: configure.sh
test: test
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: development
- if: matrix.os == 'ubuntu-latest'
name: Update packages
run: |
sudo apt update
# sudo apt upgrade
- name: Permissions
run: |
chmod +x ${{ matrix.configure }}
- name: Preparation
run: sudo ./${{ matrix.configure }}
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Install WHY2
run: make install
- name: Download WHY2 test project
run: curl -Lo ${{ matrix.test }}.c https://gist.github.com/ENGO150/d8419b6c31ffb68ebb930a5b41af8c73/raw
- name: Build WHY2 project
run: cc ${{ matrix.test }}.c -lwhy2 -Wall -o ${{ matrix.test }}
- name: Run test
run: ./${{ matrix.test }}