fileinfo/.github/workflows/c-cpp.yml
2024-08-24 16:22:59 +03:00

32 lines
623 B
YAML

name: C/C++ CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: configure
run: ./configure
- name: make a test file
run: echo "test file" >> test.txt
- name: make (MIME support)
run: make
- name: test the executable
run: ./fileinfo test.txt
- name: clean up
run: make clean
- name: make (no MIME support)
run: make nomime
- name: test the non-mime executable
run: ./fileinfo test.txt
- name: clean up
run: make clean